/*
Theme Name: The Afghan Diaries
Theme URI: https://book-corner-pro.lovable.app
Author: Tamaz Demetrashvili
Author URI: https://book-corner-pro.lovable.app
Description: A dramatic, dark-themed author landing page for "The Afghan Diaries" - a war documentary book. Features a charcoal and gold color palette with elegant serif typography.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: afghan-diaries
Tags: one-column, custom-colors, custom-logo, featured-images, full-width-template
*/

/* ==========================================
   CSS Variables & Design Tokens
   ========================================== */
:root {
    /* Colors */
    --background: hsl(220, 20%, 8%);
    --foreground: hsl(40, 20%, 92%);
    --card: hsl(220, 18%, 12%);
    --card-foreground: hsl(40, 20%, 92%);
    --primary: hsl(40, 45%, 55%);
    --primary-foreground: hsl(220, 20%, 8%);
    --secondary: hsl(220, 15%, 18%);
    --muted: hsl(220, 15%, 15%);
    --muted-foreground: hsl(220, 10%, 55%);
    --border: hsl(220, 15%, 20%);
    
    /* Custom tokens */
    --gold: hsl(40, 45%, 55%);
    --gold-light: hsl(40, 50%, 70%);
    --gold-dark: hsl(40, 40%, 35%);
    --charcoal: hsl(220, 20%, 8%);
    --charcoal-light: hsl(220, 18%, 12%);
    --cream: hsl(40, 20%, 92%);
    --cream-muted: hsl(40, 15%, 75%);
    
    /* Gradients */
    --gradient-gold: linear-gradient(135deg, hsl(40, 45%, 55%), hsl(40, 50%, 70%));
    --gradient-hero: linear-gradient(180deg, hsl(220, 20%, 6%) 0%, hsl(220, 20%, 10%) 50%, hsl(220, 18%, 12%) 100%);
    
    /* Shadows */
    --shadow-book: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 60px rgba(184, 154, 100, 0.1);
    --shadow-card: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    
    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

/* ==========================================
   Utility Classes
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-gradient-gold {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-primary {
    color: var(--primary);
}

.text-cream-muted {
    color: var(--cream-muted);
}

.text-muted {
    color: var(--muted-foreground);
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    background-color: var(--gold-light);
    box-shadow: 0 10px 30px -10px rgba(184, 154, 100, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(184, 154, 100, 0.4);
    color: var(--foreground);
}

.btn-outline:hover {
    background: rgba(184, 154, 100, 0.1);
    border-color: var(--primary);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJhIiB4PSIwIiB5PSIwIj48ZmVUdXJidWxlbmNlIGJhc2VGcmVxdWVuY3k9Ii43NSIgc3RpdGNoVGlsZXM9InN0aXRjaCIgdHlwZT0iZnJhY3RhbE5vaXNlIi8+PGZlQ29sb3JNYXRyaXggdHlwZT0ic2F0dXJhdGUiIHZhbHVlcz0iMCIvPjwvZmlsdGVyPjxwYXRoIGQ9Ik0wIDBoMzAwdjMwMEgweiIgZmlsdGVyPSJ1cmwoI2EpIiBvcGFjaXR5PSIuMDUiLz48L3N2Zz4=");
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    padding: 5rem 0;
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }
}

.hero-text {
    text-align: center;
    animation: fadeIn 0.8s ease-out forwards;
}

@media (min-width: 1024px) {
    .hero-text {
        text-align: left;
    }
}

.hero-subtitle {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 4.5rem);
    margin-bottom: 1.5rem;
}

.hero-description {
    color: var(--cream-muted);
    font-size: 1.125rem;
    max-width: 36rem;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

@media (min-width: 1024px) {
    .hero-description {
        margin: 0 0 2rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .hero-buttons {
        justify-content: flex-start;
    }
}

.hero-book {
    display: flex;
    justify-content: center;
    animation: fadeIn 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

@media (min-width: 1024px) {
    .hero-book {
        justify-content: flex-end;
    }
}

.book-wrapper {
    position: relative;
}

.book-wrapper::before {
    content: '';
    position: absolute;
    inset: -1rem;
    background: linear-gradient(to right, rgba(184, 154, 100, 0.2), rgba(140, 120, 80, 0.2));
    border-radius: 1rem;
    filter: blur(2rem);
    opacity: 0.5;
}

.book-cover {
    position: relative;
    width: 18rem;
    box-shadow: var(--shadow-book);
    animation: float 6s ease-in-out infinite;
}

@media (min-width: 768px) {
    .book-cover {
        width: 20rem;
    }
}

@media (min-width: 1024px) {
    .book-cover {
        width: 24rem;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: fadeIn 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.scroll-indicator-inner {
    width: 1.5rem;
    height: 2.5rem;
    border: 2px solid rgba(184, 154, 100, 0.4);
    border-radius: 9999px;
    display: flex;
    justify-content: center;
}

.scroll-indicator-dot {
    width: 0.25rem;
    height: 0.75rem;
    background: var(--primary);
    border-radius: 9999px;
    margin-top: 0.5rem;
    animation: bounce 2s infinite;
}

/* ==========================================
   About Section
   ========================================== */
.about-section {
    padding: 6rem 0;
    background-color: var(--card);
}

@media (min-width: 1024px) {
    .about-section {
        padding: 8rem 0;
    }
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }
}

