/**
 * Media Queries - Design Responsivo
 * Hashi Yūgo Sushi Restaurante
 */

/* ====================================
   TABLETS E MENORES (max-width: 1024px)
   ==================================== */
@media (max-width: 1024px) {
    :root {
        --container-width: 960px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .col-4 {
        width: 33.333%;
    }
}

/* ====================================
   TABLETS (max-width: 768px)
   ==================================== */
@media (max-width: 768px) {
    :root {
        --container-width: 100%;
        --header-height: 70px;
        --spacing-lg: 2rem;
        --spacing-xl: 3rem;
    }
    
    /* Header */
    .header-top {
        display: none;
    }
    
    body {
        padding-top: var(--header-height);
    }
    
    .header-main-content {
        position: relative;
    }
    
    .logo img {
        height: 50px;
    }
    
    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 280px;
        height: calc(100vh - var(--header-height));
        background: var(--secondary);
        padding: 30px 20px;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
        z-index: 999;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav .menu {
        flex-direction: column;
        gap: 0;
    }
    
    .main-nav .menu li {
        border-bottom: 1px solid var(--border);
    }
    
    .main-nav .menu li a {
        padding: 15px 10px;
        font-size: 1.1rem;
    }
    
    .btn-menu-mobile {
        display: block;
    }
    
    /* Menu Overlay */
    .menu-overlay {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: rgba(0, 0, 0, 0.7);
        z-index: 998;
    }
    
    .menu-overlay.active {
        display: block;
    }
    
    /* Hero */
    .hero-section {
        height: 400px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .btn-large {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    /* Sections */
    .section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .section-title p {
        font-size: 1rem;
    }
    
    /* Grid */
    .row {
        margin: 0 -10px;
    }
    
    .col,
    .col-2,
    .col-3,
    .col-4 {
        width: 100%;
        padding: 0 10px;
        margin-bottom: 20px;
    }
    
    /* Cards */
    .card-image {
        height: 200px;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-main {
        padding: 40px 0 30px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    /* Filtros */
    .filtros-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .filtro-buttons {
        flex-direction: column;
    }
    
    .filtro-buttons .btn {
        width: 100%;
    }
    
    /* Categorias */
    .categorias-nav {
        gap: 10px;
    }
    
    .categoria-item {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Paginação */
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .page-link {
        min-width: 35px;
        height: 35px;
        padding: 0 10px;
        font-size: 0.9rem;
    }
    
    .pagination-simple {
        flex-direction: column;
        text-align: center;
    }
    
    /* WhatsApp */
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
        bottom: 20px;
        right: 20px;
    }
    
    /* Modal */
    .modal-content {
        max-width: 95%;
    }
    
    .modal-body {
        padding: 20px 15px;
    }
    
    /* Forms */
    .form-control {
        padding: 10px 12px;
    }
}

/* ====================================
   MOBILE (max-width: 480px)
   ==================================== */
@media (max-width: 480px) {
    :root {
        font-size: 14px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Header */
    .logo img {
        height: 45px;
    }
    
    .btn-menu-mobile {
        font-size: 1.3rem;
    }
    
    /* Hero */
    .hero-section {
        height: 350px;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .hero-content .btn {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
    
    /* Sections */
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    /* Cards */
    .card-body {
        padding: 15px;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-footer {
        padding: 12px 15px;
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    /* Produto */
    .produto-preco {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .preco-atual {
        font-size: 1.3rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .btn-icon {
        font-size: 0.9rem;
    }
    
    /* Search */
    .search-box input {
        padding: 12px 45px 12px 15px;
        font-size: 0.95rem;
    }
    
    .search-box button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Categorias */
    .categoria-item {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    /* Footer */
    .footer-main {
        padding: 30px 0 20px;
    }
    
    .footer-col h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .footer-col p,
    .footer-links a,
    .footer-hours li,
    .footer-contact li {
        font-size: 0.9rem;
    }
    
    .footer-social a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .footer-bottom {
        padding: 15px 0;
    }
    
    .footer-bottom-content {
        font-size: 0.8rem;
    }
    
    /* WhatsApp */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
        bottom: 15px;
        right: 15px;
    }
    
    /* Forms */
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-label {
        font-size: 0.95rem;
    }
    
    .form-control {
        padding: 10px;
        font-size: 0.95rem;
    }
    
    /* Alerts */
    .alert {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    /* Modal */
    .modal {
        padding: 10px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 20px 15px;
    }
    
    .modal-footer {
        padding: 15px;
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
    
    /* Tabs */
    .tabs-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 5px;
    }
    
    .tab-link {
        padding: 10px 20px;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    /* Pagination */
    .page-link {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 0.85rem;
    }
    
    .pagination-info {
        font-size: 0.85rem;
    }
}

/* ====================================
   AJUSTES PARA TELAS PEQUENAS
   ==================================== */
@media (max-width: 360px) {
    :root {
        font-size: 13px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .main-nav {
        width: 100%;
    }
}

/* ====================================
   LANDSCAPE MOBILE
   ==================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        height: 100vh;
    }
    
    .main-nav {
        height: 100vh;
    }
}

/* ====================================
   IMPRESSÃO
   ==================================== */
@media print {
    .site-header,
    .site-footer,
    .whatsapp-float,
    .btn-menu-mobile,
    .filtros-container,
    .pagination-container {
        display: none !important;
    }
    
    body {
        padding-top: 0;
        background: white;
        color: black;
    }
    
    .card {
        page-break-inside: avoid;
    }
}

/* ====================================
   DARK MODE (Suporte Futuro)
   ==================================== */
@media (prefers-color-scheme: dark) {
    /* Já estamos usando tema escuro por padrão */
}

/* ====================================
   HIGH CONTRAST
   ==================================== */
@media (prefers-contrast: high) {
    .card,
    .form-control,
    .btn {
        border-width: 2px;
    }
}

/* ====================================
   REDUCED MOTION
   ==================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ====================================
   HOVER SUPPORT
   ==================================== */
@media (hover: none) {
    .card:hover,
    .btn:hover,
    a:hover {
        transform: none;
    }
}