/* =========================================================
   SecureSite – Responsive styles only (responsive.css)
   Media queries and layout adjustments for smaller screens.
   Do not duplicate base design rules here.
   ========================================================= */

/* ---------- Tablet (≤ 992px) ---------- */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    /* Admin sidebar collapses */
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.is-open {
        transform: translateX(0);
    }
    .admin-main {
        margin-left: 0;
    }
    .admin-menu-toggle {
        display: block;
    }
}

/* ---------- Mobile / small tablet (≤ 768px) ---------- */
@media (max-width: 768px) {
    /* Navbar: hide desktop nav, show hamburger */
    .main-nav {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .user-greeting {
        display: none;
    }
    .header-actions .btn-sm {
        display: none;
    }

    .hero {
        padding: 40px 16px 32px;
    }
    .hero h1 {
        font-size: 1.65rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 28px 20px;
        margin: 0 4px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .stat-card {
        padding: 14px;
        gap: 10px;
    }
    .stat-value {
        font-size: 1.25rem;
    }

    .admin-content {
        padding: 16px;
    }

    .filters-row {
        flex-direction: column;
        align-items: stretch;
    }
    .filters-row .form-group {
        min-width: 0;
    }

    .detail-list {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .detail-list dt {
        margin-top: 8px;
    }
    .detail-list dt:first-child {
        margin-top: 0;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-header h1 {
        font-size: 1.35rem;
    }

    .data-table th,
    .data-table td {
        padding: 10px 10px;
        font-size: 0.8125rem;
    }
}

/* ---------- Small mobile (≤ 480px) ---------- */
@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .hero h1 {
        font-size: 1.4rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 16px;
    }

    .btn-lg {
        padding: 12px 20px;
        font-size: 0.925rem;
    }

    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
    }

    .admin-topbar {
        padding: 0 14px;
    }

    .admin-content {
        padding: 12px;
    }
}

/* Profile & navbar extras */
@media (max-width: 768px) {
    .header-container {
        padding: 0 14px;
    }
    .nav-profile-text {
        display: none;
    }
    .header-admin-btn {
        display: none;
    }
    .profile-hero {
        flex-direction: column;
        text-align: center;
        padding: 24px 16px;
    }
    .profile-hero-info {
        width: 100%;
    }
    .profile-meta {
        justify-content: center;
    }
    .profile-hero-actions {
        justify-content: center;
        width: 100%;
    }
    .profile-avatar-lg {
        width: 72px;
        height: 72px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .profile-hero-actions .btn {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .type-grid {
        grid-template-columns: 1fr;
    }
    .form-card {
        max-width: 100%;
    }
    .page-header-row {
        flex-direction: column;
    }
    .page-header-row .btn {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .type-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .type-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .listing-card {
        flex: 0 0 calc(33.333% - 11px);
    }
}
@media (max-width: 768px) {
    .hero-modern {
        padding: 36px 16px 32px;
        margin-top: -24px;
    }
    .hero-modern h1 {
        font-size: 1.45rem;
    }
    .hero-filter-row {
        flex-direction: column;
    }
    .hero-filter-btn {
        width: 100%;
    }
    .listing-card {
        flex: 0 0 calc(50% - 8px);
        min-width: 180px;
    }
    .home-section-title {
        font-size: 1.15rem;
    }
}
@media (max-width: 480px) {
    .listing-card {
        flex: 0 0 calc(85% - 4px);
        min-width: 200px;
    }
    .hero-cats {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-cat {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-pro {
        padding: 32px 16px 28px;
        border-radius: 14px;
        margin-bottom: 32px;
    }
    .hero-search-inner {
        flex-direction: column;
    }
    .hero-search-divider {
        width: auto;
        height: 1px;
        margin: 0 16px;
    }
    .hero-search-submit {
        margin: 0 12px 12px;
        height: 44px;
        justify-content: center;
    }
    .hero-quick {
        gap: 8px;
    }
    .hero-quick-item {
        flex: 1 1 calc(50% - 8px);
        justify-content: flex-start;
    }
}
@media (max-width: 480px) {
    .hero-quick-item {
        flex: 1 1 100%;
    }
}
@media (max-width: 1100px) {
    .category-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .category-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .category-grid { grid-template-columns: 1fr; }
}
