/* ============================================
   SHADOWSTRIKE AUTHOR SITE – COMPLETE CSS
   Colors: Charcoal #2C2C2C | Wine #722F37 | Offwhite #F5F5F5 | Gold #B38B59
   ============================================ */

/* ===== CSS Variables ===== */
:root {
    --color-charcoal: #2C2C2C;
    --color-wine: #722F37;
    --color-offwhite: #F5F5F5;
    --color-gold: #B38B59;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-charcoal);
    background-color: var(--color-offwhite);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-charcoal);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    border-left: 4px solid var(--color-wine);
    padding-left: 1rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* ===== Header & Navigation ===== */
.site-header {
    background-color: var(--color-charcoal);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    padding: 0.5rem 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 50px;
}

.logo img {
    height: 100%;
    width: auto;
    transition: var(--transition);
}

.logo-full {
    display: block;
}

.logo-icon {
    display: none;
}

.logo:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--color-offwhite);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--color-gold);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-wine);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-offwhite);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== Hero Section ===== */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(44, 44, 44, 0.85), rgba(44, 44, 44, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    color: var(--color-offwhite);
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--color-offwhite);
    border: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--color-offwhite);
}

.hero-badge {
    display: inline-block;
    background: rgba(0,0,0,0.6);
    padding: 0.25rem 1rem;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border-left: 3px solid var(--color-wine);
    margin-bottom: 1rem;
    color: var(--color-offwhite);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ===== Buttons ===== */
.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--color-wine);
    color: var(--color-offwhite);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--color-wine);
}

.cta-button:hover {
    background-color: transparent;
    color: var(--color-wine);
}

.cta-button.secondary {
    background: transparent;
    border-color: var(--color-offwhite);
    color: var(--color-offwhite);
}

.cta-button.secondary:hover {
    background: var(--color-offwhite);
    color: var(--color-charcoal);
}

.cta-button.outline {
    background: transparent;
    border-color: var(--color-wine);
    color: var(--color-wine);
}

.cta-button.outline:hover {
    background: var(--color-wine);
    color: var(--color-offwhite);
}

/* ===== Sections ===== */
.section {
    padding: 5rem 0;
}

.section:nth-child(even) {
    background-color: white;
}

/* Dark background classes – all produce light text */
.bg-dark, .bg-secondary, .bg-light,
.format-card, .blog-card, .universe-note,
.newsletter-box, .cover-placeholder,
.sidebar-widget, .vision-card,
.hero-page, .footer,
.current-focus, .philosophy-highlight,
.post-header, .post-conclusion,
.timeline-phase::after {
    color: var(--color-offwhite);
}

