/* ============================================
   RESPONSIVE STYLES - SMK CIJANGKAR
   Mobile & Tablet Adjustments
   ============================================ */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    :root {
        --header-height: 60px;
    }

    .navbar-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .navbar-menu {
        gap: 1rem;
    }

    .navbar-nav {
        gap: 0.25rem;
    }

    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .navbar-actions .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

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

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --header-height: 56px;
    }

    .container,
    .navbar-container {
        padding: 0 1rem;
    }

    /* Mobile Navbar */
    .navbar-toggle {
        display: flex;
    }

    .navbar-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--primary);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 1.5rem;
        gap: 1.5rem;
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }

    .navbar-menu.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        padding: 0.75rem 1rem;
        justify-content: space-between;
        font-size: 1rem;
    }

    .nav-link .dropdown-icon {
        transition: transform 0.3s ease;
    }

    .nav-item.has-dropdown.active .dropdown-icon {
        transform: rotate(180deg);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        width: 100%;
        margin-top: 0.5rem;
        background: rgba(255, 255, 255, 0.1);
        box-shadow: none;
        border: none;
        border-radius: var(--radius-sm);
    }

    .dropdown-menu-right {
        right: auto;
        left: 0;
    }

    .user-link {
        justify-content: space-between;
        width: 100%;
    }

    .flash-message {
        right: 1rem;
        left: 1rem;
        max-width: none;
    }

    .dropdown-menu a {
        color: rgba(255, 255, 255, 0.9);
        padding: 0.75rem 1.25rem;
    }

    .dropdown-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--white);
        padding-left: 1.5rem;
    }

    .nav-item.has-dropdown.active .dropdown-menu {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    .navbar-actions {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
    }

    .navbar-actions .btn {
        width: 100%;
        padding: 0.75rem;
    }

    /* Page Header */
    .page-header {
        padding: 90px 0 40px;
    }

    /* Footer */
    .footer {
        padding-top: 40px;
    }

    .footer-wave {
        height: 40px;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Theme Toggle & Back to Top */
    .theme-toggle,
    .back-to-top {
        width: 42px;
        height: 42px;
        right: 16px;
    }

    .theme-toggle {
        bottom: 80px;
    }

    .theme-toggle svg,
    .back-to-top svg {
        width: 18px;
        height: 18px;
    }

    /* Section Title */
    .section-title {
        margin-bottom: 2rem;
    }

    .section-title h2::after {
        width: 50px;
        height: 3px;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .navbar-logo .logo-text strong {
        font-size: 1rem;
    }

    .navbar-logo .logo-text small {
        font-size: 0.6rem;
    }

    .logo-icon {
        width: 38px;
        height: 38px;
        font-size: 0.65rem;
    }

    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .breadcrumb-list {
        font-size: 0.85rem;
    }

    .footer-social a {
        width: 36px;
        height: 36px;
    }
}

/* Large Desktop (min-width: 1400px) */
@media (min-width: 1400px) {
    :root {
        --container-width: 1140px;
    }
}
