/* ===== PRESTASI SEKOLAH PAGE ===== */

:root {
    --primary-color: #0f172a;
    --primary-light: #1e293b;
    --secondary-color: #3b82f6;
    --secondary-dark: #1e40af;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    
    --text-dark: #0f172a;
    --text-medium: #334155;
    --text-light: #78909c;
    --text-lighter: #b0bec5;
    
    --bg-light: #f8fafc;
    --bg-lighter: #f1f5f9;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --border-light: #cbd5e1;
    
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 10px 28px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 20px 40px rgba(15, 23, 42, 0.15);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.prestasi-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================== HEADER SECTION ===================== */
.prestasi-header {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #3b82f6 100%);
    color: var(--bg-white);
    padding: 100px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.prestasi-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.prestasi-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(25px);
    }
}

.prestasi-header .prestasi-container {
    position: relative;
    z-index: 1;
}

.prestasi-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.prestasi-title i {
    font-size: 52px;
    animation: bounce 2.5s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

.prestasi-subtitle {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* ===== FILTER SECTION ===== */
.prestasi-filter-section {
    padding: 40px 20px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 80px;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.filter-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}


.filter-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.filter-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    background-color: var(--bg-white);
    color: var(--text-medium);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    background-color: rgba(59, 130, 246, 0.02);
    transform: translateY(-1px);
}

.filter-btn.active {
    background-color: var(--secondary-color);
    color: var(--bg-white);
    border-color: var(--secondary-color);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.filter-btn i {
    font-size: 16px;
}

/* ===== CONTENT SECTION ===== */
.prestasi-content {
    margin-bottom: 60px;
}

.prestasi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

/* ===== PRESTASI CARD ===== */
.prestasi-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    height: 100%;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.prestasi-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    border-color: var(--secondary-color);
}

/* ===== IMAGE WRAPPER ===== */
.prestasi-image-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    flex-shrink: 0;
}

.prestasi-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    filter: brightness(1);
}

.prestasi-card:hover .prestasi-image {
    transform: scale(1.08);
    filter: brightness(1.05);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
    color: var(--secondary-color);
    font-size: 60px;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(59, 130, 246, 0.4) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(2px);
}

.prestasi-card:hover .image-overlay {
    opacity: 1;
}

.image-overlay-icon {
    font-size: 40px;
    color: white;
    opacity: 0;
    transform: scale(0.8);
    transition: var(--transition);
}

.prestasi-card:hover .image-overlay-icon {
    opacity: 1;
    transform: scale(1);
}

/* ===== BADGE ===== */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.badge-akademik {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.badge-non-akademik {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.badge-olahraga {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.badge-seni {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.3);
}

/* ===== CARD CONTENT ===== */
.card-content {
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-badge-wrapper {
    margin-bottom: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-description {
    font-size: 13px;
    color: var(--text-medium);
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 12px;
    color: var(--text-light);
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-item i {
    color: var(--secondary-color);
    font-size: 12px;
}

.meta-divider {
    color: var(--border-color);
}

.card-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: var(--bg-white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    transition: var(--transition-fast);
    border: none;
    cursor: pointer;
    margin-top: auto;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.card-action-btn:hover {
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.card-action-btn:active {
    transform: translateX(1px);
}

.card-action-btn i {
    font-size: 10px;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background-color: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.empty-icon {
    font-size: 80px;
    color: var(--border-color);
    margin-bottom: 20px;
    opacity: 0.6;
}

.empty-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.empty-text {
    color: var(--text-light);
    font-size: 15px;
    max-width: 400px;
    margin: 0 auto;
}

/* ===== STATS SECTION ===== */
.prestasi-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

.stat-card {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-lighter) 100%);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    flex-shrink: 0;
}

.stat-icon.akademik {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.stat-icon.non-akademik {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.stat-icon.olahraga {
    background: linear-gradient(135deg, #10b981, #059669);
}

.stat-icon.total {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
    margin-top: 4px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .prestasi-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }

    .prestasi-title {
        font-size: 40px;
    }

    .filter-btn {
        padding: 10px 18px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .prestasi-container {
        padding: 0 16px;
    }

    .prestasi-header {
        padding: 60px 16px 50px;
    }

    .prestasi-title {
        font-size: 32px;
        gap: 12px;
    }

    .prestasi-title i {
        font-size: 36px;
    }

    .prestasi-subtitle {
        font-size: 15px;
    }

    .filter-wrapper {
        padding: 24px 16px;
    }

    .filter-title {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .filter-buttons {
        gap: 10px;
    }

    .filter-btn {
        padding: 9px 14px;
        font-size: 12px;
    }

    .prestasi-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 16px;
    }

    .prestasi-image-wrapper {
        height: 180px;
    }

    .card-content {
        padding: 16px 14px;
    }

    .card-title {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .card-description {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .card-action-btn {
        padding: 8px 14px;
        font-size: 11px;
    }

    .prestasi-stats {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 16px;
    }

    .stat-card {
        padding: 16px;
        gap: 12px;
    }

    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .stat-number {
        font-size: 22px;
    }

    .stat-label {
        font-size: 12px;
    }
}

@media (max-width: 640px) {
    .prestasi-header {
        padding: 50px 16px 40px;
        margin-top: -20px;
    }

    .prestasi-title {
        font-size: 26px;
        gap: 10px;
    }

    .prestasi-title i {
        font-size: 30px;
    }

    .prestasi-subtitle {
        font-size: 14px;
    }

    .prestasi-filter-section {
        margin-top: -40px;
        margin-bottom: 30px;
    }

    .filter-wrapper {
        padding: 20px 12px;
        margin-left: 0;
        margin-right: 0;
        width: auto;
    }

    .filter-title {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .filter-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .filter-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 12px;
        font-size: 12px;
    }

    .prestasi-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .prestasi-image-wrapper {
        height: 220px;
    }

    .card-content {
        padding: 14px 12px;
    }

    .card-title {
        font-size: 14px;
        -webkit-line-clamp: 1;
    }

    .card-description {
        font-size: 11px;
        -webkit-line-clamp: 1;
    }

    .card-meta-info {
        font-size: 11px;
        gap: 6px;
    }

    .card-action-btn {
        width: 100%;
        justify-content: center;
        padding: 9px 12px;
    }

    .empty-state {
        padding: 60px 16px;
    }

    .empty-icon {
        font-size: 64px;
    }

    .empty-title {
        font-size: 18px;
    }

    .empty-text {
        font-size: 13px;
    }

    .prestasi-stats {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 40px;
        padding-top: 30px;
    }

    .stat-card {
        padding: 14px;
    }

    .stat-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }

    .stat-number {
        font-size: 20px;
    }

    .stat-label {
        font-size: 11px;
    }
}

@media (max-width: 380px) {
    .prestasi-title {
        font-size: 22px;
        gap: 8px;
    }

    .prestasi-title i {
        font-size: 26px;
    }

    .prestasi-subtitle {
        font-size: 13px;
    }

    .filter-btn {
        padding: 8px 10px;
        font-size: 11px;
    }

    .card-title {
        font-size: 13px;
    }

    .card-description {
        font-size: 10px;
    }

    .badge {
        padding: 4px 8px;
        font-size: 8px;
    }
}