/* ==========================================================================
   VTR Website - Responsive CSS
   Mobile and Tablet Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Large Desktop (1400px+)
   -------------------------------------------------------------------------- */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* --------------------------------------------------------------------------
   Desktop (1200px - 1399px)
   -------------------------------------------------------------------------- */
@media (max-width: 1399px) {
    :root {
        --sidebar-width: 260px;
    }
}

/* --------------------------------------------------------------------------
   Small Desktop / Large Tablet (992px - 1199px)
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
    :root {
        --sidebar-width: 240px;
    }

    .cards-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-lg);
    }
}

/* --------------------------------------------------------------------------
   Tablet (768px - 991px)
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    /* Sidebar becomes overlay */
    .sidebar {
        transform: translateX(-100%);
        box-shadow: var(--shadow-xl);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Content takes full width */
    .site-content {
        margin-left: 0;
        max-width: 100%;
    }

    .site-footer {
        margin-left: 0;
    }

    /* Show mobile menu toggle */
    .menu-toggle {
        display: flex;
    }

    .sidebar-toggle {
        display: flex;
    }

    /* Hide desktop nav */
    .header-nav {
        display: none;
    }

    /* Cards grid */
    .cards-grid-4,
    .cards-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Hero adjustments */
    .hero {
        padding: var(--spacing-2xl) var(--spacing-lg);
    }

    .hero-title {
        font-size: var(--font-size-2xl);
    }

    /* Product hero */
    .product-hero {
        flex-direction: column;
        text-align: center;
    }

    .product-hero-image {
        margin-bottom: var(--spacing-lg);
    }

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --------------------------------------------------------------------------
   Large Mobile (576px - 767px)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    :root {
        --header-height: 56px;
        --spacing-xl: 1.5rem;
        --spacing-2xl: 2rem;
    }

    /* Header */
    .site-header {
        padding: 0 var(--spacing-md);
    }

    .logo img {
        height: 32px;
    }

    .logo-text {
        font-size: var(--font-size-base);
    }

    /* Content */
    .site-content {
        padding: var(--spacing-lg);
    }

    .content-section {
        padding: var(--spacing-lg);
    }

    /* Cards */
    .cards-grid,
    .cards-grid-3,
    .cards-grid-4 {
        grid-template-columns: 1fr;
    }

    .brand-card {
        padding: var(--spacing-lg);
    }

    /* Hero */
    .hero {
        padding: var(--spacing-xl) var(--spacing-md);
        border-radius: var(--border-radius-md);
    }

    .hero-title {
        font-size: var(--font-size-xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-base);
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

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

    /* Feature list */
    .feature-list {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .site-footer {
        padding: var(--spacing-lg);
    }

    /* Page header */
    .page-title {
        font-size: var(--font-size-2xl);
    }

    .page-description {
        font-size: var(--font-size-base);
    }

    /* CTA section */
    .cta-section {
        padding: var(--spacing-xl);
    }

    .cta-section h3 {
        font-size: var(--font-size-xl);
    }

    /* Tables */
    .table th,
    .table td {
        padding: var(--spacing-sm);
    }

    /* Contact info */
    .contact-item {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

/* --------------------------------------------------------------------------
   Small Mobile (< 576px)
   -------------------------------------------------------------------------- */
@media (max-width: 575px) {
    :root {
        --font-size-base: 0.9375rem;
    }

    /* Full width sidebar on mobile */
    .sidebar {
        width: 100%;
    }

    /* Smaller padding */
    .site-content {
        padding: var(--spacing-md);
    }

    .content-section {
        padding: var(--spacing-md);
        border-radius: var(--border-radius-md);
    }

    /* Section header */
    .section-title {
        font-size: var(--font-size-xl);
    }

    /* Buttons */
    .btn {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .btn-lg {
        padding: var(--spacing-sm) var(--spacing-lg);
    }

    /* Forms */
    .form-group {
        margin-bottom: var(--spacing-md);
    }

    /* Product detail */
    .product-hero-image {
        width: 150px;
        height: 75px;
    }

    .product-hero-title {
        font-size: var(--font-size-xl);
    }

    /* Breadcrumb */
    .breadcrumb {
        font-size: var(--font-size-xs);
        flex-wrap: wrap;
    }
}

/* --------------------------------------------------------------------------
   Print Styles
   -------------------------------------------------------------------------- */
@media print {
    .sidebar,
    .sidebar-toggle,
    .menu-toggle,
    .header-nav,
    .cta-section {
        display: none !important;
    }

    .site-content {
        margin-left: 0;
        max-width: 100%;
    }

    .site-footer {
        margin-left: 0;
    }

    .site-header {
        position: static;
        border-bottom: 1px solid #000;
    }

    .site-main {
        margin-top: 0;
    }

    body {
        background: white;
        color: black;
    }

    .content-section {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    a {
        color: black;
        text-decoration: underline;
    }

    .btn {
        border: 1px solid black;
    }
}

/* --------------------------------------------------------------------------
   Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* --------------------------------------------------------------------------
   High Contrast Mode Support
   -------------------------------------------------------------------------- */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #0a4a8f;
        --color-gray-600: #404040;
        --color-gray-400: #606060;
    }

    .btn {
        border-width: 2px;
    }

    .nav-link.active {
        border-left-width: 4px;
    }
}

/* --------------------------------------------------------------------------
   Dark Mode Support (optional - can be enabled later)
   -------------------------------------------------------------------------- */
/*
@media (prefers-color-scheme: dark) {
    :root {
        --color-white: #1a1a1a;
        --color-gray-50: #222222;
        --color-gray-100: #2a2a2a;
        --color-gray-200: #333333;
        --color-gray-300: #444444;
        --color-gray-700: #cccccc;
        --color-gray-800: #e0e0e0;
        --color-gray-900: #f0f0f0;
    }

    body {
        background-color: #111111;
    }
}
*/
