/* Blog Layout Styles v=20260315-4 */
:root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #242424;
    --bg-tertiary: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --accent-orange: #ff9800;
    --accent-orange-light: #ffb74d;
    --border-color: rgba(255, 255, 255, 0.1);
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

/* Sticky Toolbar */
.sticky-toolbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 0;
}

.toolbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 24px;
}

.toolbar-left {
    display: flex;
    align-items: center;
}

.toolbar-logo {
    height: 32px;
    width: auto;
}

/* Desktop Logo - Visible on desktop only */
.toolbar-logo-desktop {
    display: block;
}

/* Mobile Logo - Hidden on desktop */
.toolbar-logo-mobile {
    display: none;
}

@media (max-width: 768px) {
    .toolbar-logo-desktop {
        display: none;
    }
    
    .toolbar-logo-mobile {
        display: block;
        height: 28px;
        width: 28px;
    }
    
    .toolbar-logo {
        height: 28px;
        width: 28px;
    }
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-icon-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.user-icon-btn img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 200px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.user-dropdown-menu.show {
    display: block;
}

.user-dropdown-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.3s ease;
}

.user-dropdown-menu a:hover {
    background: rgba(255, 152, 0, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
}

/* Blog Header */
.blog-header {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: 80px 0 60px;
    border-bottom: 1px solid var(--border-color);
}

.blog-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
}

.back-to-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 32px;
    transition: color 0.3s ease;
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

.back-to-home:hover {
    color: var(--accent-orange);
}

/* Blog Cards */
.blog-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-orange);
    box-shadow: 0 12px 40px rgba(255, 152, 0, 0.15);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #333 0%, #444 100%);
}

.blog-card-content {
    padding: 24px;
}

.blog-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.blog-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: var(--accent-orange);
}

.blog-card-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.blog-card-tag {
    background: rgba(255, 152, 0, 0.15);
    color: var(--accent-orange);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-orange);
    font-weight: 600;
    text-decoration: none;
    margin-top: 16px;
    transition: gap 0.3s ease;
}

.blog-cta:hover {
    gap: 12px;
}

/* Article Header */
.article-header {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: 80px 0 60px;
    border-bottom: 1px solid var(--border-color);
}

.article-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 32px;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--bg-tertiary);
}

.article-back-link:hover {
    color: var(--accent-orange);
    background: rgba(255, 152, 0, 0.1);
}

.article-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.article-tag {
    background: rgba(255, 152, 0, 0.15);
    color: var(--accent-orange);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Article Content */
.article-featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin: 40px 0;
}

.article-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    margin: 40px 0;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: var(--text-primary);
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 16px;
    line-height: 1.3;
}

.article-content h1 { font-size: 2rem; }
.article-content h2 { font-size: 1.75rem; }
.article-content h3 { font-size: 1.5rem; }
.article-content h4 { font-size: 1.25rem; }

.article-content p {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.article-content a {
    color: var(--accent-orange);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.article-content a:hover {
    color: var(--accent-orange-light);
}

.article-content blockquote {
    border-left: 4px solid var(--accent-orange);
    padding: 16px 24px;
    margin: 24px 0;
    background: rgba(255, 152, 0, 0.05);
    border-radius: 0 8px 8px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.article-content code {
    background: var(--bg-tertiary);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    color: var(--accent-orange-light);
}

.article-content pre {
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin: 24px 0;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
}

/* Daily & Weekly Charts - Full width stacked images */
.article-content .chart-image-container {
    width: 100%;
    margin: 32px 0;
}

.article-content .chart-image-container img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 0 16px 0;
}

.article-content .chart-image-container img:last-child {
    margin-bottom: 0;
}

/* Chart section styling */
.article-content .chart-section {
    width: 100%;
    margin: 40px 0;
}

.article-content .chart-section h3,
.article-content .chart-section h4 {
    margin-bottom: 20px;
}

/* Share Section */
.article-share {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 24px;
    margin: 40px 0;
}

.article-share-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.article-share-links {
    display: flex;
    gap: 12px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

/* CTA Section */
.article-cta {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1) 0%, rgba(255, 152, 0, 0.05) 100%);
    border: 1px solid rgba(255, 152, 0, 0.2);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    margin: 40px 0;
}

.article-cta h3 {
    color: var(--accent-orange);
    margin-bottom: 12px;
}

.article-cta p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.cta-button {
    display: inline-block;
    background: var(--accent-orange);
    color: #000;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 152, 0, 0.3);
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
    padding: 24px 0;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 152, 0, 0.1);
    color: var(--accent-orange);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background: rgba(255, 152, 0, 0.2);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 24px;
    opacity: 0.5;
}

/* Footer */
.blog-footer {
    background: var(--bg-secondary);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-orange);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.social-link img {
    height: 24px;
}

/* Snackbar */
.snackbar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-orange);
    color: #000;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    z-index: 9999;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .blog-title {
        font-size: 2rem;
    }
    
    .article-title {
        font-size: 1.75rem;
    }
    
    .article-content {
        padding: 24px;
    }
    
    .article-header {
        padding: 40px 0 30px;
    }
    
    .toolbar-container {
        padding: 0 12px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
