/* ==========================================================================
   BookCafe - Where Stories Meet Coffee
   A warm, literary-inspired design with sophisticated earth tones
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
    /* Color Palette - Warm Literary Tones */
    --color-espresso: #2C1810;
    --color-mocha: #4A3428;
    --color-latte: #8B7355;
    --color-cream: #F5F0E8;
    --color-parchment: #FAF7F2;
    --color-gold: #C9A86C;
    --color-gold-light: #E8D5B0;
    --color-rust: #A65D3F;
    --color-sage: #7A8B6E;
    --color-ink: #1A1A1A;
    
    /* Semantic Colors */
    --color-primary: var(--color-espresso);
    --color-secondary: var(--color-mocha);
    --color-accent: var(--color-gold);
    --color-accent-hover: #B8974F;
    --color-background: var(--color-parchment);
    --color-surface: var(--color-cream);
    --color-text: var(--color-espresso);
    --color-text-muted: var(--color-latte);
    --color-success: var(--color-sage);
    --color-error: var(--color-rust);
    
    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Outfit', system-ui, sans-serif;
    
    /* Font Sizes - Fluid Scale */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
    --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
    --text-3xl: clamp(2rem, 1.5rem + 2.5vw, 3rem);
    --text-4xl: clamp(2.5rem, 2rem + 3vw, 4rem);
    --text-5xl: clamp(3rem, 2rem + 5vw, 5.5rem);
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;
    
    /* Layout */
    --container-max: 1280px;
    --container-narrow: 900px;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(44, 24, 16, 0.05);
    --shadow-md: 0 4px 6px rgba(44, 24, 16, 0.07), 0 2px 4px rgba(44, 24, 16, 0.05);
    --shadow-lg: 0 10px 15px rgba(44, 24, 16, 0.1), 0 4px 6px rgba(44, 24, 16, 0.05);
    --shadow-xl: 0 20px 25px rgba(44, 24, 16, 0.1), 0 10px 10px rgba(44, 24, 16, 0.04);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Grain Overlay for Texture */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-primary);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

em {
    font-style: italic;
    color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.main-content {
    min-height: 100vh;
    position: relative;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-cream);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-primary);
    border: 1px solid var(--color-latte);
}

.btn-secondary:hover {
    background: var(--color-gold-light);
    border-color: var(--color-gold);
}

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

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-cream);
}

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

.btn-accent:hover {
    background: var(--color-accent-hover);
}

.btn-large {
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--text-base);
}

.btn-small {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-xs);
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    background: linear-gradient(to bottom, var(--color-parchment), transparent);
    transition: all var(--transition-base);
}

.site-header.scrolled {
    background: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon {
    font-size: var(--text-2xl);
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.footer-logo-image {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1;
}

.logo-tagline {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-menu a {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-secondary);
    position: relative;
    padding: var(--space-xs) 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-base);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-primary);
}

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

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    transition: all var(--transition-base);
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-5xl) var(--space-lg) var(--space-3xl);
    position: relative;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(201, 168, 108, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(166, 93, 63, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, var(--color-parchment) 0%, var(--color-cream) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L30 60M0 30L60 30' stroke='%23C9A86C' stroke-width='0.5' opacity='0.1'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: var(--color-gold-light);
    color: var(--color-mocha);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: var(--space-xl);
}

.hero-title em {
    font-weight: 600;
}

.hero-description {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    max-width: 500px;
    margin-bottom: var(--space-2xl);
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Hero Visual Cards */
.hero-visual {
    position: relative;
    height: 500px;
}

.hero-card {
    position: absolute;
    background: var(--color-parchment);
    border: 1px solid rgba(201, 168, 108, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    transition: transform var(--transition-spring);
}

.hero-card:hover {
    transform: translateY(-10px) rotate(0deg) !important;
}

.card-icon {
    font-size: var(--text-4xl);
}

.hero-card span:last-child {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--color-primary);
}

.hero-card-1 {
    top: 10%;
    left: 10%;
    transform: rotate(-6deg);
    animation: float 6s ease-in-out infinite;
}

.hero-card-2 {
    top: 30%;
    right: 10%;
    transform: rotate(4deg);
    animation: float 6s ease-in-out infinite 1s;
}

.hero-card-3 {
    bottom: 15%;
    left: 25%;
    transform: rotate(-3deg);
    animation: float 6s ease-in-out infinite 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-6deg); }
    50% { transform: translateY(-15px) rotate(-6deg); }
}

