/* ============================================================
 * PRESTASI SISWA — FRONTEND
 * Path: public/assets/css/prestasi.css
 * ============================================================ */

/* ----------------------------------------
 * HERO
 * ---------------------------------------- */
.prestasi-hero {
    position: relative;
    padding: 130px 20px 60px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    overflow: hidden;
}

.prestasi-hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.25;
    pointer-events: none;
}

.prestasi-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.prestasi-hero-orb-1 {
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: #f59e0b;
}

.prestasi-hero-orb-2 {
    bottom: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: #dc2626;
}

.prestasi-hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
}

.prestasi-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.prestasi-breadcrumb a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.prestasi-breadcrumb a:hover {
    color: #f59e0b;
}

.prestasi-breadcrumb i {
    font-size: 10px;
}

.prestasi-breadcrumb span {
    color: #f59e0b;
    font-weight: 600;
}

.prestasi-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #f59e0b;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.prestasi-hero-title {
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin-bottom: 12px;
}

.prestasi-hero-accent {
    color: #f59e0b;
}

.prestasi-hero-subtitle {
    font-size: 16px;
    color: #cbd5e1;
    max-width: 640px;
    line-height: 1.6;
}

/* ----------------------------------------
 * MAIN
 * ---------------------------------------- */
.prestasi-main {
    flex: 1;
    background: #f8fafc;
    padding: 60px 20px;
}

.prestasi-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ----------------------------------------
 * FILTER
 * ---------------------------------------- */
.prestasi-filter-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.prestasi-filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prestasi-filter-label {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.prestasi-filter-label i {
    color: #f59e0b;
}

.prestasi-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.prestasi-filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #ffffff;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    border-radius: 100px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.2s;
}

.prestasi-filter-btn:hover {
    border-color: #f59e0b;
    color: #f59e0b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.1);
}

.prestasi-filter-btn.active {
    background: #f59e0b;
    color: #ffffff;
    border-color: #f59e0b;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* ----------------------------------------
 * GRID
 * ---------------------------------------- */
.prestasi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* ----------------------------------------
 * CARD
 * ---------------------------------------- */
.prestasi-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.prestasi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

.prestasi-card-image {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #f1f5f9;
    overflow: hidden;
}

.prestasi-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.prestasi-card:hover .prestasi-card-image img {
    transform: scale(1.08);
}

.prestasi-card-image-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #f59e0b;
    font-size: 72px;
}

.prestasi-card-level {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    background: rgba(37, 99, 235, 0.95);
    backdrop-filter: blur(8px);
    color: #fff;
    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.15);
}

.prestasi-card-year {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 100px;
}

.prestasi-card-rank {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: rgba(245, 158, 11, 0.95);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 100px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.prestasi-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.prestasi-card-cat {
    font-size: 11px;
    font-weight: 700;
    color: #f59e0b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.prestasi-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin: 0 0 10px;
    transition: color 0.2s;
}

.prestasi-card:hover .prestasi-card-title {
    color: #f59e0b;
}

.prestasi-card-student {
    font-size: 13px;
    color: #2563eb;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
}

.prestasi-card-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 12px;
    flex: 1;
}

.prestasi-card-organizer {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
}

/* ----------------------------------------
 * EMPTY STATE
 * ---------------------------------------- */
.prestasi-empty {
    text-align: center;
    padding: 80px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.prestasi-empty i {
    font-size: 72px;
    color: #cbd5e1;
    margin-bottom: 20px;
    display: block;
}

.prestasi-empty h3 {
    font-size: 22px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 10px;
}

.prestasi-empty p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 24px;
}

.prestasi-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #f59e0b;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.prestasi-btn-back:hover {
    background: #d97706;
    color: #ffffff;
}

/* ----------------------------------------
 * RESPONSIVE
 * ---------------------------------------- */
@media (max-width: 767.98px) {
    .prestasi-hero {
        padding: 110px 16px 40px;
    }

    .prestasi-hero-title {
        font-size: 28px;
    }

    .prestasi-hero-subtitle {
        font-size: 14px;
    }

    .prestasi-main {
        padding: 40px 16px;
    }

    .prestasi-filter {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .prestasi-filter::-webkit-scrollbar {
        display: none;
    }

    .prestasi-filter-btn {
        flex-shrink: 0;
        padding: 7px 14px;
        font-size: 12px;
    }

    .prestasi-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .prestasi-card-body {
        padding: 16px;
    }

    .prestasi-card-title {
        font-size: 15px;
    }
}