/*
Theme Name: SuperCupom Dual Layout
Theme URI: https://supercupom.com.br
Author: SuperCupom Team
Author URI: https://supercupom.com.br
Description: Tema WordPress para site de cupons com dois layouts distintos - Supercupom (moderno) e CouponFollow (clean)
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: supercupom
*/

/* ===================================
   RESET E VARIÁVEIS GLOBAIS
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores SuperCupom (Moderno) */
    --primary: #FF5722;
    --primary-dark: #E64A19;
    --secondary: #1E88E5;
    --accent: #FFD600;
    --success: #00C853;
    --dark: #0D1117;
    --mid-dark: #161B22;
    --light: #F8F9FA;
    --border: #30363D;
    --text-primary: #0D1117;
    --text-secondary: #586069;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
    
    /* Cores CouponFollow (Clean) */
    --cf-primary: #e63946;
    --cf-blue: #1976d2;
    --cf-green: #00a651;
    --cf-gray: #666;
    --cf-border: #e0e0e0;
    --cf-bg: #f5f5f5;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
}

/* ===================================
   LAYOUT SUPERCUPOM (MODERNO)
   =================================== */

/* Header Moderno */
.header-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.logo-modern {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-modern:hover {
    transform: scale(1.05);
}

.nav-modern {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-modern a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s ease;
}

.nav-modern a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-modern a:hover::after {
    width: 100%;
}

.search-box-modern {
    position: relative;
    flex: 1;
    max-width: 500px;
}

.search-box-modern input {
    width: 100%;
    padding: 0.875rem 1.25rem 0.875rem 3rem;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 0.95rem;
    font-family: inherit;
    background: white;
    transition: all 0.3s ease;
}

.search-box-modern input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 87, 34, 0.1);
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Hero Section */
.hero-modern {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 2rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #F8F9FA 0%, #E8EAF6 100%);
}

.hero-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 120%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.08) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-modern h1 {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-modern p {
    font-size: 1.35rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    font-family: 'DM Mono', monospace;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* Coupon Cards - Estilo Moderno */
.coupons-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.coupon-card-modern {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    position: relative;
}

.coupon-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.coupon-card-modern.exclusive::before {
    content: '⭐ Exclusivo';
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent);
    color: var(--dark);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 10;
}

.coupon-badge-modern {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--success);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 10;
}

.coupon-badge-modern.verified {
    background: var(--success);
}

.coupon-badge-modern.hot {
    background: var(--primary);
}

.coupon-header-modern {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 2px solid var(--light);
}

.store-logo-modern {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--light), white);
    font-size: 2rem;
    border: 2px solid var(--border);
}

.store-name-modern {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.coupon-body-modern {
    padding: 1.5rem;
}

.discount-tag-modern {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 1.75rem;
    font-weight: 900;
    margin-bottom: 1rem;
    font-family: 'DM Mono', monospace;
}

.coupon-title-modern {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.coupon-description-modern {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.coupon-meta-modern {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: var(--light);
    border-radius: 12px;
}

.coupon-code-section-modern {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.code-display-modern {
    flex: 1;
    background: var(--light);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 2px dashed var(--primary);
    font-family: 'DM Mono', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    letter-spacing: 2px;
}

.copy-btn-modern {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-btn-modern:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.deal-btn-modern {
    width: 100%;
    background: var(--success);
    color: white;
    border: none;
    padding: 1.25rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.deal-btn-modern:hover {
    background: #00A843;
    transform: scale(1.02);
}

/* ===================================
   LAYOUT COUPONFOLLOW (CLEAN)
   =================================== */

/* Header Clean */
.header-clean {
    background: white;
    border-bottom: 1px solid var(--cf-border);
    padding: 8px 0;
}

.header-container-clean {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-clean {
    font-size: 20px;
    font-weight: 700;
    color: var(--cf-primary);
    text-decoration: none;
}

.nav-clean {
    display: flex;
    gap: 20px;
}

.nav-clean a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

/* Store Header */
.store-header-clean {
    background: white;
    border-bottom: 1px solid var(--cf-border);
    padding: 25px 20px;
}

.store-header-content {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 25px;
}

.store-logo-container {
    width: 120px;
    height: 120px;
    background: white;
    border: 1px solid var(--cf-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.store-logo-container img {
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
}

.store-info h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.saving-tips-link {
    color: var(--cf-blue);
    text-decoration: none;
    font-size: 13px;
}

.disclaimer {
    color: var(--cf-gray);
    font-size: 12px;
    margin-top: 8px;
}

/* Main Container Clean */
.main-container-clean {
    max-width: 1140px;
    margin: 20px auto;
    padding: 0 20px;
    background: var(--cf-bg);
}

.section-title-clean {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

/* Coupon Cards - Estilo Clean */
.coupon-list-clean {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.coupon-card-clean {
    background: white;
    border: 1px solid var(--cf-border);
    border-radius: 8px;
    padding: 25px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    transition: box-shadow 0.3s ease;
}

.coupon-card-clean:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.coupon-card-clean.expired {
    opacity: 0.6;
}

.discount-badge-container {
    flex-shrink: 0;
    text-align: center;
    min-width: 100px;
}

.discount-badge-clean {
    background: var(--cf-primary);
    color: white;
    font-size: 28px;
    font-weight: 700;
    padding: 15px 10px;
    border-radius: 6px;
    line-height: 1;
    margin-bottom: 8px;
}

.discount-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--cf-gray);
    text-transform: uppercase;
}

.coupon-logo-clean {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.coupon-logo-clean img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.coupon-content-clean {
    flex: 1;
}

.coupon-title-clean {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
}

.coupon-description-clean {
    color: var(--cf-gray);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.coupon-meta-clean {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--cf-gray);
    margin-bottom: 15px;
}

.verified-badge {
    color: var(--cf-green);
    font-weight: 600;
}

.verified-badge::before {
    content: "✔ ";
}

.code-section-clean {
    display: flex;
    gap: 15px;
    align-items: stretch;
}

.see-details-btn {
    background: white;
    border: 1px solid var(--cf-blue);
    color: var(--cf-blue);
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
}

.see-details-btn:hover {
    background: #f0f7ff;
}

.show-code-btn {
    background: var(--cf-primary);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.show-code-btn:hover {
    background: #d32f3e;
}

.code-preview {
    font-family: monospace;
    font-size: 14px;
    margin-right: 8px;
}

.savings-info {
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    padding: 8px 12px;
    margin-top: 12px;
    font-size: 13px;
    color: #856404;
}

.expired-label {
    background: #f44336;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

.expired-section {
    margin-top: 40px;
}

.expired-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #666;
}

/* ===================================
   COMPONENTES COMPARTILHADOS
   =================================== */

/* Stores Grid */
.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.store-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.store-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.store-card-logo {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.store-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.store-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.category-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.category-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.category-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 4rem 2rem 2rem;
    margin-top: 5rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.5);
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .search-box-modern {
        max-width: 100%;
    }
    
    .nav-modern {
        gap: 1.5rem;
    }
    
    .hero-modern h1 {
        font-size: 2.5rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .coupons-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .coupon-card-clean {
        flex-direction: column;
    }
    
    .store-header-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ===================================
   UTILITIES
   =================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 4rem 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.view-all:hover {
    transform: translateX(5px);
}

.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
