/* ===================================
   The Accounting Chronicle - Styles
   =================================== */

:root {
    --orange-500: #E86A33;
    --orange-600: #D55A25;
    --orange-100: #FEF3ED;
    --orange-50: #FFFAF7;
    
    --slate-900: #1A1D23;
    --slate-800: #2D3139;
    --slate-700: #3D424D;
    --slate-600: #5A6070;
    --slate-500: #737A8C;
    --slate-400: #9CA3B4;
    --slate-300: #C4CAD6;
    --slate-200: #E2E5EB;
    --slate-100: #F3F4F7;
    --slate-50: #F9FAFB;
    
    --white: #FFFFFF;
    
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-sm: 0 1px 2px rgba(26, 29, 35, 0.05);
    --shadow-md: 0 4px 12px rgba(26, 29, 35, 0.08);
    --shadow-lg: 0 12px 32px rgba(26, 29, 35, 0.12);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--slate-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.25;
    color: var(--slate-900);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }

/* ===================================
   Navigation
   =================================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 5%;
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-the {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--orange-500);
}

.logo-main {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--slate-900);
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--slate-600);
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.2s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange-500);
    transition: width 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--slate-900);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--slate-800);
    transition: all 0.3s ease;
}

/* ===================================
   Buttons
   =================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: var(--orange-500);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--orange-600);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--slate-100);
    color: var(--slate-800);
}

.btn-secondary:hover {
    background: var(--slate-200);
}

.btn-outline {
    background: transparent;
    color: var(--slate-800);
    border: 2px solid var(--slate-300);
}

.btn-outline:hover {
    border-color: var(--orange-500);
    color: var(--orange-500);
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 4rem;
    padding: 6rem 5% 5rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--orange-50) 100%);
    position: relative;
    overflow: hidden;
}

.hero-tag {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--orange-500);
    margin-bottom: 1rem;
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero .highlight {
    color: var(--orange-500);
    position: relative;
}

.hero .highlight::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    right: 0;
    height: 0.15em;
    background: var(--orange-100);
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--slate-600);
    max-width: 540px;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-decoration {
    position: relative;
    width: 280px;
    height: 280px;
}

.decoration-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange-100) 0%, var(--orange-500) 100%);
    opacity: 0.9;
    animation: pulse 4s ease-in-out infinite;
}

.decoration-lines {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.decoration-lines span {
    display: block;
    width: 60px;
    height: 4px;
    background: var(--white);
    margin: 12px 0;
    border-radius: 2px;
}

.decoration-lines span:nth-child(2) {
    width: 80px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ===================================
   Sections Common
   =================================== */

section {
    padding: 5rem 5%;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    margin: 0;
}

.see-all {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--orange-500);
    transition: color 0.2s ease;
}

.see-all:hover {
    color: var(--orange-600);
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--orange-500);
    margin-bottom: 0.75rem;
}

/* ===================================
   Featured Video
   =================================== */

.featured-video {
    background: var(--slate-50);
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
}

.video-placeholder {
    aspect-ratio: 16 / 9;
    background: var(--slate-200);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--slate-500);
    position: relative;
    overflow: hidden;
}

.video-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--slate-100) 25%, transparent 25%),
                linear-gradient(-135deg, var(--slate-100) 25%, transparent 25%),
                linear-gradient(45deg, var(--slate-100) 25%, transparent 25%),
                linear-gradient(-45deg, var(--slate-100) 25%, transparent 25%);
    background-size: 20px 20px;
    opacity: 0.5;
}

.play-button {
    width: 80px;
    height: 80px;
    background: var(--orange-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    z-index: 1;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-lg);
}

.play-button svg {
    width: 32px;
    height: 32px;
    margin-left: 4px;
}

.video-placeholder p {
    font-weight: 600;
    color: var(--slate-700);
    z-index: 1;
}

.video-note {
    font-size: 0.85rem;
    color: var(--slate-500);
    z-index: 1;
}

/* Actual video embed styling */
.video-container iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    border: none;
}

/* ===================================
   Articles Grid
   =================================== */

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.article-card {
    display: block;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--slate-200);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--orange-200);
}

.article-card.featured {
    background: linear-gradient(135deg, var(--orange-50) 0%, var(--white) 100%);
    border-color: var(--orange-200);
}

.article-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--orange-500);
    background: var(--orange-100);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.article-card h3 {
    margin-bottom: 0.75rem;
    transition: color 0.2s ease;
}

.article-card:hover h3 {
    color: var(--orange-500);
}

.article-card p {
    color: var(--slate-600);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--slate-500);
}

.read-time::before {
    content: '📖 ';
}

/* ===================================
   Beyond the Books Teaser
   =================================== */

.beyond-teaser {
    background: var(--slate-900);
    color: var(--white);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: center;
}

.beyond-teaser h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.beyond-teaser p {
    color: var(--slate-400);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 480px;
}

.beyond-teaser .btn-outline {
    border-color: var(--slate-600);
    color: var(--white);
}

.beyond-teaser .btn-outline:hover {
    border-color: var(--orange-500);
    color: var(--orange-500);
}

.beyond-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    max-width: 280px;
}