.hero-card-2 {
    animation-name: float2;
}

@keyframes float2 {
    0%, 100% { transform: translateY(0) rotate(4deg); }
    50% { transform: translateY(-15px) rotate(4deg); }
}

.hero-card-3 {
    animation-name: float3;
}

@keyframes float3 {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-15px) rotate(-3deg); }
}

/* Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-text-muted);
    font-size: var(--text-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-indicator {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.8); }
}

/* --------------------------------------------------------------------------
   Section Styles
   -------------------------------------------------------------------------- */
.section-label {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-cta {
    text-align: center;
    margin-top: var(--space-3xl);
}

/* --------------------------------------------------------------------------
   About Section
   -------------------------------------------------------------------------- */
.about-section {
    padding: var(--space-5xl) 0;
    background: var(--color-cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.about-content {
    max-width: 550px;
}

.about-text {
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.about-stats {
    display: flex;
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--color-gold-light);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1;
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

.about-image {
    position: relative;
}

.image-frame {
    position: relative;
    padding: var(--space-lg);
    background: var(--color-parchment);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.image-frame::before {
    content: '';
    position: absolute;
    inset: -10px;
    border: 2px solid var(--color-gold-light);
    border-radius: var(--radius-xl);
    z-index: -1;
}

.image-placeholder {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-gold-light) 100%);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.placeholder-icon {
    font-size: var(--text-4xl);
}

.placeholder-text {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    color: var(--color-mocha);
}

/* --------------------------------------------------------------------------
   Featured Menu Section
   -------------------------------------------------------------------------- */
.featured-menu {
    padding: var(--space-5xl) 0;
    background: var(--color-parchment);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.menu-card {
    background: var(--color-cream);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid transparent;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-rust));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.menu-card:hover {
    border-color: var(--color-gold-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.menu-card:hover::before {
    transform: scaleX(1);
}

.menu-category {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.menu-name {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-primary);
    margin: var(--space-sm) 0;
}

.menu-description {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.menu-price {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Featured Books Section
   -------------------------------------------------------------------------- */
.featured-books {
    padding: var(--space-5xl) 0;
    background: 
        radial-gradient(ellipse at 10% 90%, rgba(201, 168, 108, 0.1) 0%, transparent 40%),
        var(--color-cream);
}

.editors-picks-section {
    background: 
        radial-gradient(ellipse at 10% 90%, rgba(201, 168, 108, 0.1) 0%, transparent 40%),
        var(--color-cream);
}

.newest-books-section {
    padding: var(--space-5xl) 0;
    background: 
        radial-gradient(ellipse at 90% 10%, rgba(102, 126, 234, 0.1) 0%, transparent 40%),
        var(--color-parchment);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
}

.book-card {
    background: var(--color-parchment);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.book-cover {
    position: relative;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, var(--color-mocha) 0%, var(--color-espresso) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.book-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.book-icon {
    font-size: 4rem;
    opacity: 0.8;
}

.book-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: var(--color-gold);
    color: var(--color-primary);
    font-size: var(--text-xs);
    font-weight: 600;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.book-info {
    padding: var(--space-lg);
}

.book-category {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.book-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-primary);
    margin: var(--space-xs) 0;
    line-height: 1.3;
}

.book-author {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: var(--space-sm);
}

.book-price {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Events Section
   -------------------------------------------------------------------------- */
.events-section {
    padding: var(--space-5xl) 0;
    background: var(--color-parchment);
}

.events-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: var(--space-3xl);
}

.events-header .section-header {
    text-align: left;
    margin-bottom: 0;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.event-card {
    display: flex;
    gap: var(--space-xl);
    background: var(--color-cream);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

.event-card:hover {
    border-color: var(--color-gold-light);
    box-shadow: var(--shadow-md);
}

.event-date {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
    padding: var(--space-md);
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-rust) 100%);
    border-radius: var(--radius-md);
    color: var(--color-cream);
}

.event-day {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 600;
    line-height: 1;
}

.event-month {
    display: block;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: var(--space-xs);
}

.event-details {
    flex: 1;
}

.event-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.event-description {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.event-meta {
    display: flex;
    gap: var(--space-lg);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.event-time,
.event-location {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* --------------------------------------------------------------------------
   Recently Donated Section
   -------------------------------------------------------------------------- */
.recent-donations-section {
    background: 
        radial-gradient(ellipse at 90% 10%, rgba(201, 168, 108, 0.15) 0%, transparent 40%),
        var(--color-parchment);
}

.donations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
}

.donation-card {
    background: var(--color-cream);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid var(--color-gold-light);
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.donation-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-gold);
}

.donation-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: var(--text-2xl);
}

.donation-content {
    flex: 1;
}

.donation-name {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-primary);
    margin: 0 0 var(--space-xs) 0;
}

.donation-books {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0 0 var(--space-xs) 0;
}

.donation-date {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin: 0;
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta-section {
    padding: var(--space-5xl) 0;
    background: 
        radial-gradient(ellipse at center, rgba(201, 168, 108, 0.2) 0%, transparent 60%),
        linear-gradient(135deg, var(--color-espresso) 0%, var(--color-mocha) 100%);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: var(--text-4xl);
    color: var(--color-cream);
    margin-bottom: var(--space-lg);
}

.cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-top: var(--space-xl);
    flex-wrap: wrap;
}

.cta-text {
    font-size: var(--text-lg);
    color: var(--color-gold-light);
    margin-bottom: var(--space-2xl);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--color-espresso);
    color: var(--color-cream);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-cream);
    margin-bottom: var(--space-lg);
}

.footer-description {
    color: var(--color-latte);
    font-size: var(--text-sm);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--color-cream);
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--color-gold);
    color: var(--color-primary);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-hours h4,
.footer-newsletter h4 {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-cream);
    margin-bottom: var(--space-lg);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: var(--color-latte);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

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

.footer-hours ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-hours li {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-sm);
    color: var(--color-latte);
}

.footer-newsletter p {
    font-size: var(--text-sm);
    color: var(--color-latte);
    margin-bottom: var(--space-lg);
}

.newsletter-form {
    display: flex;
    gap: var(--space-sm);
}

.newsletter-form input {
    flex: 1;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: var(--color-cream);
    font-size: var(--text-sm);
}

.newsletter-form input::placeholder {
    color: var(--color-latte);
}

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

.footer-bottom {
    padding-top: var(--space-2xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-sm);
    color: var(--color-latte);
}

.footer-quote {
    font-family: var(--font-display);
    font-style: italic;
}

/* --------------------------------------------------------------------------
   Page Hero (Inner Pages)
   -------------------------------------------------------------------------- */
.page-hero {
    padding: calc(var(--space-5xl) + 60px) 0 var(--space-4xl);
    background: 
        radial-gradient(ellipse at 30% 80%, rgba(201, 168, 108, 0.15) 0%, transparent 50%),
        var(--color-cream);
    text-align: center;
}

.page-label {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.page-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-md);
}

.page-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Menu Page
   -------------------------------------------------------------------------- */
.menu-content {
    padding: var(--space-4xl) 0;
}

.menu-category-section {
    margin-bottom: var(--space-4xl);
}

.category-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--color-gold-light);
}

.category-icon {
    font-size: var(--text-3xl);
}

.category-title {
    font-size: var(--text-2xl);
    margin: 0;
}

.menu-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.menu-item-card {
    background: var(--color-cream);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    border: 1px solid var(--color-gold-light);
    position: relative;
    transition: all var(--transition-base);
}

.menu-item-card.featured {
    border-color: var(--color-gold);
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-gold-light) 100%);
}

