/* ===== DESIGN SYSTEM ===== */
:root {
    --background: 0 0% 10%;
    --foreground: 0 0% 95%;
    --card: 0 0% 15%;
    --card-foreground: 0 0% 95%;
    --primary: 0 0% 95%;
    --primary-foreground: 0 0% 10%;
    --secondary: 0 0% 20%;
    --secondary-foreground: 0 0% 95%;
    --muted: 0 0% 20%;
    --muted-foreground: 0 0% 70%;
    --accent: 84 100% 59%;
    --accent-foreground: 0 0% 10%;
    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 98%;
    --border: 0 0% 25%;
    --input: 0 0% 25%;
    --ring: 84 100% 59%;
    --radius: 0.5rem;
    
    /* Custom properties */
    --gradient-primary: linear-gradient(135deg, hsl(84 100% 59%), hsl(120 100% 75%));
    --shadow-glow: 0 0 40px hsl(84 100% 59% / 0.3);
}

.dark-mode {
    --background: 0 0% 10%;
    --foreground: 0 0% 95%;
    --card: 0 0% 15%;
    --card-foreground: 0 0% 95%;
    --primary: 0 0% 95%;
    --primary-foreground: 0 0% 10%;
    --secondary: 0 0% 20%;
    --secondary-foreground: 0 0% 95%;
    --muted: 0 0% 20%;
    --muted-foreground: 0 0% 70%;
    --accent: 84 100% 59%;
    --accent-foreground: 0 0% 10%;
    --border: 0 0% 25%;
    --input: 0 0% 25%;
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: hsl(var(--foreground));
    background-color: hsl(var(--background));
    padding-top: 4rem;
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: "Times New Roman", serif;
    line-height: 1.2;
    color: hsl(var(--primary));
}

.main-headline {
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: -0.02em;
    color: hsl(var(--primary));
    text-align: center;
}

.section-title {
    font-size: 2rem;
    font-weight: 400;
    color: hsl(var(--primary));
    margin-bottom: 1rem;
}

.section-title.large {
    font-size: clamp(2rem, 5vw, 2.5rem);
}

.section-subtitle {
    color: hsl(var(--muted-foreground));
    font-size: 1rem;
}

.hero-description {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
    max-width: 32rem;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
    height: 4rem;
    border-bottom: 1px solid hsl(var(--border));
    background-color: hsl(var(--background) / 0.95);
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
    padding: 0 1.5rem;
}

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

.site-name {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: hsl(var(--primary));
    text-decoration: none;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: hsl(var(--primary));
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 640px) {
    .login-btn {
        display: none;
    }
}

.login-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: hsl(var(--primary));
    background: transparent;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.login-btn:hover {
    background-color: hsl(var(--secondary));
}

.newsletter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    text-decoration: none;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-btn:hover {
    background-color: hsl(var(--accent) / 0.9);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.login-btn:hover {
    background-color: hsl(var(--accent) / 0.1);
    color: hsl(var(--accent));
}

.newsletter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    text-decoration: none;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 102;
    white-space: nowrap;
}

