/*
Theme Name: Chess Jawa
Theme URI: https://chessjawa.com
Description: Custom theme for the Chess Jawa charity chess site
Version: 2.0
Author: Chess Jawa
*/

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --sand: #f0e4d0;
    --sand-light: #f7f1e6;
    --sand-dark: #d4c4a8;
    --amber: #d4920b;
    --amber-glow: #f5a623;
    --gold: #e8b830;
    --brown-deep: #2a1810;
    --brown-robe: #5c4033;
    --brown-mid: #8b6f47;
    --night-sky: #0d0a06;
    --parchment: #faf5eb;
    --text: #2a1810;
    --text-muted: #7a6a55;
}

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

body {
    font-family: 'Source Sans 3', Georgia, serif;
    color: var(--text);
    background: var(--parchment);
    line-height: 1.7;
    font-size: 17px;
}

/* ============================
   HERO SECTION
   ============================ */
.site-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--night-sky);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('images/binary-sunset-sky.jpg');
    background-size: cover;
    background-position: center center;
    filter: brightness(0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
}

.hero-logo {
    max-width: 380px;
    width: 80vw;
    filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.6));
    animation: logoFloat 4s ease-in-out infinite;
}

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

.hero-tagline {
    font-family: 'Cinzel', serif;
    color: var(--sand);
    font-size: 1.15rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 30px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}

.hero-charity a,
.hero-charity-link {
    color: var(--amber-glow);
    text-decoration: underline;
    text-decoration-color: rgba(245, 166, 35, 0.4);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.3s;
}

.hero-charity a:hover {
    text-decoration-color: var(--amber-glow);
}

.hero-charity {
    color: var(--amber-glow);
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 12px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

/* Scroll hint */
.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--sand-dark);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
    animation: scrollPulse 2s ease-in-out infinite;
}

.hero-scroll::after {
    content: '';
    display: block;
    width: 1px;
    height: 30px;
    background: var(--sand-dark);
    margin: 8px auto 0;
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================
   NAVIGATION
   ============================ */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.4s, backdrop-filter 0.4s;
}

.site-nav.scrolled,
.site-nav.nav-solid {
    background: rgba(42, 24, 16, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-brand {
    font-family: 'Cinzel', serif;
    color: var(--sand);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 28px;
}

.nav-links a {
    color: var(--sand);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--amber-glow);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--amber-glow);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--sand);
    margin: 5px 0;
    transition: 0.3s;
}

/* ============================
   CONTENT SECTIONS
   ============================ */
.section {
    padding: 80px 20px;
}

.section-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--brown-deep);
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--amber);
}

/* News section */
.section-news {
    background: var(--parchment);
}

.news-card {
    background: white;
    border-radius: 12px;
    padding: 35px 40px;
    box-shadow: 0 4px 20px rgba(42, 24, 16, 0.06);
    border: 1px solid var(--sand-dark);
    position: relative;
    overflow: hidden;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--amber), var(--gold));
}

.news-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.news-heading {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: var(--brown-deep);
    margin-bottom: 12px;
}

.news-excerpt {
    color: var(--text);
    line-height: 1.8;
}

.news-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--amber);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.news-link:hover {
    color: var(--brown-deep);
}

/* Mission / Charity section */
.section-mission {
    background: var(--brown-deep);
    color: var(--sand);
    position: relative;
    overflow: hidden;
}

.section-mission::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 40px,
        rgba(212, 146, 11, 0.03) 40px,
        rgba(212, 146, 11, 0.03) 80px
    );
}

.section-mission .section-inner {
    position: relative;
    z-index: 1;
}

.section-mission .section-title {
    color: var(--sand);
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.mission-text {
    font-size: 1.15rem;
    line-height: 1.9;
}

.mission-text em {
    color: var(--amber-glow);
    font-style: normal;
    font-weight: 600;
}

.mission-charity-link {
    color: var(--amber-glow);
    text-decoration: underline;
    text-decoration-color: rgba(245, 166, 35, 0.4);
    text-underline-offset: 3px;
    font-weight: 600;
    transition: text-decoration-color 0.3s;
}

.mission-charity-link:hover {
    text-decoration-color: var(--amber-glow);
}

.mission-photo {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    position: relative;
}

.mission-photo img {
    width: 100%;
    display: block;
}

.mission-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    border: 2px solid rgba(212, 146, 11, 0.3);
}

/* About section */
.section-about {
    background: var(--parchment);
}

.about-content {
    font-size: 1.05rem;
    line-height: 1.9;
    max-width: 800px;
}

.about-content p {
    margin-bottom: 1.2em;
}