.menu-item-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.featured-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    font-size: var(--text-xs);
    color: var(--color-rust);
    font-weight: 600;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-sm);
}

.item-name {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
}

.item-price {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-accent);
}

.item-description {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin: 0;
}

.menu-note {
    padding: var(--space-2xl) 0;
    background: var(--color-cream);
}

.note-content {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    padding: var(--space-lg);
    background: var(--color-parchment);
    border-radius: var(--radius-md);
    border: 1px dashed var(--color-gold-light);
}

/* --------------------------------------------------------------------------
   Books Page
   -------------------------------------------------------------------------- */
.books-content {
    padding: var(--space-4xl) 0;
}

.books-filter {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-3xl);
    justify-content: center;
}

.filter-btn {
    padding: var(--space-sm) var(--space-lg);
    background: var(--color-cream);
    border: 1px solid var(--color-gold-light);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-muted);
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-primary);
}

.filter-btn .count {
    font-size: var(--text-xs);
    opacity: 0.7;
}

.books-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
}

.book-card-full {
    display: flex;
    gap: var(--space-lg);
    background: var(--color-cream);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-gold-light);
    transition: all var(--transition-base);
}

.book-card-full:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.book-card-full .book-cover {
    flex-shrink: 0;
    width: 140px;
    aspect-ratio: auto;
    min-height: 200px;
}