.topic-tag {
    background: var(--slate-800);
    color: var(--slate-300);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===================================
   Newsletter
   =================================== */

.newsletter {
    background: var(--orange-50);
    text-align: center;
}

.newsletter-content {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter h2 {
    margin-bottom: 0.75rem;
}

.newsletter p {
    color: var(--slate-600);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    min-width: 250px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-family: var(--font-body);
    border: 2px solid var(--slate-200);
    border-radius: var(--radius-md);
    background: var(--white);
    transition: border-color 0.2s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--orange-500);
}

/* ===================================
   Footer
   =================================== */

footer {
    background: var(--slate-900);
    color: var(--slate-400);
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--slate-800);
}

.footer-brand {
    max-width: 320px;
}

.footer-brand .logo-the,
.footer-brand .logo-main {
    display: block;
}

.footer-brand .logo-main {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column h4 {
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.footer-column a {
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--orange-500);
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
}

/* ===================================
   Page Headers
   =================================== */

.page-header {
    background: linear-gradient(135deg, var(--white) 0%, var(--orange-50) 100%);
    padding: 4rem 5%;
    text-align: center;
}

.page-header h1 {
    margin-bottom: 1rem;
}

.page-header p {
    color: var(--slate-600);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   Filter Tabs
   =================================== */

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 3rem;
}

.filter-tab {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--slate-600);
    background: var(--slate-100);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tab:hover {
    background: var(--slate-200);
}

.filter-tab.active {
    background: var(--orange-500);
    color: var(--white);
}

/* ===================================
   Resources Page
   =================================== */

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.resource-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.resource-icon {
    width: 56px;
    height: 56px;
    background: var(--orange-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.resource-card h3 {
    margin-bottom: 0.5rem;
}

.resource-card .description {
    color: var(--slate-600);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.resource-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--slate-500);
}

.resource-card .btn {
    width: 100%;
}

/* ===================================
   About Page
   =================================== */

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.about-image {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--orange-100) 0%, var(--orange-200) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--slate-600);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.about-text p:last-of-type {
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 48px;
    height: 48px;
    background: var(--slate-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: var(--orange-500);
    color: var(--white);
}

/* ===================================
   YouTube Page
   =================================== */

.youtube-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.video-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--slate-200);
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.video-thumb {
    aspect-ratio: 16 / 9;
    background: var(--slate-200);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-thumb .play-button {
    width: 60px;
    height: 60px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.video-card:hover .play-button {
    opacity: 1;
}

.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.video-info p {
    color: var(--slate-600);
    font-size: 0.9rem;
}

/* ===================================
   Wellbeing / Beyond the Books Page
   =================================== */

.wellbeing-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.wellbeing-intro p {
    color: var(--slate-600);
    font-size: 1.1rem;
}

/* ===================================
   Article Single Page
   =================================== */

.article-single {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 5%;
}

.article-single .article-category {
    margin-bottom: 1.5rem;
}

.article-single h1 {
    margin-bottom: 1.5rem;
    font-size: clamp(2rem, 4vw, 2.75rem);
}

.article-single .article-meta {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--slate-200);
    margin-bottom: 2.5rem;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

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

.article-body h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.article-body ul, .article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

/* ===================================
   Mobile Responsive
   =================================== */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 4rem 5%;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-decoration {
        display: none;
    }
    
    .beyond-teaser {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .beyond-content {
        order: 1;
    }
    
    .beyond-topics {
        order: 2;
        max-width: none;
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 0;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .nav-links li {
        border-bottom: 1px solid var(--slate-100);
    }
    
    .nav-links a {
        display: block;
        padding: 1rem 0;
    }
    
    section {
        padding: 3rem 5%;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        min-width: auto;
        width: 100%;
    }
    
    .newsletter-form .btn {
        width: 100%;
    }
}
/* ================================
   DARK MODE STYLES
   ================================ */

   .dark-mode-toggle {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.dark-mode-toggle:hover {
    background: var(--slate-100);
}

/* Dark mode colours */
body.dark-mode {
    --slate-50: #1a1a2e;
    --slate-100: #252541;
    --slate-200: #2d2d4a;
    --slate-300: #3d3d5c;
    --slate-400: #6b6b8a;
    --slate-500: #8a8aa3;
    --slate-600: #a3a3b8;
    --slate-700: #c4c4d4;
    --slate-800: #e0e0eb;
    --slate-900: #f5f5fa;
    background-color: #1a1a2e;
    color: #e0e0eb;
}

body.dark-mode .navbar {
    background: rgba(26, 26, 46, 0.95);
    border-bottom-color: var(--slate-200);
}

body.dark-mode .article-card {
    background: var(--slate-100);
    border-color: var(--slate-200);
}

body.dark-mode .article-card:hover {
    border-color: var(--orange-500);
}

body.dark-mode .btn-secondary {
    background: var(--slate-200);
    color: var(--slate-800);
}

body.dark-mode footer {
    background: var(--slate-100);
    border-top-color: var(--slate-200);
}

body.dark-mode .resource-card {
    background: var(--slate-100);
    border-color: var(--slate-200);
}

body.dark-mode .video-card {
    background: var(--slate-100);
}

body.dark-mode .newsletter {
    background: var(--slate-100);
}

body.dark-mode input[type="email"] {
    background: var(--slate-200);
    border-color: var(--slate-300);
    color: var(--slate-800);
}

body.dark-mode .dark-mode-toggle:hover {
    background: var(--slate-200);
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #252541 100%);
}

body.dark-mode .filter-tab {
    background: var(--slate-200);
    color: var(--slate-600);
}

body.dark-mode .filter-tab.active {
    background: var(--orange-500);
    color: white;
}