/* extracurricular.css - Only page-specific styles */
/* Navbar, Footer, Loading are from style.css */

/* ===== CSS VARIABLES (Matching style.css) ===== */
:root {
    --primary-blue: #1a237e;
    --accent-blue: #1976d2;
    --dark-blue: #0d1530;
    --light-blue: #e8eaf6;
    --pure-white: #ffffff;
    --off-white: #fafafa;
    --dark-gray: #212121;
    --medium-gray: #424242;
    --light-gray: #757575;
    --shadow-soft: 0 2px 15px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 25px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 8px 40px rgba(0, 0, 0, 0.12);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --section-spacing: 50px;
}

/* ===== PAGE CONTENT SPACING ===== */
.page-content {
    margin-top: 70px; /* Same as navbar height */
    min-height: calc(100vh - 400px); /* Account for footer */
}

/* ===== HERO SECTION ===== */
.activities-hero {
    position: relative;
    height: 60vh;
    min-height: 500px;
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--pure-white);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%231a237e" fill-opacity="0.2" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== SECTION COMMON STYLES ===== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 4%;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-blue);
}

.section-header p {
    color: var(--medium-gray);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 20px auto 0;
    line-height: 1.6;
}

/* ===== SPORTS SECTION ===== */
.sports-section {
    background: var(--pure-white);
}

.sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.sport-card {
    background: var(--pure-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.sport-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-blue);
}

.sport-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.sport-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sport-card:hover .sport-image img {
    transform: scale(1.05);
}

.sport-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(25, 118, 210, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.sport-card:hover .sport-overlay {
    opacity: 1;
}

.sport-overlay i {
    font-size: 3rem;
    color: var(--pure-white);
}

.sport-info {
    padding: 20px;
}

.sport-info h3 {
    font-size: 1.3rem;
    color: var(--dark-blue);
    margin-bottom: 10px;
    font-weight: 600;
}

.sport-info p {
    color: var(--medium-gray);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.sport-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--light-gray);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 15px;
}

.sport-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== MOVEMENTS SECTION ===== */
.movements-section {
    background: var(--off-white);
}

.movements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.movement-card {
    background: var(--pure-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.movement-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.movement-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.movement-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movement-card:hover .movement-image img {
    transform: scale(1.05);
}

.movement-label {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-blue);
    color: var(--pure-white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.movement-content {
    padding: 20px;
}

.movement-content h3 {
    font-size: 1.3rem;
    color: var(--dark-blue);
    margin-bottom: 10px;
    font-weight: 600;
}

.movement-content p {
    color: var(--medium-gray);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.movement-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tag {
    background: var(--light-blue);
    color: var(--primary-blue);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid transparent;
    transition: var(--transition-fast);
}

.tag:hover {
    background: var(--primary-blue);
    color: var(--pure-white);
}

/* ===== CLUBS SECTION ===== */
.clubs-section {
    background: var(--pure-white);
}

.clubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.club-card {
    background: var(--pure-white);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.club-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-blue);
}

.club-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--light-blue), var(--accent-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.club-icon i {
    font-size: 2rem;
    color: var(--pure-white);
}

.club-info h3 {
    font-size: 1.2rem;
    color: var(--dark-blue);
    margin-bottom: 10px;
    font-weight: 600;
}

.club-info p {
    color: var(--medium-gray);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.club-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.club-btn {
    padding: 8px 16px;
    border-radius: var(--border-radius-md);
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 5px;
}

.club-btn.join {
    background: var(--accent-blue);
    color: var(--pure-white);
}

.club-btn.join:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
}

.club-btn.learn {
    background: transparent;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
}

.club-btn.learn:hover {
    background: var(--primary-blue);
    color: var(--pure-white);
    transform: translateY(-2px);
}

/* ===== BENEFITS SECTION ===== */
.benefits-section {
    background: var(--off-white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.benefit-card {
    background: var(--pure-white);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-blue);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--light-blue), var(--accent-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.benefit-icon i {
    font-size: 2rem;
    color: var(--pure-white);
}

.benefit-card h3 {
    font-size: 1.2rem;
    color: var(--dark-blue);
    margin-bottom: 15px;
    font-weight: 600;
}

.benefit-card p {
    color: var(--medium-gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 80px 4%;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--pure-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%231972D2" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cta-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 14px 28px;
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
    border: 2px solid transparent;
}

.cta-btn.primary {
    background: var(--accent-blue);
    color: var(--pure-white);
}

.cta-btn.primary:hover {
    background: var(--pure-white);
    color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cta-btn.secondary {
    background: transparent;
    color: var(--pure-white);
    border-color: var(--pure-white);
}

.cta-btn.secondary:hover {
    background: var(--pure-white);
    color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ===== LOADING STATES ===== */
.loading-sports,
.loading-movements,
.loading-clubs,
.no-data {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    color: var(--medium-gray);
}

.loading-sports i,
.loading-movements i,
.loading-clubs i {
    font-size: 3rem;
    color: var(--accent-blue);
    margin-bottom: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-sports p,
.loading-movements p,
.loading-clubs p {
    font-size: 1.1rem;
    margin-top: 10px;
}

.no-data i {
    font-size: 4rem;
    color: var(--light-gray);
    margin-bottom: 20px;
}

.no-data h3 {
    color: var(--dark-gray);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.no-data p {
    color: var(--medium-gray);
    max-width: 400px;
    margin: 0 auto;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .sports-grid,
    .movements-grid,
    .clubs-grid,
    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .section-container {
        padding: 60px 4%;
    }
}

/* Small Tablets */
@media (max-width: 768px) {
    .activities-hero {
        height: 50vh;
        min-height: 400px;
    }
    
    .hero-content h1 {
        font-size: 2.3rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .sports-grid,
    .movements-grid,
    .clubs-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .club-actions {
        flex-direction: column;
    }
    
    .club-btn {
        width: 100%;
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .section-container {
        padding: 50px 4%;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .activities-hero {
        height: 40vh;
        min-height: 350px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .sport-info,
    .movement-content,
    .club-info,
    .benefit-card {
        padding: 15px;
    }
    
    .cta-content h2 {
        font-size: 1.6rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .page-content {
        margin-top: 70px;
        min-height: calc(100vh - 350px);
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .activities-hero {
        height: 35vh;
        min-height: 300px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
    
    .sport-image,
    .movement-image {
        height: 150px;
    }
    
    .club-icon,
    .benefit-icon {
        width: 60px;
        height: 60px;
    }
    
    .club-icon i,
    .benefit-icon i {
        font-size: 1.5rem;
    }
    
    .section-container {
        padding: 40px 4%;
    }
}