/* =====================================================
   NEW YEAR TIMERS - BLOG STYLES
   Consistent with main site design
   ===================================================== */

/* Reset and Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #ffffff;
    color: #333333;
    line-height: 1.7;
    letter-spacing: 0.3px;
    min-height: 100vh;
}

/* Dark Mode Support */
body.dark-mode {
    background: #0a0a0a;
    color: #f5f5f5;
}

/* =====================================================
   NAVIGATION
   ===================================================== */

.blog-nav {
    background: #ffffff;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #e5e5e5;
}

body.dark-mode .blog-nav {
    background: #1a1a1a;
    border-bottom-color: #333;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #3A86FF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: #6A0DAD;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: #666666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #3A86FF;
}

body.dark-mode .nav-links a {
    color: #999999;
}

body.dark-mode .nav-links a:hover {
    color: #3A86FF;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    background: #f8fafc;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
    background: #3A86FF;
    border-color: #3A86FF;
}

body.dark-mode .dark-mode-toggle {
    background: #333;
    border-color: #444;
}

/* =====================================================
   MAIN CONTAINER
   ===================================================== */

.blog-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.blog-container.wide {
    max-width: 1200px;
}

/* =====================================================
   BREADCRUMBS
   ===================================================== */

.breadcrumbs {
    margin-bottom: 1.5rem;
    padding: 0.75rem 0;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
    content: "›";
    margin: 0 0.5rem;
    color: #9ca3af;
}

.breadcrumbs a {
    color: #3A86FF;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.breadcrumbs li[aria-current="page"] {
    color: #6b7280;
}

body.dark-mode .breadcrumbs a {
    color: #60a5fa;
}

body.dark-mode .breadcrumbs a:hover {
    color: #93c5fd;
}

body.dark-mode .breadcrumbs li[aria-current="page"] {
    color: #9ca3af;
}

body.dark-mode .breadcrumbs li:not(:last-child)::after {
    color: #6b7280;
}

/* =====================================================
   BLOG INDEX PAGE - ARTICLE GRID
   ===================================================== */

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 1rem;
}

body.dark-mode .blog-title {
    color: #f5f5f5;
}

.blog-subtitle {
    font-size: 1.1rem;
    color: #666666;
    max-width: 600px;
    margin: 0 auto;
}

body.dark-mode .blog-subtitle {
    color: #999999;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.article-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e5e5e5;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(58, 134, 255, 0.15);
    border-color: #3A86FF;
}

body.dark-mode .article-card {
    background: #1a1a1a;
    border-color: #333;
}

body.dark-mode .article-card:hover {
    border-color: #3A86FF;
}

.article-card-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #3A86FF 0%, #6A0DAD 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.article-card-content {
    padding: 1.5rem;
}

.article-card-category {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-card-title a:hover {
    color: #3A86FF;
}

body.dark-mode .article-card-title {
    color: #f5f5f5;
}

.article-card-excerpt {
    font-size: 0.95rem;
    color: #666666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

body.dark-mode .article-card-excerpt {
    color: #999999;
}

.article-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #94a3b8;
    padding-top: 1rem;
    border-top: 1px solid #e5e5e5;
}

body.dark-mode .article-card-meta {
    border-top-color: #333;
}

.read-more {
    color: #3A86FF;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #6A0DAD;
}

/* =====================================================
   ARTICLE PAGE STYLES
   ===================================================== */

.article-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e5e5;
}

body.dark-mode .article-header {
    border-bottom-color: #333;
}

.article-category {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 1rem;
    line-height: 1.3;
}

body.dark-mode .article-title {
    color: #f5f5f5;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.95rem;
    color: #666666;
    flex-wrap: wrap;
}

body.dark-mode .article-meta {
    color: #999999;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444444;
}

body.dark-mode .article-content {
    color: #cccccc;
}

.article-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333333;
    margin: 2.5rem 0 1rem;
    padding-top: 1rem;
}

body.dark-mode .article-content h2 {
    color: #f5f5f5;
}

.article-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #3A86FF;
    margin: 2rem 0 0.75rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul, .article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.75rem;
}

.article-content blockquote {
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.05) 0%, rgba(106, 13, 173, 0.05) 100%);
    border-left: 4px solid #3A86FF;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #555555;
}

body.dark-mode .article-content blockquote {
    background: rgba(58, 134, 255, 0.1);
    color: #bbbbbb;
}