.about-content a {
    color: var(--amber);
    text-decoration: underline;
    text-decoration-color: rgba(212, 146, 11, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.3s;
}

.about-content a:hover {
    text-decoration-color: var(--amber);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid var(--sand-dark);
}

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

.stat-number {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--amber);
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 6px;
}

/* Donate section */
.section-donate {
    background: var(--sand-light);
    text-align: center;
}

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

.donate-nami {
    max-width: 200px;
    margin: 0 auto 25px;
    opacity: 0.85;
}

.donate-charity-logo {
    max-width: 280px;
    margin: 0 auto 25px;
    display: block;
}

.donate-content a:not(.donate-btn) {
    color: var(--amber);
    text-decoration: underline;
    text-decoration-color: rgba(212, 146, 11, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.3s;
}

.donate-content a:not(.donate-btn):hover {
    text-decoration-color: var(--amber);
}

.donate-text {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 30px;
    line-height: 1.8;
}

.donate-btn {
    display: inline-block;
    background: var(--amber);
    color: white;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 16px 50px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(212, 146, 11, 0.3);
}

.donate-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.donate-paypal-form {
    display: inline;
}

.donate-btn-paypal {
    border: none;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    background: var(--brown-deep);
    color: white;
}

.donate-btn:hover,
.donate-btn-paypal:hover {
    background: var(--brown-robe);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(42, 24, 16, 0.3);
}

/* Fundraising history */
.fundraising-history {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--sand-dark);
}

.fundraising-heading {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--brown-deep);
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.fundraising-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.fundraising-year {
    text-align: center;
}

.fundraising-amount {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--amber);
}

.fundraising-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 4px;
}

/* Gallery preview */
.section-gallery {
    background: var(--parchment);
}

.gallery-preview {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(42, 24, 16, 0.1);
    position: relative;
    cursor: pointer;
    max-width: 700px;
}

.gallery-preview img {
    width: 100%;
    display: block;
    transition: transform 0.6s;
}

.gallery-preview:hover img {
    transform: scale(1.03);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 30%, rgba(42, 24, 16, 0.85));
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

.gallery-overlay span {
    color: white;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.gallery-link {
    display: inline-block;
    margin-top: 25px;
    color: var(--amber);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.gallery-link:hover {
    color: var(--brown-deep);
}

/* Federation badge */
.section-federation {
    background: var(--sand);
    text-align: center;
    padding: 60px 20px;
}

.federation-badge {
    max-width: 150px;
    margin-bottom: 15px;
    opacity: 0.85;
}

.federation-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.federation-text a {
    color: var(--amber);
    text-decoration: none;
    font-weight: 600;
}

/* Footer */
.site-footer {
    background: var(--night-sky);
    color: var(--sand-dark);
    text-align: center;
    padding: 40px 20px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.footer-utinni {
    font-family: 'Cinzel', serif;
    color: var(--amber);
    font-size: 1.2rem;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

/* ============================
   WORDPRESS CONTENT
   ============================ */
.entry-content {
    max-width: 800px;
    margin: 0 auto;
}

.entry-content p {
    margin-bottom: 1.2em;
}

.entry-content a {
    color: var(--amber);
    text-decoration: underline;
    text-decoration-color: rgba(212, 146, 11, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.3s;
}

.entry-content a:hover {
    text-decoration-color: var(--amber);
}

.entry-content h2 {
    font-family: 'Cinzel', serif;
    color: var(--brown-deep);
    margin: 2em 0 0.8em;
    font-size: 1.6rem;
}

.entry-content h3 {
    font-family: 'Cinzel', serif;
    color: var(--brown-robe);
    margin: 1.5em 0 0.6em;
    font-size: 1.25rem;
}

.entry-content blockquote {
    border-left: 4px solid var(--amber);
    background: var(--sand-light);
    margin: 1.5em 0;
    padding: 20px 25px;
    border-radius: 0 8px 8px 0;
}

.entry-content ul {
    padding-left: 1.5em;
    margin-bottom: 1.2em;
}

.entry-content li {
    margin-bottom: 0.5em;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1em 0;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 850px) {
    .mission-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-logo {
        max-width: 280px;
    }

    .section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(42, 24, 16, 0.95);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 20px 30px;
        gap: 15px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .fundraising-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .site-hero {
        min-height: 70vh;
    }

    .hero-logo {
        max-width: 220px;
    }

    .hero-tagline {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }

    .news-card {
        padding: 25px;
    }

    .donate-btn {
        padding: 14px 35px;
        font-size: 0.95rem;
    }
}
