﻿/* =====================================================
    AKREDITASI - Style halaman
    SMK TI Bali Global Badung
    ===================================================== */

/* Komitmen box (menggantikan inline style di HTML) */
.accreditation-commitment {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(5, 150, 105, 0.12));
    border-radius: 16px;
    border-left: 4px solid #10b981;
}

.accreditation-commitment h4 {
    margin-bottom: 15px;
}

.accreditation-commitment h4 i {
    margin-right: 10px;
    color: #10b981;
}

/* Tampilan sertifikat */
.certificate-showcase {
    text-align: center;
    margin-bottom: 40px;
}

.certificate-frame {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #ffb347);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.2);
}

.certificate-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.4s ease;
    cursor: zoom-in;
}

.certificate-frame:hover .certificate-image {
    transform: scale(1.02);
}

/* Badge nilai/grade */
.grade-badge {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.grade-badge .grade-letter {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.grade-badge .grade-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
}

/* Tampilan skor */
.score-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin: 40px 0;
}

.score-circle {
    position: relative;
    width: 150px;
    height: 150px;
}

.score-circle svg {
    transform: rotate(-90deg);
    width: 150px;
    height: 150px;
}

.score-circle .bg {
    fill: none;
    stroke: rgba(59, 130, 246, 0.1);
    stroke-width: 12;
}

.score-circle .progress {
    fill: none;
    stroke: url(#scoreGradient);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 408;
    stroke-dashoffset: 408;
    transition: stroke-dashoffset 2s ease-out;
}

.score-circle.animated .progress {
    stroke-dashoffset: 24.48; /* 408 - (94/100 * 408) */
}

.score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #3b82f6;
    line-height: 1;
}

.score-max {
    font-size: 0.9rem;
    color: #94a3b8;
}

.score-info {
    text-align: left;
}

.score-info h3 {
    font-size: 1.5rem;
    color: #f1f5f9;
    margin-bottom: 10px;
}

.score-info p {
    color: var(--text-secondary, #94a3b8);
    line-height: 1.6;
}

.score-info .category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 30px;
    color: #10b981;
    font-weight: 600;
    margin-top: 15px;
}

/* Info akreditasi */
.accreditation-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.info-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-5px);
}

.info-card .card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 15px;
}

.info-card h4 {
    font-size: 1.1rem;
    color: #f1f5f9;
    margin-bottom: 10px;
}

.info-card p {
    color: var(--text-secondary, #94a3b8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Timeline (urutan waktu) */
.visitasi-timeline {
    position: relative;
    margin: 40px 0;
    padding-left: 30px;
}

.visitasi-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #3b82f6, #8b5cf6);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 5px;
    width: 14px;
    height: 14px;
    background: #3b82f6;
    border-radius: 50%;
    border: 3px solid rgba(30, 41, 59, 1);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-date {
    font-size: 0.85rem;
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: #f1f5f9;
    margin-bottom: 8px;
}

.timeline-content p {
    color: var(--text-secondary, #94a3b8);
    margin: 0;
    line-height: 1.6;
}

/* Bagian asesor */
.asesor-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.asesor-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(30, 41, 59, 0.6);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.asesor-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    flex-shrink: 0;
}

.asesor-info h5 {
    font-size: 1rem;
    color: #f1f5f9;
    margin-bottom: 3px;
}

.asesor-info p {
    font-size: 0.85rem;
    color: var(--text-secondary, #94a3b8);
    margin: 0;
}

/* Lightbox (popup gambar) */
.certificate-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.certificate-lightbox.active {
    display: flex;
}

.certificate-lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Responsif (biar tampilan aman di HP) */
@media (max-width: 768px) {
    .score-section {
        flex-direction: column;
        text-align: center;
    }
    
    .score-info {
        text-align: center;
    }
    
    .grade-badge {
        top: -10px;
        right: -10px;
        width: 60px;
        height: 60px;
    }
    
    .grade-badge .grade-letter {
        font-size: 1.5rem;
    }
    
    .certificate-frame {
        padding: 10px;
    }
}

/* Mode terang (light mode) */
[data-theme="light"] .info-card {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .info-card h4,
[data-theme="light"] .timeline-content h4,
[data-theme="light"] .asesor-info h5 {
    color: #1e293b;
}

[data-theme="light"] .score-info h3 {
    color: #1e293b;
}

[data-theme="light"] .asesor-card {
    background: rgba(248, 250, 252, 0.9);
}

[data-theme="light"] .score-info p,
[data-theme="light"] .info-card p,
[data-theme="light"] .timeline-content p,
[data-theme="light"] .asesor-info p {
    color: #475569;
}
