/*
 * home.css - Custom styles for Thai Chess Family Landing Page
 */

:root {
    --hero-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --card-hover-transform: translateY(-8px);
    --section-spacing: 100px;
    --section-spacing-mobile: 60px;
}

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

.animate-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* Global Section Styles */
section {
    position: relative;
    padding: var(--section-spacing) 0;
}

@media (max-width: 768px) {
    section {
        padding: var(--section-spacing-mobile) 0;
    }
}

/* 1. Hero Section */
.hero-wrapper {
    background: var(--hero-gradient);
    min-height: 65vh;
    display: flex;
    align-items: center;
    overflow: visible; /* Allow stat badges to peek out if needed */
    padding: 100px 0 80px;
    margin-top: 0;
}

.section-overlap {
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    .hero-wrapper {
        min-height: auto;
        padding: 60px 0;
    }
    .section-overlap {
        margin-top: -30px;
    }
}

.hero-content h1 {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-visual {
    position: relative;
    perspective: 1000px;
}

.hero-board-mockup {
    transform: rotateY(-15deg) rotateX(10deg);
    box-shadow: -30px 40px 60px rgba(0,0,0,0.5);
    border-radius: 20px;
    border: 8px solid rgba(255,255,255,0.05);
    background: var(--bg-card);
    overflow: hidden;
}

.hero-stat-badge {
    position: absolute;
    background: rgba(218, 165, 32, 0.9);
    color: #000;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
    z-index: 5;
}

/* 2. Quick Actions */
.action-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    height: 100%;
}

.action-card:hover {
    transform: var(--card-hover-transform);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.action-icon {
    width: 70px;
    height: 70px;
    background: rgba(218, 165, 32, 0.1);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 30px;
    color: var(--accent);
}

/* 3. About Section */
.feature-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.feature-icon-small {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--accent);
    margin-top: 3px;
}

/* 4. Featured Puzzles */
.puzzle-card {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.puzzle-card:hover {
    transform: var(--card-hover-transform);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    border-color: rgba(218, 165, 32, 0.3);
}

.puzzle-thumbnail-area {
    background: rgba(0,0,0,0.4);
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* 5. Membership CTA */
.cta-banner {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('/images/landing/chess-bg.jpg'); /* Optional background image if exists */
    background-size: cover;
    background-position: center;
    border-radius: 30px;
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top right, rgba(218,165,32,0.1), transparent 60%);
}

/* 6. Social Section */
.social-card-premium {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.social-card-premium:hover {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.15);
}

/* 7. Footer */
.footer-main {
    background: #0d1117;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 100px 0 50px;
}

.footer-link {
    color: #8b949e;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    margin-bottom: 12px;
}

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

.footer-brand h4 {
    color: var(--accent);
    font-weight: 700;
}
