@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/font_0.woff2) format('woff2');
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/font_1.woff2) format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/font_2.woff2) format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/font_3.woff2) format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/font_4.woff2) format('woff2');
}

:root {
    --bg-color: #0b0c10;
    --text-primary: #e0e2e4;
    --text-secondary: #a0a5aa;
    --accent-color: #d4af37; /* Gold accent */
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.1) 0%, transparent 40%),
                radial-gradient(circle at 100% 100%, rgba(40, 40, 60, 0.4) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    flex-grow: 1;
}

/* Header */
.hero {
    text-align: center;
    padding: 6rem 1rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero .intro-text {
    max-width: 800px;
    margin: 2rem auto 0;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.shop-btn, .back-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), transparent);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 2px;
    border-radius: 40px;
    text-transform: uppercase;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
}

.shop-btn {
    margin-top: 2.5rem;
}

.shop-btn:hover, .back-btn:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.5);
    transform: translateY(-3px);
    font-weight: 700;
}

.search-container {
    margin-top: 3rem;
    width: 100%;
    max-width: 500px;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
    outline: none;
    text-align: center;
}

.search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

.search-input:focus {
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

/* Filters */
.filter-section {
    margin-bottom: 4rem;
}

.buttons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.filter-btn.active {
    background: var(--accent-color);
    color: var(--bg-color);
    font-weight: 600;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    border-color: var(--accent-color);
}

/* Gallery Grid */
.gallery-section {
    /* Removed content-visibility to restore natural LCP paint speed */
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    padding-bottom: 5rem;
}

.culture-divider {
    grid-column: 1 / -1;
    margin-top: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--card-border);
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.culture-divider h2 {
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-size: 2.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.culture-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 800px;
    margin-top: 0.5rem;
    line-height: 1.6;
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    display: flex;
    flex-direction: column;
    content-visibility: auto;
    contain-intrinsic-size: 0 450px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
}

.card-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    background: #151618;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

.card-culture {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.card-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--card-border);
    margin-top: auto;
}
/* Deity Detail Page */
.deity-detail-wrapper {
    max-width: 900px;
    margin: 3rem auto;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out forwards;
}

.deity-header {
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.deity-culture-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 20px;
    margin-bottom: 1rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.deity-title {
    font-size: 3.5rem;
    color: var(--text-primary);
    margin: 0;
}

.deity-hero-image-wrapper {
    width: 100%;
    max-height: 800px;
    overflow: hidden;
    position: relative;
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    text-align: center;
    background: rgba(0,0,0,0.5);
}

.deity-hero-image {
    max-width: 100%;
    max-height: 800px;
    height: auto;
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.deity-hero-image:hover {
    transform: scale(1.02);
}

.deity-body {
    padding: 3rem;
}

.deity-long-desc {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.deity-long-desc p {
    margin-bottom: 1.5rem;
}

.deity-long-desc p:first-child::first-letter {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--accent-color);
    float: left;
    margin-right: 0.5rem;
    line-height: 0.8;
}

.deity-action {
    text-align: center;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 3rem;
}
/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 4rem 1rem 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    /* Removed height for square aspect ratio */
    
    /* PERFORMANCE FIXES FOR LCP: REMOVE HEAVY BACKGROUNDS AND ANIMATIONS */
    .background-overlay {
        background: var(--bg-color) !important; /* Remove radial-gradient to speed up paint */
    }

    .hero h1 {
        text-shadow: none; /* Remove heavy shadow to speed up paint */
    }
    
    .card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(21, 22, 24, 1); /* Solid color instead of opacity */
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        box-shadow: none !important; /* Reduce paint cost */
        border: 1px solid rgba(255,255,255,0.05); /* Simpler border */
    }

    .culture-divider {
        animation: none !important;
        opacity: 1 !important;
    }
}

/* Language Switcher and Bilingual Toggle */
html[lang="de"] .lang-en { display: none !important; }
html[lang="en"] .lang-de { display: none !important; }

.language-switcher {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    gap: 0.8rem;
    z-index: 100;
}

.lang-btn {
    background: none;
    border: 1px solid transparent;
    cursor: pointer;
    opacity: 0.4;
    transition: var(--transition);
    border-radius: 4px;
    overflow: hidden;
    width: 32px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    padding: 0;
}

.lang-btn:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.lang-btn.active {
    opacity: 1;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    border-color: rgba(212, 175, 55, 0.6);
}

.lang-btn svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .language-switcher {
        top: 1rem;
        right: 1rem;
    }
}