.article-content strong {
    color: #333333;
    font-weight: 600;
}

body.dark-mode .article-content strong {
    color: #ffffff;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(247, 147, 30, 0.1) 100%);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.highlight-box h4 {
    color: #ff6b35;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

body.dark-mode .highlight-box {
    background: rgba(255, 107, 53, 0.15);
}

/* =====================================================
   AD CONTAINERS
   ===================================================== */

.ad-container {
    width: 100%;
    margin: 2rem auto;
    padding: 0.5rem;
    text-align: center;
    min-height: 90px;
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.05) 0%, rgba(148, 163, 184, 0.02) 100%);
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.ad-container.ad-top {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.03) 0%, rgba(255, 193, 7, 0.03) 100%);
    border-color: rgba(255, 107, 53, 0.1);
}

.ad-container.ad-middle {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(168, 85, 247, 0.03) 100%);
    border-color: rgba(59, 130, 246, 0.1);
}

/* =====================================================
   RELATED ARTICLES
   ===================================================== */

.related-articles {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
}

body.dark-mode .related-articles {
    border-top-color: #333;
}

.related-articles h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 1.5rem;
    text-align: center;
}

body.dark-mode .related-articles h3 {
    color: #f5f5f5;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    border: 1px solid #e5e5e5;
}

.related-card:hover {
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-color: #3A86FF;
}

body.dark-mode .related-card {
    background: #1f1f1f;
    border-color: #333;
}

body.dark-mode .related-card:hover {
    background: #252525;
    border-color: #3A86FF;
}

.related-card a {
    color: #333333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.related-card a:hover {
    color: #3A86FF;
}

body.dark-mode .related-card a {
    color: #f5f5f5;
}

/* =====================================================
   AUTHOR BOX
   ===================================================== */

.author-box {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    background: #f8fafc;
    border-radius: 16px;
    padding: 2rem;
    margin: 3rem 0;
    border: 1px solid #e5e5e5;
}

body.dark-mode .author-box {
    background: #1a1a1a;
    border-color: #333;
}

.author-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3A86FF 0%, #6A0DAD 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffffff;
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 0.5rem;
}

body.dark-mode .author-info h4 {
    color: #f5f5f5;
}

.author-info p {
    font-size: 0.95rem;
    color: #666666;
    line-height: 1.6;
}

body.dark-mode .author-info p {
    color: #999999;
}

/* =====================================================
   FOOTER
   ===================================================== */

.blog-footer {
    background: #f8fafc;
    padding: 3rem 2rem;
    margin-top: 4rem;
    border-top: 1px solid #e5e5e5;
    text-align: center;
}

body.dark-mode .blog-footer {
    background: #111111;
    border-top-color: #333;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #666666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3A86FF;
}

body.dark-mode .footer-links a {
    color: #999999;
}

.footer-copyright {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* =====================================================
   ABOUT PAGE STYLES
   ===================================================== */

.about-header {
    text-align: center;
    margin-bottom: 3rem;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 1rem;
}

body.dark-mode .about-title {
    color: #f5f5f5;
}

.about-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444444;
}

body.dark-mode .about-content {
    color: #cccccc;
}

.about-content h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #3A86FF;
    margin: 2rem 0 1rem;
}

.about-content p {
    margin-bottom: 1.5rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.team-member {
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e5e5e5;
}

body.dark-mode .team-member {
    background: #1a1a1a;
    border-color: #333;
}

.team-member-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #3A86FF 0%, #6A0DAD 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1rem;
}

.team-member h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 0.5rem;
}

body.dark-mode .team-member h3 {
    color: #f5f5f5;
}

.team-member p {
    color: #666666;
    font-size: 0.95rem;
}

body.dark-mode .team-member p {
    color: #999999;
}

/* =====================================================
   CTA SECTION
   ===================================================== */

.cta-section {
    background: linear-gradient(135deg, #3A86FF 0%, #6A0DAD 100%);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    margin: 3rem 0;
    color: #ffffff;
}

.cta-section h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    background: #ffffff;
    color: #3A86FF;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .blog-title, .article-title, .about-title {
        font-size: 2rem;
    }

    .blog-container {
        padding: 2rem 1rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .blog-title, .article-title, .about-title {
        font-size: 1.75rem;
    }

    .article-content {
        font-size: 1rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .cta-section {
        padding: 2rem 1.5rem;
    }

    .cta-section h3 {
        font-size: 1.5rem;
    }
}
