/* ============================================ */
/* COMPONENT STYLES - components.css            */
/* Platform Administrasi Kelas Digital          */
/* ============================================ */

/* ─────────────────────────────────────────── */
/* 1. NAVIGATION BAR                           */
/* ─────────────────────────────────────────── */

.navbar {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
    padding: 0 1rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo {
    width: 2.5rem;
    height: 2.5rem;
    background-color: #f3e8ff;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-logo i {
    color: #7c3aed;
    font-size: 1.25rem;
}

.nav-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

.nav-subtitle {
    font-size: 0.75rem;
    color: #6b7280;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ─────────────────────────────────────────── */
/* 2. HERO SECTION                             */
/* ─────────────────────────────────────────── */

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-icon {
    width: 5rem;
    height: 5rem;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    backdrop-filter: blur(4px);
}
.hero-icon i {
    font-size: 2rem;
    color: white;
}

.hero-title {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.hero-note {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ─────────────────────────────────────────── */
/* 3. SECTION HEADER                           */
/* ─────────────────────────────────────────── */

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #4b5563;
}

/* ─────────────────────────────────────────── */
/* 4. FEATURES GRID & CARDS                    */
/* ─────────────────────────────────────────── */

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.feature-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.feature-icon i {
    font-size: 1.5rem;
}
.feature-icon.bg-blue { background-color: #dbeafe; color: #2563eb; }
.feature-icon.bg-green { background-color: #dcfce7; color: #16a34a; }
.feature-icon.bg-purple { background-color: #f3e8ff; color: #7c3aed; }
.feature-icon.bg-orange { background-color: #ffedd5; color: #ea580c; }

.feature-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.5;
}

/* ─────────────────────────────────────────── */
/* 5. STEPS GRID & CARDS                       */
/* ─────────────────────────────────────────── */

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.step-card {
    text-align: center;
    padding: 0 0.5rem;
}

.step-number {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.step-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.step-desc {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.5;
}

/* ─────────────────────────────────────────── */
/* 6. BENEFITS SECTION                         */
/* ─────────────────────────────────────────── */

.benefits-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
}

.benefits-list {
    list-style: none;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.benefit-item i {
    color: #16a34a;
    font-size: 1.25rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.benefit-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.benefit-desc {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.5;
}

/* Benefits Card (Info Box) */
.benefits-card {
    background: linear-gradient(135deg, #f5f3ff 0%, #eff6ff 100%);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.25rem;
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.info-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.info-icon i { font-size: 1rem; }
.info-icon.bg-purple { background-color: #f3e8ff; color: #7c3aed; }
.info-icon.bg-green { background-color: #dcfce7; color: #16a34a; }
.info-icon.bg-blue { background-color: #dbeafe; color: #2563eb; }
.info-icon.bg-orange { background-color: #ffedd5; color: #ea580c; }

.info-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.125rem;
    font-size: 0.875rem;
}

.info-desc {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.4;
}

/* ─────────────────────────────────────────── */
/* 7. FOOTER                                   */
/* ─────────────────────────────────────────── */

.footer {
    background-color: #1f2937;
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-logo {
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-logo i { color: white; font-size: 1.25rem; }

.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
}

.footer-subtitle {
    font-size: 0.875rem;
    color: #9ca3af;
}

.footer-desc {
    font-size: 0.875rem;
    color: #9ca3af;
    line-height: 1.5;
}

.footer-heading {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.footer-list {
    list-style: none;
}

.footer-link {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.875rem;
}
.footer-link:hover { color: white; }
.footer-link:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

.footer-contact {
    font-style: normal;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #9ca3af;
    font-size: 0.875rem;
}
.footer-contact-item i {
    width: 1rem;
    color: #9ca3af;
}
.footer-contact-item a {
    color: #9ca3af;
}
.footer-contact-item a:hover { color: white; }

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
}
.footer-bottom .mt-2 { margin-top: 0.5rem; }

/* ─────────────────────────────────────────── */
/* 8. RESPONSIVE BREAKPOINTS (Mobile-First)    */
/* ─────────────────────────────────────────── */

/* Tablet: 768px+ */
@media (min-width: 768px) {
    /* Hero */
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Steps Grid */
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Benefits Layout */
    .benefits-layout {
        grid-template-columns: 1fr;
    }
    
    /* Footer Grid */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Laptop: 1024px+ */
@media (min-width: 1024px) {
    /* Features Grid */
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Steps Grid */
    .steps-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Benefits Layout */
    .benefits-layout {
        grid-template-columns: 1.2fr 1fr;
        gap: 4rem;
    }
    
    /* Footer Grid */
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* Desktop: 1280px+ */
@media (min-width: 1280px) {
    .hero { padding: 5rem 0; }
    .section { padding: 6rem 0; }
}

/* ─────────────────────────────────────────── */
/* 9. TOUCH-FRIENDLY FOR MOBILE                */
/* ─────────────────────────────────────────── */

@media (max-width: 767px) {
    /* Ensure tap targets are at least 44px */
    .btn,
    a[href],
    button,
    input,
    select,
    textarea {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Increase font size for readability */
    .hero-title { font-size: 1.75rem; }
    .section-title { font-size: 1.5rem; }
    
    /* Adjust spacing for smaller screens */
    .feature-card,
    .benefits-card {
        padding: 1.25rem;
    }
}

/* ─────────────────────────────────────────── */
/* 10. PRINT STYLES (Optional)                 */
/* ─────────────────────────────────────────── */

@media print {
    .navbar,
    .hero-buttons,
    .btn {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }
    
    .hero {
        background: white !important;
        color: black !important;
        padding: 1rem 0;
    }
    
    .feature-card,
    .step-card,
    .benefits-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* ─────────────────────────────────────────── */
/* 11. 404 ERROR PAGE STYLES                   */
/* ─────────────────────────────────────────── */

.error-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
}

.error-content {
    text-align: center;
    max-width: 32rem;
    margin: 0 auto;
}

.error-icon {
    width: 6rem;
    height: 6rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}
.error-icon i {
    font-size: 3rem;
    color: white;
}

.error-code {
    font-size: clamp(4rem, 15vw, 8rem);
    font-weight: 900;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.error-desc {
    font-size: 1.125rem;
    color: #4b5563;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-causes {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.causes-list {
    list-style: none;
}

.causes-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: #4b5563;
}
.causes-list li:last-child {
    margin-bottom: 0;
}
.causes-list li i {
    color: #ef4444;
    font-size: 1rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.error-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-outline-dark {
    background-color: transparent;
    color: #1f2937;
    border: 2px solid #d1d5db;
}
.btn-outline-dark:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

.error-support {
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

/* Responsive for 404 Page */
@media (min-width: 768px) {
    .error-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .error-causes {
        padding: 2rem;
    }
}

@media (max-width: 767px) {
    .error-section {
        padding: 2rem 0;
    }
    
    .error-icon {
        width: 5rem;
        height: 5rem;
    }
    
    .error-icon i {
        font-size: 2.5rem;
    }
    
    .error-causes {
        padding: 1.25rem;
    }
    
    .causes-list li {
        font-size: 0.8125rem;
    }
}