.bg-dark { background: #111; }
.bg-secondary { background: #1a1a1a; }
.bg-light { background: #1a1a1a; } /* legacy name */

/* Headings inside dark backgrounds */
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4,
.bg-secondary h1, .bg-secondary h2, .bg-secondary h3, .bg-secondary h4,
.bg-light h1, .bg-light h2, .bg-light h3, .bg-light h4,
.format-card h1, .format-card h2, .format-card h3,
.blog-card h1, .blog-card h2, .blog-card h3,
.universe-note h1, .universe-note h2, .universe-note h3,
.newsletter-box h1, .newsletter-box h2, .newsletter-box h3,
.sidebar-widget h3, .vision-card h3,
.current-focus h3, .philosophy-highlight h3,
.post-header h2 {
    color: var(--color-offwhite);
}

/* Paragraphs inside dark backgrounds */
.bg-dark p, .bg-secondary p, .bg-light p,
.format-card p, .blog-card p, .universe-note p,
.newsletter-box p, .sidebar-widget p,
.vision-card p, .current-focus p,
.philosophy-highlight p, .post-content p {
    color: #ddd;
}

/* Red accents preserved */
.format-card h3,
.blog-card .read-more,
.read-more,
.universe-note a,
.hero-badge {
    color: var(--color-wine);
}

/* Links inside dark backgrounds */
.bg-dark a, .bg-secondary a, .bg-light a,
.format-card a, .blog-card a, .universe-note a,
.newsletter-box a, .sidebar-widget a {
    color: var(--color-gold);
    text-decoration: none;
}

.bg-dark a:hover, .bg-secondary a:hover, .bg-light a:hover,
.format-card a:hover, .blog-card a:hover,
.universe-note a:hover, .newsletter-box a:hover {
    color: var(--color-offwhite);
    text-decoration: underline;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--color-charcoal);
    text-align: center;
    padding: 2rem 0;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    color: var(--color-gold);
    text-decoration: none;
    margin-left: 1rem;
}

.footer-links a:hover {
    color: var(--color-offwhite);
}

/* ===== Homepage Specific Elements ===== */
.teaser-grid {
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
}

.teaser-text {
    flex: 2;
    min-width: 250px;
}

.teaser-cover {
    flex: 1;
    min-width: 180px;
}

.cover-placeholder {
    background: #2a2a2a;
    aspect-ratio: 2 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    border: 1px solid #444;
    text-align: center;
    font-size: 0.9rem;
}

.format-grid {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.format-card {
    flex: 1;
    background: #1e1e1e;
    padding: 1.5rem;
    border-top: 3px solid var(--color-wine);
}

.universe-note {
    max-width: 700px;
    margin: 0 auto;
    background: #0a0a0a;
    padding: 1.5rem;
    border-left: 3px solid var(--color-wine);
}

.universe-note p {
    color: #ccc;
}

.blog-previews {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.blog-card {
    flex: 1;
    background: #1e1e1e;
    padding: 1.5rem;
    border-left: 3px solid var(--color-wine);
}

.blog-card .post-meta {
    color: #aaa;
    font-size: 0.85rem;
}

.read-more {
    font-weight: bold;
    text-decoration: none;
}

.read-more:hover {
    color: #c44;
    text-decoration: underline;
}

/* Newsletter */
.newsletter-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.newsletter-form input {
    padding: 0.75rem;
    min-width: 250px;
    background: #2a2a2a;
    border: 1px solid #555;
    color: var(--color-offwhite);
    border-radius: var(--border-radius);
}

.newsletter-form input::placeholder {
    color: #888;
}

.small-note {
    font-size: 0.7rem;
    opacity: 0.6;
    margin-top: 1rem;
}

/* ===== About Page ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.profile-img {
    width: 100%;
    max-width: 300px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.philosophy-highlight {
    background: var(--color-offwhite);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--color-gold);
    margin: 2rem 0;
    color: var(--color-charcoal); /* overrides dark rule because it's light bg */
}

.philosophy-highlight p {
    color: #555;
}

.current-focus {
    background: linear-gradient(135deg, var(--color-charcoal), #3a3a3a);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.interest-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    color: var(--color-charcoal);
}

.interest-card h4 {
    color: var(--color-wine);
}

/* ===== Works Page ===== */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin: 3rem 0;
}

.book-card {
    display: flex;
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    color: var(--color-charcoal);
}

.book-card h3 {
    color: var(--color-charcoal);
}

.book-card p {
    color: #555;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    border-top: 4px solid var(--color-gold);
    color: var(--color-charcoal);
}

/* ===== Blog Page ===== */
.blog-layout {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.blog-main {
    flex: 2;
    min-width: 260px;
}

.blog-sidebar {
    flex: 1;
    min-width: 220px;
}

.sidebar-widget {
    background: #1e1e1e;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.sidebar-widget h3 {
    color: var(--color-offwhite);
}

.sidebar-widget p, .sidebar-widget li {
    color: #ddd;
}

.blog-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.blog-controls input,
.blog-controls select {
    padding: 0.6rem 0.8rem;
    border: 1px solid #ccc;
    background: #fff;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.blog-preview {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    color: var(--color-charcoal);
}

.blog-preview h2, .blog-preview p {
    color: var(--color-charcoal);
}

.post-meta {
    color: #777;
    font-size: 0.85rem;
}

/* Post header (dark) */
.post-header {
    background: linear-gradient(135deg, var(--color-charcoal), #3a3a3a);
    padding: 3rem;
    text-align: center;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* ===== Contact Page ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.contact-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    border-top: 4px solid var(--color-wine);
    color: var(--color-charcoal);
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid var(--color-offwhite);
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
}

/* ===== Shop Page ===== */
.shop-redirect {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.redirect-card {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 500px;
    border: 2px solid var(--color-gold);
    color: var(--color-charcoal);
}

/* ===== Vision Page (if unhidden) ===== */
.vision-card {
    background: #1e1e1e;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.vision-callout {
    background: var(--color-wine);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
}

.timeline-phase {
    flex: 0 0 200px;
}

.timeline-content p {
    color: #ddd;
}

/* ===== Page Hero (inner pages) ===== */
.hero-page {
    background: linear-gradient(rgba(114, 47, 55, 0.9), rgba(114, 47, 55, 0.8));
    padding: 8rem 0 4rem;
    text-align: center;
}

.hero-page h1 {
    color: var(--color-offwhite);
    border: none;
}

.subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* ===== Utility ===== */
.text-center {
    text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .logo {
        height: 40px;
    }
    .logo-full {
        display: none;
    }
    .logo-icon {
        display: block;
    }
    .nav-toggle {
        display: block;
    }
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--color-charcoal);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: var(--transition);
    }
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.7rem;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
    .section {
        padding: 3rem 0;
    }
    .about-grid,
    .teaser-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
        text-align: center;
    }
    .books-grid,
    .projects-grid,
    .contact-grid,
    .format-grid,
    .blog-previews {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
    .book-card {
        flex-direction: column;
        text-align: center;
    }
    .footer-grid {
        flex-direction: column;
        text-align: center;
    }
    .footer-links a {
        margin: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .container {
        width: 95%;
        padding: 0 10px;
    }
}

/* Award text badges */
.award-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 1rem 0;
}
.award-badge {
    background: #2a2a2a;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    color: #ddd;
}

/* Laurels - small and white */
.laurel-row {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}
.laurel-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);  /* turns black → white */
}

.cover-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Fix blog post text contrast on light background */
.blog-post .post-content p,
.blog-post .post-content h3,
.blog-post .post-content li,
.blog-post .post-content blockquote {
    color: #2C2C2C; /* charcoal */
}
.blog-post .post-content a {
    color: #722F37;
}
.blog-post .post-content a:hover {
    color: #B38B59;
}

/* Additional styles for the new tab system */
        .blog-tabs {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
            margin-bottom: 2rem;
            border-bottom: 1px solid #722F37;
            padding-bottom: 0.5rem;
        }
        .blog-tab {
            background: none;
            border: none;
            padding: 0.5rem 1.2rem;
            font-family: var(--font-body);
            font-size: 1rem;
            font-weight: 600;
            color: var(--color-offwhite);
            cursor: pointer;
            transition: var(--transition);
            border-radius: 30px;
            background: rgba(114,47,55,0.5);
        }
        .blog-tab.active {
            background: #722F37;
            color: white;
        }
        .blog-tab:hover:not(.active) {
            background: rgba(114,47,55,0.5);
        }
        @media (max-width: 768px) {
            .blog-tabs {
                justify-content: center;
            }
        }