.about-image {
    display: flex;
    justify-content: center;
    order: 2;
}

@media (min-width: 1024px) {
    .about-image {
        justify-content: flex-start;
        order: 1;
    }
}

.portrait-wrapper {
    position: relative;
}

.portrait-wrapper::before {
    content: '';
    position: absolute;
    inset: -1rem;
    background: linear-gradient(to bottom right, rgba(184, 154, 100, 0.3), transparent);
    border-radius: 50%;
    filter: blur(2rem);
    opacity: 0.4;
}

.portrait {
    position: relative;
    width: 16rem;
    height: 16rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(184, 154, 100, 0.3);
    box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
    .portrait {
        width: 20rem;
        height: 20rem;
    }
}

.portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text {
    text-align: center;
    order: 1;
}

@media (min-width: 1024px) {
    .about-text {
        text-align: left;
        order: 2;
    }
}

.section-subtitle {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
}

.about-bio {
    color: var(--cream-muted);
    font-size: 1.125rem;
    line-height: 1.8;
    max-width: 36rem;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .about-bio {
        margin: 0;
    }
}

.about-bio p {
    margin-bottom: 1rem;
}

.about-bio p:last-child {
    margin-bottom: 0;
}

.author-signature {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: var(--primary);
    margin-top: 1.5rem;
}

.author-signature-line {
    width: 3rem;
    height: 1px;
    background: rgba(184, 154, 100, 0.5);
}

.author-signature-name {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.125rem;
}

/* ==========================================
   Coming Soon Section
   ========================================== */
.coming-soon-section {
    padding: 6rem 0;
    background-color: var(--background);
}

@media (min-width: 1024px) {
    .coming-soon-section {
        padding: 8rem 0;
    }
}

.coming-soon-header {
    text-align: center;
    margin-bottom: 4rem;
}

.coming-soon-header p {
    color: var(--cream-muted);
    font-size: 1.125rem;
    max-width: 42rem;
    margin: 0 auto;
}

.coming-soon-card {
    max-width: 56rem;
    margin: 0 auto;
    position: relative;
}

.coming-soon-card-inner {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.5s ease;
}

.coming-soon-card:hover .coming-soon-card-inner {
    border-color: rgba(184, 154, 100, 0.3);
}

.coming-soon-card::before {
    content: '';
    position: absolute;
    inset: -1rem;
    background: linear-gradient(to right, rgba(184, 154, 100, 0.2), transparent, rgba(184, 154, 100, 0.2));
    border-radius: 1.5rem;
    filter: blur(2rem);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.coming-soon-card:hover::before {
    opacity: 0.5;
}

.coming-soon-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .coming-soon-content {
        grid-template-columns: 1fr 1fr;
        padding: 3rem;
    }
}

.coming-book-preview {
    display: flex;
    justify-content: center;
}

.coming-book-wrapper {
    position: relative;
}

.coming-book-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(184, 154, 100, 0.1);
    border-radius: 0.5rem;
    filter: blur(1.5rem);
}

.coming-book-cover {
    position: relative;
    width: 12rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-book);
    filter: grayscale(1);
    opacity: 0.8;
    transition: all 0.5s ease;
}

@media (min-width: 768px) {
    .coming-book-cover {
        width: 14rem;
    }
}

.coming-soon-card:hover .coming-book-cover {
    filter: grayscale(0);
    opacity: 1;
}

.coming-soon-badge {
    position: absolute;
    top: -0.75rem;
    right: -0.75rem;
    background: var(--primary);
    color: var(--primary-foreground);
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.coming-book-info {
    text-align: center;
}

@media (min-width: 768px) {
    .coming-book-info {
        text-align: left;
    }
}

.coming-book-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .coming-book-title {
        font-size: 1.875rem;
    }
}

.coming-book-description {
    color: var(--cream-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--primary);
}

@media (min-width: 768px) {
    .status-indicator {
        justify-content: flex-start;
    }
}

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

.status-text {
    font-size: 0.875rem;
    font-weight: 500;
}

/* ==========================================
   Footer
   ========================================== */
.site-footer {
    padding: 3rem 0;
    background-color: var(--card);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-brand {
    text-align: center;
}

@media (min-width: 768px) {
    .footer-brand {
        text-align: left;
    }
}

.footer-brand h3 {
    font-size: 1.25rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-links a {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

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

.footer-copyright {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-copyright {
        text-align: right;
    }
}

/* ==========================================
   Animations
   ========================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(6px); }
    60% { transform: translateY(3px); }
}

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