.newsletter-btn:hover {
    background-color: hsl(var(--accent) / 0.9);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ===== HERO SECTION ===== */
.hero-section {
    padding: 8rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        hsl(var(--background)), 
        hsl(var(--secondary) / 0.3), 
        hsl(var(--background))
    );
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    background-color: hsl(var(--secondary) / 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid hsl(var(--border));
    border-radius: 9999px;
    color: hsl(var(--muted-foreground));
}

.headline-section {
    margin: 3rem 0;
}

.highlight-text {
    position: relative;
    color: hsl(var(--accent));
    text-shadow: var(--shadow-glow);
}

.highlight-underline {
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 0.75rem;
    background-color: hsl(var(--accent) / 0.2);
    transform: skewX(-12deg);
    border-radius: var(--radius);
}

.cta-section {
    max-width: 24rem;
    margin: 0 auto;
}

.cta-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: hsl(var(--accent));
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.arrow-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: hsl(var(--accent));
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.email-input {
    height: 3.5rem;
    padding: 0 1rem;
    font-size: 1rem;
    background-color: hsl(var(--background) / 0.5);
    backdrop-filter: blur(8px);
    border: 2px solid hsl(var(--border));
    border-radius: var(--radius);
    color: hsl(var(--foreground));
    transition: all 0.2s ease;
}

.email-input:focus {
    outline: none;
    border-color: hsl(var(--accent));
    box-shadow: 0 0 0 3px hsl(var(--accent) / 0.2);
}

.cta-button {
    height: 3.5rem;
    padding: 0 1rem;
    font-size: 1rem;
    font-weight: 600;
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    border: none;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-button:hover {
    background-color: hsl(var(--accent) / 0.9);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.form-disclaimer {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    text-align: center;
}

/* ===== FEATURED ARTICLES ===== */
.featured-section {
    padding: 5rem 1.5rem;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.article-item {
    padding-bottom: 3rem;
    border-bottom: 1px solid hsl(var(--border));
}

.article-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}

.article-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.article-title a {
    color: hsl(var(--primary));
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-title a:hover {
    color: hsl(var(--accent));
}

.article-excerpt {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more-link {
    color: hsl(var(--accent));
    font-weight: 500;
    text-decoration: none;
    transition: text-decoration 0.2s ease;
}

.read-more-link:hover {
    text-decoration: underline;
}

/* ===== STATS SECTION ===== */
.stats-section {
    padding: 5rem 1.5rem;
    background-color: hsl(var(--secondary) / 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-family: "Times New Roman", serif;
    color: hsl(var(--accent));
    font-weight: 400;
}

.stat-label {
    font-size: 1.125rem;
    font-weight: 500;
    color: hsl(var(--primary));
    margin-top: 0.5rem;
}

.stat-description {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.25rem;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: 5rem 1.5rem;
}

.author-photo {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.author-placeholder {
    width: 100%;
    height: 400px;
    background-color: hsl(var(--muted));
    border-radius: var(--radius);
}

.quote {
    font-size: 1.25rem;
    font-style: italic;
    color: hsl(var(--muted-foreground));
    border-left: 4px solid hsl(var(--accent));
    padding-left: 1rem;
    margin: 1.5rem 0;
}

.about-text p {
    color: hsl(var(--muted-foreground));
    line-height: 1.7;
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter-section {
    padding: 5rem 1.5rem;
    background-color: hsl(var(--accent) / 0.05);
    text-align: center;
}

.newsletter-description {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

.newsletter-input {
    height: 3rem;
    padding: 0 1rem;
    font-size: 1rem;
    border: 2px solid hsl(var(--border));
    border-radius: var(--radius);
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    transition: all 0.2s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: hsl(var(--accent));
    box-shadow: 0 0 0 3px hsl(var(--accent) / 0.2);
}

.newsletter-button {
    height: 3rem;
    padding: 0 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    border: none;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.newsletter-button:hover {
    background-color: hsl(var(--accent) / 0.9);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ===== FOOTER ===== */
.site-footer {
    padding: 3rem 1.5rem;
    background-color: hsl(var(--secondary) / 0.1);
    border-top: 1px solid hsl(var(--border));
    text-align: center;
}

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

.footer-link {
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: hsl(var(--primary));
}

/* ===== GHOST REQUIRED CLASSES ===== */

/* Ghost Editor Content Width Classes */
.kg-width-wide {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: 1200px;
}

.kg-width-full {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Ghost Gallery Styles */
.kg-gallery-container {
    display: flex;
    flex-direction: column;
    max-width: 1040px;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.kg-gallery-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.kg-gallery-image img {
    display: block;
    margin: 0;
    width: 100%;
    height: 100%;
}

/* Post Content Styles */
.post-content {
    line-height: 1.6;
    font-size: 1.1rem;
}

.post-content h1, .post-content h2, .post-content h3, .post-content h4, .post-content h5, .post-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.post-content blockquote {
    border-left: 4px solid #a3e635;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #666;
}

.post-content code {
    background: #f4f4f4;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
}

.post-content pre {
    background: #1a1a1a;
    color: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 2rem 0;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Post Single Styles */
.article-single .post-header {
    margin-bottom: 3rem;
}

.post-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-align: center;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 2rem;
}

.post-excerpt {
    font-size: 1.25rem;
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
}

.post-image {
    margin-bottom: 3rem;
}

.post-image img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.author-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 0.5rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.author-bio {
    color: #666;
    line-height: 1.5;
}

.post-tags {
    margin-top: 2rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag-link {
    background: #f0f0f0;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    text-decoration: none;
    color: #333;
    transition: background 0.3s ease;
}

.tag-link:hover {
    background: #a3e635;
    color: #fff;
}

/* Related Posts */
.related-posts {
    background: #f9f9f9;
}

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

.related-article {
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.related-article:hover {
    transform: translateY(-2px);
}

.related-article .article-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.related-article .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.related-article .article-title a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.3;
}

.related-article .article-title a:hover {
    color: #a3e635;
}

.related-article .article-excerpt {
    color: #666;
    margin: 1rem 0;
    line-height: 1.5;
}

.related-article .article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #999;
}

/* ===== MOBILE MENU ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: hsl(var(--primary));
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: hsl(var(--background));
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1rem;
}

.mobile-nav-link {
    padding: 1rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    border-bottom: 1px solid hsl(var(--border));
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    color: hsl(var(--primary));
    padding-left: 1.5rem;
}

.mobile-nav-cta {
    margin-top: 1rem;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    text-decoration: none;
    text-align: center;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.mobile-nav-cta:hover {
    background-color: hsl(var(--accent) / 0.9);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .header-actions .login-btn,
    .header-actions .newsletter-btn {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-section {
        padding: 4rem 1rem;
    }
    
    .main-headline {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .about-section .grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* ===== UTILITIES ===== */
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-12 > * + * { margin-top: 3rem; }
.space-y-16 > * + * { margin-top: 4rem; }

.mb-16 { margin-bottom: 4rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.pt-6 { padding-top: 1.5rem; }

.grid { display: grid; }
.flex { display: flex; }
.hidden { display: none; }
.relative { position: relative; }
.absolute { position: absolute; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.w-full { width: 100%; }
.leading-relaxed { line-height: 1.7; }

/* Card styles */
.card {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    overflow: hidden;
}

.card-content {
    padding: 1.5rem;
}

.border-t { border-top: 1px solid hsl(var(--border)); }

/* Text styles */
.text-primary { color: hsl(var(--primary)); }
.text-accent { color: hsl(var(--accent)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-xl { font-size: 1.25rem; }
.text-lg { font-size: 1.125rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.font-serif { font-family: "Times New Roman", serif; }

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .header-actions .login-btn {
        display: none;
    }
    
    .hero-section {
        padding: 4rem 1rem;
    }
    
    .about-section .grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (min-width: 640px) {
    .sm\\:flex { display: flex; }
}

@media (min-width: 768px) {
    .md\\:flex { display: flex; }
}

@media (min-width: 1024px) {
    .lg\\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .lg\\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .lg\\:text-4xl { font-size: 2.25rem; }
    .lg\\:text-3xl { font-size: 1.875rem; }
}