.book-details {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
}

.book-description {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    flex: 1;
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.book-status {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.book-status.available {
    color: var(--color-sage);
}

.book-request {
    padding: var(--space-4xl) 0;
    background: var(--color-cream);
}

.request-content {
    text-align: center;
    padding: var(--space-3xl);
    background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-cream) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-gold);
}

.request-content h3 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.request-content p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

/* --------------------------------------------------------------------------
   Events Page
   -------------------------------------------------------------------------- */
.events-content {
    padding: var(--space-4xl) 0;
}

.events-page-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.event-card-full {
    display: flex;
    gap: var(--space-xl);
    background: var(--color-cream);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid var(--color-gold-light);
    transition: all var(--transition-base);
}

.event-card-full:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--color-gold);
}

.event-date-block {
    flex-shrink: 0;
    width: 100px;
    text-align: center;
    padding: var(--space-lg);
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-rust) 100%);
    border-radius: var(--radius-md);
    color: var(--color-cream);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-date-block .event-day {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 600;
    line-height: 1;
}

.event-date-block .event-month {
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.event-date-block .event-year {
    font-size: var(--text-xs);
    opacity: 0.8;
    margin-top: var(--space-xs);
}

.event-content {
    flex: 1;
}

.event-header {
    margin-bottom: var(--space-md);
}

.event-card-full .event-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-sm);
}

.event-card-full .event-meta {
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.meta-icon {
    font-size: var(--text-base);
}

.event-card-full .event-description {
    font-size: var(--text-base);
    margin-bottom: var(--space-lg);
}

.event-actions {
    display: flex;
    gap: var(--space-md);
}

.host-event {
    padding: var(--space-4xl) 0;
    background: var(--color-cream);
}

.host-content {
    text-align: center;
    padding: var(--space-3xl);
    background: var(--color-espresso);
    border-radius: var(--radius-lg);
    color: var(--color-cream);
}

.host-content h3 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    color: var(--color-cream);
    margin-bottom: var(--space-sm);
}

.host-content p {
    color: var(--color-gold-light);
    margin-bottom: var(--space-xl);
}

/* --------------------------------------------------------------------------
   Contact Page
   -------------------------------------------------------------------------- */
.contact-content {
    padding: var(--space-4xl) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
}

.contact-form-section {
    background: var(--color-cream);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
}

.form-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-xl);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-group label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-primary);
}

.required {
    color: var(--color-rust);
}

.form-group input,
.form-group textarea {
    padding: var(--space-md);
    background: var(--color-parchment);
    border: 1px solid var(--color-gold-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text);
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-gold);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-latte);
}

.form-hint {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: calc(var(--space-xs) * -1);
}

/* reCAPTCHA Styling */
.g-recaptcha {
    margin: var(--space-md) 0;
    display: inline-block;
}

.g-recaptcha > div {
    margin: 0 auto;
}

/* Responsive reCAPTCHA for mobile */
@media (max-width: 768px) {
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: 0 0;
    }
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: var(--text-sm);
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-description {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.info-card {
    background: var(--color-cream);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-gold-light);
}

