/**
 * Bunnyecom Theme Responsive Styles
 * 
 * @package Bunnyecom
 */

/* ─────────────────────────────────────────────────── */
/* RESPONSIVE DESIGN                                   */
/* ─────────────────────────────────────────────────── */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    :root {
        --sidebar-w: 0;
    }
    
    .sidebar {
        position: fixed;
        left: -280px;
        transition: left 0.3s ease;
        z-index: 99;
    }
    
    .sidebar.mobile-open {
        left: 0;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
    h3 { font-size: 20px; }
    h4 { font-size: 16px; }
    
    .content-wrap {
        padding: 40px 24px;
    }
    
    .doc-hero {
        padding: 48px 24px 40px;
    }
    
    .doc-hero h1 {
        font-size: 36px;
    }
    
    table {
        font-size: 12px;
    }
    
    th, td {
        padding: 8px 12px;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    :root {
        --header-h: 56px;
    }
    
    h1 { font-size: 28px; }
    h2 { font-size: 22px; }
    h3 { font-size: 18px; }
    h4 { font-size: 14px; }
    
    body {
        font-size: 14px;
    }
    
    .site-header {
        padding: 0 16px;
        height: var(--header-h);
    }
    
    .content-wrap {
        padding: 32px 16px;
    }
    
    .doc-hero {
        padding: 40px 16px 32px;
    }
    
    .doc-hero h1 {
        font-size: 28px;
    }
    
    .doc-hero p {
        font-size: 14px;
    }
    
    .doc-section {
        padding: 40px 16px;
    }
    
    pre {
        font-size: 11px;
        padding: 16px 12px;
        margin-left: -16px;
        margin-right: -16px;
        border-radius: 0;
    }
    
    .table-wrap {
        margin-left: -16px;
        margin-right: -16px;
        border-radius: 0;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .sidebar,
    .hamburger {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    a {
        text-decoration: underline;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: more) {
    :root {
        --shadow-sm: 0 2px 8px rgba(0,0,0,0.15);
        --shadow-md: 0 4px 16px rgba(0,0,0,0.2);
        --shadow-lg: 0 8px 30px rgba(0,0,0,0.3);
    }
    
    a {
        text-decoration: underline;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark Mode — Disabled: Site enforces white background */
/* Site uses a fixed black & white scheme regardless of system preference */
