/* ============================================================
   SUPERV PRINCIPAL ASSISTANT - RESPONSIVE STYLES
   ============================================================ */

/* ============================================================
   EXTRA LARGE DEVICES (1200px and up)
   ============================================================ */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* ============================================================
   LARGE DEVICES (992px - 1199px)
   ============================================================ */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .features-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   MEDIUM DEVICES (768px - 991px)
   ============================================================ */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    .hero {
        flex-direction: column;
        text-align: center;
    }
    .hero h1 {
        font-size: 2.25rem;
    }
    .hero .hero-text {
        max-width: 100%;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .features-grid-3 {
        grid-template-columns: 1fr 1fr;
    }
    .pricing-grid-3 {
        grid-template-columns: 1fr 1fr;
    }
    .steps-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .form-row-3 {
        grid-template-columns: 1fr 1fr;
    }
    .form-row-4 {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================================
   SMALL DEVICES (576px - 767px)
   ============================================================ */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 16px;
    }
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    .hero {
        padding: 100px 0 60px;
    }
    .hero h1 {
        font-size: 1.75rem;
    }
    .hero p {
        font-size: 0.9375rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    .hero-stats {
        flex-direction: column;
        gap: 12px;
    }
    .features-grid-3 {
        grid-template-columns: 1fr;
    }
    .pricing-grid-3 {
        grid-template-columns: 1fr;
    }
    .steps-grid-4 {
        grid-template-columns: 1fr;
    }
    .footer-grid-4 {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        background: var(--bg-white);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        border-bottom: 1px solid var(--border-color);
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links li {
        padding: 8px 0;
    }
    .mobile-menu-btn {
        display: block !important;
    }
    .form-row-3 {
        grid-template-columns: 1fr;
    }
    .form-row-4 {
        grid-template-columns: 1fr;
    }
    .table-wrapper {
        overflow-x: auto;
    }
    .table {
        font-size: 0.8125rem;
    }
    .table th,
    .table td {
        padding: 6px 8px;
        min-width: 80px;
    }
    .admin-stats {
        grid-template-columns: 1fr 1fr;
    }
    .modal-content {
        margin: 10px;
        padding: 16px;
    }
}

/* ============================================================
   EXTRA SMALL DEVICES (up to 575px)
   ============================================================ */
@media (max-width: 575px) {
    .container {
        padding: 0 12px;
    }
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    .hero h1 {
        font-size: 1.5rem;
    }
    .hero .btn {
        font-size: 0.875rem;
        padding: 10px 20px;
    }
    .hero-stats .stat {
        padding: 8px 0;
    }
    .admin-stats {
        grid-template-columns: 1fr;
    }
    .admin-topbar {
        flex-direction: column;
        align-items: stretch;
    }
    .admin-topbar .actions {
        flex-direction: column;
    }
    .admin-topbar .actions .btn {
        width: 100%;
        justify-content: center;
    }
    .card-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .btn {
        font-size: 0.8125rem;
        padding: 8px 16px;
    }
    .btn-sm {
        font-size: 0.6875rem;
        padding: 4px 10px;
    }
    .badge {
        font-size: 0.625rem;
        padding: 1px 8px;
    }
    .modal-content {
        margin: 5px;
        padding: 12px;
    }
    .modal-content .modal-header h3 {
        font-size: 1rem;
    }
    .stats-mini {
        font-size: 0.75rem;
        gap: 10px;
    }
    .pricing-card {
        padding: 20px;
    }
    .pricing-card .price {
        font-size: 1.75rem;
    }
    .feature-card {
        padding: 16px;
    }
}

/* ============================================================
   TOUCH DEVICES (hover effects disable)
   ============================================================ */
@media (hover: none) {
    .btn:hover,
    .card:hover,
    .feature-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    .btn-primary:hover {
        box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25) !important;
    }
}

/* ============================================================
   LANDSCAPE MODE (Phones)
   ============================================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 40px;
        min-height: auto;
    }
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .hero-image .mockup {
        max-width: 100%;
    }
    .admin-sidebar {
        padding: 12px 0;
    }
    .admin-sidebar .user-info {
        padding: 8px 16px;
    }
    .admin-sidebar .nav li a {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

/* ============================================================
   DARK MODE SUPPORT (Optional - Prepared)
   ============================================================ */
@media (prefers-color-scheme: dark) {
    /* These will be activated when dark mode is implemented */
    /* .dark-mode styles will go here */
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================
   PRINT (Landscape)
   ============================================================ */
@media print and (orientation: landscape) {
    .no-print {
        display: none !important;
    }
    .card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}