/*
 * Responsive Styles
 * SuperCupom Theme v2.0
 */

/* ===================================
   TABLETS (768px - 1024px)
   =================================== */

@media (max-width: 1024px) {
    .hero-modern h1 {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .coupons-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
    
    .stores-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

/* ===================================
   MOBILE (< 768px)
   =================================== */

@media (max-width: 768px) {
    /* Header Moderno */
    .header-content {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .logo-modern {
        font-size: 1.5rem;
    }
    
    .search-box-modern {
        max-width: 100%;
        width: 100%;
    }
    
    .nav-modern {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    .nav-modern a {
        font-size: 0.9rem;
    }
    
    /* Header Clean */
    .header-container-clean {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-clean {
        justify-content: center;
        width: 100%;
    }
    
    /* Hero */
    .hero-modern {
        padding: 3rem 1rem 2rem;
    }
    
    .hero-modern h1 {
        font-size: 2.5rem;
    }
    
    .hero-modern p {
        font-size: 1.1rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Store Header Clean */
    .store-header-clean {
        padding: 20px 15px;
    }
    
    .store-header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .store-logo-container {
        width: 100px;
        height: 100px;
    }
    
    .store-logo-container img {
        max-width: 80px;
        max-height: 80px;
    }
    
    .store-info h1 {
        font-size: 24px;
    }
    
    /* Cupons Grid Moderno */
    .coupons-grid-modern {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .coupon-card-modern {
        border-radius: 16px;
    }
    
    .coupon-card-modern.exclusive::before {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        top: 10px;
        right: 10px;
    }
    
    .coupon-badge-modern {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        top: 10px;
        left: 10px;
    }
    
    .coupon-header-modern {
        padding: 1rem;
    }
    
    .store-logo-modern {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .store-name-modern {
        font-size: 1rem;
    }
    
    .coupon-body-modern {
        padding: 1rem;
    }
    
    .discount-tag-modern {
        font-size: 1.5rem;
        padding: 0.6rem 1.25rem;
    }
    
    .coupon-title-modern {
        font-size: 1.1rem;
    }
    
    .coupon-description-modern {
        font-size: 0.9rem;
    }
    
    .coupon-meta-modern {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem;
        font-size: 0.8rem;
    }
    
    .coupon-code-section-modern {
        flex-direction: column;
    }
    
    .code-display-modern {
        font-size: 1.1rem;
        padding: 0.875rem 1.25rem;
    }
    
    .copy-btn-modern {
        width: 100%;
        padding: 0.875rem;
    }
    
    .deal-btn-modern {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    /* Cupons List Clean */
    .coupon-list-clean {
        gap: 15px;
    }
    
    .coupon-card-clean {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }
    
    .discount-badge-container {
        min-width: auto;
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .discount-badge-clean {
        font-size: 24px;
        padding: 12px 8px;
    }
    
    .discount-label {
        font-size: 12px;
    }
    
    .coupon-logo-clean {
        display: none; /* Ocultar logo em mobile para economizar espaço */
    }
    
    .coupon-title-clean {
        font-size: 18px;
    }
    
    .coupon-description-clean {
        font-size: 13px;
    }
    
    .coupon-meta-clean {
        flex-wrap: wrap;
        gap: 10px;
        font-size: 12px;
    }
    
    .code-section-clean {
        flex-direction: column;
        gap: 10px;
    }
    
    .see-details-btn,
    .show-code-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    /* Stores Grid */
    .stores-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .store-card {
        padding: 1.5rem 1rem;
    }
    
    .store-card-logo {
        font-size: 3rem;
    }
    
    .store-card h3 {
        font-size: 1.1rem;
    }
    
    .store-card p {
        font-size: 0.85rem;
    }
    
    /* Categories Grid */
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .category-card {
        padding: 2rem;
    }
    
    .category-icon {
        font-size: 3rem;
    }
    
    .category-card h3 {
        font-size: 1.2rem;
    }
    
    /* Section */
    .section {
        padding: 2rem 1rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    /* Footer */
    .footer {
        padding: 3rem 1rem 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
    }
    
    /* Main Container Clean */
    .main-container-clean {
        padding: 0 15px;
    }
    
    /* Single Cupom */
    .hero-modern div[style*="inline-flex"] {
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 1.5rem !important;
    }
    
    /* Alphabet Filter */
    div[style*="width: 40px"] {
        width: 35px !important;
        height: 35px !important;
        font-size: 0.85rem !important;
    }
}

/* ===================================
   SMALL MOBILE (< 480px)
   =================================== */

@media (max-width: 480px) {
    .hero-modern h1 {
        font-size: 2rem;
    }
    
    .hero-modern p {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .stores-grid {
        grid-template-columns: 1fr;
    }
    
    .discount-badge-clean {
        font-size: 20px;
        padding: 10px 6px;
    }
    
    .coupon-title-clean {
        font-size: 16px;
    }
    
    .store-info h1 {
        font-size: 20px;
    }
}

/* ===================================
   LANDSCAPE MOBILE
   =================================== */

@media (max-height: 500px) and (orientation: landscape) {
    .hero-modern {
        padding: 2rem 1rem;
    }
    
    .hero-modern h1 {
        font-size: 2rem;
    }
    
    .stats {
        flex-direction: row;
        gap: 2rem;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    .header-modern,
    .header-clean,
    .footer,
    .search-box-modern,
    .nav-modern,
    .nav-clean,
    button,
    .copy-btn-modern,
    .deal-btn-modern,
    .show-code-btn {
        display: none !important;
    }
    
    .coupon-card-modern,
    .coupon-card-clean {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd;
    }
    
    * {
        background: white !important;
        color: black !important;
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */

/* Focus visible para navegação por teclado */
*:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Reduzir movimento para usuários que preferem */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Alto contraste */
@media (prefers-contrast: high) {
    .coupon-card-modern,
    .coupon-card-clean,
    .store-card {
        border: 2px solid currentColor;
    }
    
    button {
        border: 2px solid currentColor;
    }
}
