/* ============================================================
 * EKSTRAKURIKULER — FRONTEND (list + detail)
 * Path: public/assets/css/ekstrakurikuler.css
 * ============================================================ */

/* ----------------------------------------
 * HERO
 * ---------------------------------------- */
.extra-hero {
    position: relative;
    padding: 130px 20px 60px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    overflow: hidden;
}

.extra-hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.25;
    pointer-events: none;
}

.extra-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.extra-hero-orb-1 {
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: #2563eb;
}

.extra-hero-orb-2 {
    bottom: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: #dc2626;
}

.extra-hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
}

.extra-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.extra-breadcrumb a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.extra-breadcrumb a:hover {
    color: #f59e0b;
}

.extra-breadcrumb i {
    font-size: 10px;
}

.extra-breadcrumb span {
    color: #f59e0b;
    font-weight: 600;
}

.extra-hero-title {
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin-bottom: 12px;
}

.extra-hero-accent {
    color: #f59e0b;
}

.extra-hero-subtitle {
    font-size: 16px;
    color: #cbd5e1;
    max-width: 640px;
    line-height: 1.6;
}

/* ----------------------------------------
 * MAIN
 * ---------------------------------------- */
.extra-main {
    flex: 1;
    background: #f8fafc;
    padding: 60px 20px;
}

.extra-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ----------------------------------------
 * FILTER
 * ---------------------------------------- */
.extra-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
    justify-content: center;
}

.extra-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #ffffff;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    border-radius: 100px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.2s;
}

.extra-filter-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.extra-filter-btn.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ----------------------------------------
 * GRID
 * ---------------------------------------- */
.extra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* ----------------------------------------
 * CARD
 * ---------------------------------------- */
.extra-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.extra-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
    border-color: rgba(37, 99, 235, 0.3);
}

.extra-card-image {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #f1f5f9;
    overflow: hidden;
}

.extra-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.extra-card:hover .extra-card-image img {
    transform: scale(1.08);
}

.extra-card-image-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #2563eb;
    font-size: 72px;
}

.extra-card-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    color: #2563eb;
    font-size: 11px;
    font-weight: 700;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.extra-card-featured {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: #f59e0b;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.5);
    font-size: 14px;
}

.extra-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.extra-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.extra-card-icon {
    width: 40px;
    height: 40px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: all 0.3s;
}

.extra-card:hover .extra-card-icon {
    background: #dbeafe;
    transform: rotate(-5deg) scale(1.05);
}

.extra-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin: 0;
    transition: color 0.2s;
}

.extra-card:hover .extra-card-title {
    color: #2563eb;
}

.extra-card-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.extra-card-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px dashed #e2e8f0;
    margin-bottom: 12px;
    font-size: 12px;
    color: #64748b;
}

.extra-card-info span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.extra-card-info i {
    color: #2563eb;
}

.extra-card-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2563eb;
    font-size: 14px;
    font-weight: 600;
    transition: gap 0.2s;
}

.extra-card:hover .extra-card-more {
    gap: 12px;
}

.extra-card-more i {
    font-size: 12px;
}

/* ----------------------------------------
 * EMPTY STATE
 * ---------------------------------------- */
.extra-empty {
    text-align: center;
    padding: 80px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.extra-empty i {
    font-size: 72px;
    color: #cbd5e1;
    margin-bottom: 20px;
    display: block;
}

.extra-empty h3 {
    font-size: 22px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 10px;
}

.extra-empty p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 24px;
}

.extra-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #2563eb;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.extra-btn-back:hover {
    background: #1d4ed8;
    color: #ffffff;
}

/* ----------------------------------------
 * RESPONSIVE
 * ---------------------------------------- */
@media (max-width: 767.98px) {
    .extra-hero {
        padding: 110px 16px 40px;
    }

    .extra-hero-title {
        font-size: 28px;
    }

    .extra-hero-subtitle {
        font-size: 14px;
    }

    .extra-main {
        padding: 40px 16px;
    }

    .extra-filter {
        margin-bottom: 24px;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .extra-filter::-webkit-scrollbar {
        display: none;
    }

    .extra-filter-btn {
        padding: 8px 16px;
        font-size: 13px;
        flex-shrink: 0;
    }

    .extra-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .extra-card-body {
        padding: 18px;
    }

    .extra-card-title {
        font-size: 16px;
    }
}