/**
 * PSKOV State University - Responsive Styles
 * Mobile-first responsive design
 */

/* ========================================
   MOBILE FIRST (Default: 320px+)
   ======================================== */

/* Already defined in main.css */

/* ========================================
   SMALL TABLETS (576px+)
   ======================================== */
@media (max-width: 576px) {
    :root {
        --text-5xl: 2.5rem;
        --text-6xl: 3rem;
        --text-7xl: 3.5rem;
    }

    .container {
        padding: 0 var(--space-4);
    }

    .hero-title {
        font-size: var(--text-4xl);
    }

    .hero-subtitle {
        font-size: var(--text-lg);
    }

    .section {
        padding: var(--space-12) 0;
    }

    .section-title {
        font-size: var(--text-3xl);
    }

    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }

    .navbar-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: var(--space-6);
        box-shadow: var(--shadow-xl);
        transform: translateX(-100%);
        transition: transform var(--transition-base);
        gap: var(--space-4);
    }

    .navbar-menu.active {
        transform: translateX(0);
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .navbar-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .card-img {
        height: 200px;
    }

    .stat-number {
        font-size: var(--text-4xl);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
}

/* ========================================
   TABLETS (768px+)
   ======================================== */
@media (min-width: 768px) {
    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: var(--text-5xl);
    }

    .section-title {
        font-size: var(--text-4xl);
    }
}

/* ========================================
   MEDIUM DEVICES (992px+)
   ======================================== */
@media (min-width: 992px) {
    .grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero-title {
        font-size: var(--text-6xl);
    }
}

/* ========================================
   LARGE DESKTOPS (1200px+)
   ======================================== */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }

    .hero-title {
        font-size: var(--text-7xl);
    }
}

/* ========================================
   EXTRA LARGE DESKTOPS (1400px+)
   ======================================== */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* ========================================
   LANDSCAPE ORIENTATION
   ======================================== */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: var(--space-16) 0;
    }

    .hero-title {
        font-size: var(--text-4xl);
    }

    .hero-subtitle {
        font-size: var(--text-lg);
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {

    .navbar,
    .footer,
    .btn,
    .navbar-toggle {
        display: none;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    a {
        text-decoration: underline;
    }

    .container {
        max-width: 100%;
    }
}

/* ========================================
   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;
    }
}

/* ========================================
   HIGH CONTRAST MODE
   ======================================== */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #B00000;
        --color-gray-600: #333;
    }

    .btn {
        border-width: 3px;
    }
}

/* ========================================
   DARK MODE SUPPORT
   ======================================== */
@media (prefers-color-scheme: dark) {
    :root {
        --color-white: #0A0A0A;
        --color-black: #FFFFFF;
        --color-gray-50: #1F2937;
        --color-gray-100: #374151;
        --color-gray-800: #F3F4F6;
        --color-gray-900: #FFFFFF;
    }

    body {
        background-color: #0A0A0A;
        color: #F3F4F6;
    }

    .navbar {
        background: rgba(10, 10, 10, 0.95);
    }

    .card {
        background: #1F2937;
    }
}