.info-card h3 {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.info-card p {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    margin-bottom: var(--space-sm);
}

.link-arrow {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-accent);
    transition: color var(--transition-fast);
}

.link-arrow:hover {
    color: var(--color-rust);
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.social-card .social-buttons {
    display: flex;
    gap: var(--space-sm);
}

.social-btn {
    padding: var(--space-sm) var(--space-md);
    background: var(--color-parchment);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--color-text-muted);
    transition: all var(--transition-base);
}

.social-btn:hover {
    background: var(--color-primary);
    color: var(--color-cream);
}

.map-section {
    padding: var(--space-4xl) 0;
    background: var(--color-parchment);
}

.map-section .container {
    max-width: 100%;
    padding: 0 var(--space-lg);
}

.map-container {
    width: 100%;
    height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-gold-light);
    position: relative;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Responsive map */
@media (max-width: 768px) {
    .map-container {
        height: 400px;
    }
    
    .map-section .container {
        padding: 0 var(--space-md);
    }
}

/* Alerts */
.alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xl);
}

.alert-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-sm);
}

.alert-success {
    background: rgba(122, 139, 110, 0.1);
    border: 1px solid var(--color-sage);
}

.alert-success .alert-icon {
    background: var(--color-sage);
    color: white;
}

.alert-error {
    background: rgba(166, 93, 63, 0.1);
    border: 1px solid var(--color-rust);
}

.alert-error .alert-icon {
    background: var(--color-rust);
    color: white;
}

.alert strong {
    display: block;
    margin-bottom: var(--space-xs);
}

.alert p {
    font-size: var(--text-sm);
    margin: 0;
}

/* --------------------------------------------------------------------------
   Responsive Design
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        max-width: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--color-parchment);
        flex-direction: column;
        padding: var(--space-4xl) var(--space-xl);
        gap: var(--space-lg);
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-base);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .hero {
        padding-top: calc(var(--space-4xl) + 60px);
    }
    
    .about-stats {
        flex-wrap: wrap;
        gap: var(--space-xl);
    }
    
    .events-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-lg);
    }
    
    .event-card,
    .event-card-full {
        flex-direction: column;
    }
    
    .event-date,
    .event-date-block {
        width: 100%;
        flex-direction: row;
        gap: var(--space-md);
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .books-page-grid {
        grid-template-columns: 1fr;
    }
    
    .book-card-full {
        flex-direction: column;
    }
    
    .book-card-full .book-cover {
        width: 100%;
        aspect-ratio: 16/9;
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .menu-grid,
    .books-grid,
    .menu-items-grid,
    .donations-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .filter-btn {
        flex: 1;
        justify-content: center;
    }
}

/* --------------------------------------------------------------------------
   Animations & Transitions
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.slide-up {
    animation: slideUp 0.6s ease forwards;
}

/* Staggered animations for lists */
.menu-card,
.book-card,
.book-card-full,
.event-card,
.event-card-full {
    opacity: 0;
    animation: slideUp 0.5s ease forwards;
}

.menu-card:nth-child(1) { animation-delay: 0.1s; }
.menu-card:nth-child(2) { animation-delay: 0.2s; }
.menu-card:nth-child(3) { animation-delay: 0.3s; }
.menu-card:nth-child(4) { animation-delay: 0.4s; }
.menu-card:nth-child(5) { animation-delay: 0.5s; }
.menu-card:nth-child(6) { animation-delay: 0.6s; }

.book-card:nth-child(1),
.book-card-full:nth-child(1) { animation-delay: 0.1s; }
.book-card:nth-child(2),
.book-card-full:nth-child(2) { animation-delay: 0.15s; }
.book-card:nth-child(3),
.book-card-full:nth-child(3) { animation-delay: 0.2s; }
.book-card:nth-child(4),
.book-card-full:nth-child(4) { animation-delay: 0.25s; }
.book-card:nth-child(5),
.book-card-full:nth-child(5) { animation-delay: 0.3s; }

.event-card:nth-child(1),
.event-card-full:nth-child(1) { animation-delay: 0.1s; }
.event-card:nth-child(2),
.event-card-full:nth-child(2) { animation-delay: 0.2s; }
.event-card:nth-child(3),
.event-card-full:nth-child(3) { animation-delay: 0.3s; }

