/* ========================================
   CHESS CLUB PAGE STYLES
   Design: Deep navy blue, strategic, intellectual
   ======================================== */

/* CSS Variables for Chess Club */
:root {
    --chess-primary: #1e3a5f;
    --chess-primary-dark: #0f2744;
    --chess-primary-light: #2d5a8a;
    --chess-accent: #c9a227;
    --chess-accent-light: #e6c35a;
    --chess-bg-light: #f8fafc;
    --chess-bg-pattern: rgba(30, 58, 95, 0.03);
}

/* Hero Section */
.chess-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 5rem 0 4rem;
}

.chess-hero__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--chess-primary-dark) 0%, var(--chess-primary) 50%, var(--chess-primary-light) 100%);
}

.chess-hero__pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(45deg, rgba(255,255,255,0.03) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.03) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.03) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.03) 75%);
    background-size: 60px 60px;
    background-position: 0 0, 30px 0, 30px -30px, 0px 30px;
    opacity: 0.5;
}

.chess-hero__gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(201, 162, 39, 0.15) 0%, transparent 60%);
}

.chess-hero__content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    color: #ffffff;
}

.chess-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(201, 162, 39, 0.2);
    border: 1px solid rgba(201, 162, 39, 0.4);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--chess-accent-light);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}

.chess-hero__badge svg {
    color: var(--chess-accent);
}

.chess-hero__title {
    margin-bottom: 1rem;
}

.chess-hero__title-zh {
    display: block;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.chess-hero__title-en {
    display: block;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 500;
    opacity: 0.85;
    letter-spacing: 0.1em;
}

.chess-hero__tagline {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.chess-hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-chess-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--chess-accent);
    color: var(--chess-primary-dark);
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
}

.btn-chess-primary:hover {
    background: var(--chess-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.4);
}

/* Decorative chess pieces */
.chess-hero__decor {
    position: absolute;
    width: 200px;
    height: 200px;
    opacity: 0.08;
    pointer-events: none;
}

.chess-hero__decor--king {
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='white'%3E%3Cpath d='M50 5v10M45 15h10M35 25h30v10H35zM30 35h40l5 45H25l5-45zM20 80h60v10H20z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.chess-hero__decor--queen {
    right: 5%;
    bottom: 10%;
    width: 150px;
    height: 150px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='white'%3E%3Ccircle cx='50' cy='15' r='8'/%3E%3Cpath d='M25 30l25 10 25-10-5 50H30l-5-50z'/%3E%3Cpath d='M20 80h60v10H20z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Stats Section */
.chess-stats {
    background: #ffffff;
    border-bottom: 1px solid rgba(30, 58, 95, 0.1);
    padding: 2rem 0;
    margin-top: -1px;
}

.chess-stats__grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.chess-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chess-stat__icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--chess-primary) 0%, var(--chess-primary-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.chess-stat__icon svg {
    width: 24px;
    height: 24px;
}

.chess-stat__content {
    display: flex;
    flex-direction: column;
}

.chess-stat__number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--chess-primary);
}

.chess-stat__label {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

/* Section Styles */
.chess-section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--chess-primary-light);
    margin-bottom: 0.75rem;
}

.chess-section-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--chess-primary-dark);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

/* Introduction Section */
.chess-intro {
    background: #ffffff;
}

.chess-intro__grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: center;
}

.chess-intro__text {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

.chess-intro__text p {
    margin-bottom: 1rem;
}

.chess-intro__features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chess-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--chess-primary);
}

.chess-feature-item svg {
    color: var(--chess-accent);
    flex-shrink: 0;
}

/* Chess Board Decoration */
.chess-board-decoration {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--chess-primary) 0%, var(--chess-primary-dark) 100%);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(30, 58, 95, 0.25);
}

.chess-board-inner {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.chess-square {
    aspect-ratio: 1;
}

.chess-square--light {
    background: rgba(255, 255, 255, 0.9);
}

.chess-square--dark {
    background: rgba(30, 58, 95, 0.7);
}

/* Programs Section */
.chess-programs {
    background: var(--chess-bg-light);
}

.chess-programs__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.chess-program-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(30, 58, 95, 0.08);
    box-shadow: 0 4px 20px rgba(30, 58, 95, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.chess-program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(30, 58, 95, 0.12);
    border-color: rgba(30, 58, 95, 0.15);
}

.chess-program-card__icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.08) 0%, rgba(30, 58, 95, 0.04) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--chess-primary);
}

.chess-program-card__icon svg {
    width: 28px;
    height: 28px;
}

.chess-program-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--chess-primary-dark);
    margin-bottom: 0.5rem;
}

.chess-program-card__desc {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.chess-program-card__link {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--chess-primary);
    transition: color 0.2s ease;
}

.chess-program-card:hover .chess-program-card__link {
    color: var(--chess-accent);
}

/* Why Choose Us Section */
.chess-why {
    background: #ffffff;
}

.chess-why__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.chess-why-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.chess-why-card__icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--chess-primary) 0%, var(--chess-primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: #ffffff;
}

.chess-why-card__icon svg {
    width: 28px;
    height: 28px;
}

.chess-why-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--chess-primary-dark);
    margin-bottom: 0.5rem;
}

.chess-why-card p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* CTA Section */
.chess-cta {
    background: linear-gradient(135deg, var(--chess-primary-dark) 0%, var(--chess-primary) 100%);
    padding: 3rem 0;
}

.chess-cta__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.chess-cta__icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--chess-accent);
    flex-shrink: 0;
}

.chess-cta__icon svg {
    width: 32px;
    height: 32px;
}

.chess-cta__text {
    flex: 1;
    min-width: 200px;
}

.chess-cta__text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.chess-cta__text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.chess-cta__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-chess-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--chess-accent);
    color: var(--chess-primary-dark);
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-chess-cta:hover {
    background: var(--chess-accent-light);
    transform: translateY(-2px);
}

.btn-chess-cta-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #ffffff;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-chess-cta-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 992px) {
    .chess-intro__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .chess-intro__visual {
        order: -1;
        max-width: 350px;
        margin: 0 auto;
    }

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

@media (max-width: 768px) {
    .chess-hero {
        min-height: 380px;
        padding: 4rem 0 3rem;
    }

    .chess-stats__grid {
        gap: 1.5rem;
    }

    .chess-stat {
        flex: 1;
        min-width: 140px;
        justify-content: center;
    }

    .chess-why__grid {
        grid-template-columns: 1fr;
    }

    .chess-cta__content {
        flex-direction: column;
        text-align: center;
    }

    .chess-cta__actions {
        justify-content: center;
    }

    .chess-hero__decor {
        display: none;
    }
}

@media (max-width: 480px) {
    .chess-stats__grid {
        flex-direction: column;
        gap: 1rem;
    }

    .chess-stat {
        justify-content: flex-start;
        width: 100%;
    }
}

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

.chess-board-decoration {
    animation: float 6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .chess-board-decoration {
        animation: none;
    }

    .btn-chess-primary,
    .btn-chess-cta,
    .btn-chess-cta-outline,
    .chess-program-card {
        transition: none;
    }
}