/* --------------------------------------------------------------------------
   Language Switcher Sidebar
   -------------------------------------------------------------------------- */
.lang-sidebar-wrapper {
    position: absolute;
    right: 0;
    top: 0;
    width: 100px;
    height: 100vh;
    pointer-events: none;
    z-index: 100;
}

.language-switcher-sidebar {
    position: sticky;
    top: 50vh;
    transform: translateY(-50%);
    right: var(--space-lg);
    width: fit-content;
    pointer-events: all;
    background: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(10px);
    border-left: 2px solid var(--color-gold-light);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-base);
    padding: var(--space-lg) var(--space-md);
    margin-left: auto;
}

.language-switcher-sidebar:hover {
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15);
}

.lang-sidebar-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.lang-sidebar-label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    margin-bottom: var(--space-xs);
}

.lang-sidebar-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.lang-sidebar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-xs);
    background: var(--color-cream);
    border: 1px solid var(--color-gold-light);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition-base);
    min-width: 60px;
    min-height: 60px;
    gap: var(--space-xs);
}

.lang-sidebar-btn:hover {
    background: var(--color-gold-light);
    border-color: var(--color-gold);
    transform: translateX(-3px);
    box-shadow: -2px 2px 8px rgba(201, 168, 108, 0.2);
}

.lang-sidebar-btn.active {
    background: var(--color-gold);
    border-color: var(--color-gold);
    box-shadow: -2px 2px 8px rgba(201, 168, 108, 0.3);
}

.lang-sidebar-btn.active .lang-code {
    color: var(--color-primary);
    font-weight: 700;
}

.lang-sidebar-btn.active .lang-name {
    color: var(--color-primary);
}

.lang-code {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-secondary);
    transition: color var(--transition-base);
}

.lang-name {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    transition: color var(--transition-base);
}

/* RTL Support for homepage */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .lang-sidebar-wrapper {
    right: auto;
    left: 0;
}

[dir="rtl"] .language-switcher-sidebar {
    right: auto;
    left: var(--space-lg);
    border-left: none;
    border-right: 2px solid var(--color-gold-light);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.1);
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .language-switcher-sidebar:hover {
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.15);
}

[dir="rtl"] .lang-sidebar-btn:hover {
    transform: translateX(3px);
}

[dir="rtl"] .hero-actions {
    flex-direction: row-reverse;
}

[dir="rtl"] .about-grid {
    flex-direction: row-reverse;
}

[dir="rtl"] .section-header {
    text-align: right;
}

[dir="rtl"] .section-cta {
    text-align: right;
}

/* Responsive Language Switcher Sidebar */
@media (max-width: 1024px) {
    .language-switcher-sidebar {
        padding: var(--space-md) var(--space-sm);
    }
    
    .lang-sidebar-btn {
        min-width: 50px;
        min-height: 50px;
        padding: var(--space-xs);
    }
    
    .lang-code {
        font-size: var(--text-base);
    }
    
    .lang-name {
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    .lang-sidebar-wrapper {
        width: auto;
        height: auto;
        position: fixed;
        bottom: var(--space-lg);
        right: var(--space-md);
        top: auto;
    }
    
    .language-switcher-sidebar {
        top: auto;
        bottom: 0;
        right: 0;
        transform: none;
        border-radius: var(--radius-md);
        border-left: 2px solid var(--color-gold-light);
        border-right: 2px solid var(--color-gold-light);
        padding: var(--space-sm);
    }
    
    .lang-sidebar-content {
        flex-direction: row;
        gap: var(--space-sm);
    }
    
    .lang-sidebar-label {
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        margin-bottom: 0;
        margin-right: var(--space-xs);
    }
    
    .lang-sidebar-buttons {
        flex-direction: row;
        gap: var(--space-xs);
    }
    
    .lang-sidebar-btn {
        min-width: 45px;
        min-height: 45px;
        padding: var(--space-xs);
    }
    
    .lang-name {
        display: none;
    }
    
    [dir="rtl"] .lang-sidebar-wrapper {
        left: var(--space-md);
        right: auto;
    }
    
    [dir="rtl"] .language-switcher-sidebar {
        left: 0;
        right: auto;
        border-left: 2px solid var(--color-gold-light);
        border-right: 2px solid var(--color-gold-light);
    }
    
    [dir="rtl"] .lang-sidebar-label {
        margin-right: 0;
        margin-left: var(--space-xs);
    }
}

@media (max-width: 480px) {
    .language-switcher-sidebar {
        bottom: var(--space-md);
        right: var(--space-sm);
        padding: var(--space-xs) var(--space-sm);
    }
    
    .lang-sidebar-label {
        font-size: 10px;
        margin-right: var(--space-xs);
    }
    
    .lang-sidebar-btn {
        min-width: 40px;
        min-height: 40px;
    }
    
    .lang-code {
        font-size: var(--text-sm);
    }
    
    [dir="rtl"] .language-switcher-sidebar {
        left: var(--space-sm);
        right: auto;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .hero-scroll,
    .grain-overlay,
    .language-switcher {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
}

/* ==========================================================================
   Articles Section Styles
   ========================================================================== */

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

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

.article-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-card {
    background: var(--color-parchment);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.article-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-mocha) 0%, var(--color-espresso) 100%);
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-image-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--color-mocha) 0%, var(--color-espresso) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-cream);
    font-size: 3rem;
}

.article-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-author {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.article-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.article-excerpt {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.article-meta {
    display: flex;
    gap: 1rem;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--color-cream);
}

.article-meta i {
    margin-right: 0.25rem;
}

.article-date,
.article-views {
    display: flex;
    align-items: center;
}

/* Article Detail Page */
.article-detail-page {
    padding: 3rem 0;
    min-height: 60vh;
}

.breadcrumb-nav {
    margin-bottom: 2rem;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.breadcrumb-nav a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb-nav a:hover {
    color: var(--color-accent);
}

.breadcrumb-nav span {
    margin: 0 0.5rem;
}

.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-cream);
}

.article-title-main {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-meta-main {
    margin-top: 1rem;
}

.article-author-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: var(--text-base);
    color: var(--color-text-muted);
}

.article-author-name,
.article-date-main,
.article-views-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-author-name i,
.article-date-main i,
.article-views-main i {
    color: var(--color-accent);
}

.article-featured-image {
    margin: 2rem 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content-main {
    font-size: var(--text-lg);
    line-height: 1.8;
    color: var(--color-text);
    margin: 2rem 0;
    white-space: pre-wrap;
}

/* Social Share Buttons */
.article-share-section {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--color-cream);
    border-radius: var(--radius-lg);
}

.share-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

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

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: var(--text-base);
    font-weight: 500;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    color: white;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.share-btn i {
    font-size: 1.25rem;
}

/* Facebook */
.share-facebook {
    background: #1877F2;
}

.share-facebook:hover {
    background: #166FE5;
}

/* Twitter */
.share-twitter {
    background: #1DA1F2;
}

.share-twitter:hover {
    background: #1A91DA;
}

/* LinkedIn */
.share-linkedin {
    background: #0077B5;
}

.share-linkedin:hover {
    background: #006399;
}

/* WhatsApp */
.share-whatsapp {
    background: #25D366;
}

.share-whatsapp:hover {
    background: #20BA5A;
}

/* Email */
.share-email {
    background: var(--color-mocha);
}

.share-email:hover {
    background: var(--color-espresso);
}

/* Copy Link */
.share-copy {
    background: var(--color-accent);
    border: none;
}

.share-copy:hover {
    background: var(--color-accent-hover);
}

.share-copy.copied {
    background: var(--color-success);
}

.article-footer-nav {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--color-cream);
}

/* Articles List Page */
.articles-list-section {
    padding: 3rem 0;
}

.no-articles {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--color-text-muted);
}

.no-articles h3 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    margin-bottom: 1rem;
    color: var(--color-text);
}

/* Responsive */
@media (max-width: 768px) {
    .articles-grid,
    .articles-grid-full {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .article-title-main {
        font-size: var(--text-3xl);
    }
    
    .social-share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
    
    .article-author-info {
        flex-direction: column;
        gap: 0.75rem;
    }
}

