/* ============================================
   CUPONS DE DESCONTO - MAIN STYLESHEET
   ============================================ */

/* Reset and Base Styles */
* {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    box-sizing: border-box;
}

.cupons-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ffffff;
    overflow-x: hidden;
}

/* ============================================
   HEADER SECTION
   ============================================ */

.cupons-header {
    padding: 2rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cupons-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    pointer-events: none;
}

.cupons-header::before {
    background: 
        radial-gradient(circle at 10% 20%, rgba(233, 69, 96, 0.5) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(147, 51, 234, 0.5) 0%, transparent 50%);
}

.cupons-header-content {
    position: relative;
    z-index: 10;
}

.cupons-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.cupons-icon {
    width: 3rem;
    height: 3rem;
    color: #e94560;
    filter: drop-shadow(0 0 20px rgba(233, 69, 96, 0.3));
}

.cupons-header-text {
    margin-bottom: 0;
}

.cupons-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(to right, #e94560, #a733ea, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.cupons-subtitle {
    font-size: 1.125rem;
    color: #d1d5db;
    font-weight: 300;
    margin: 0;
}

/* Responsive Header */
@media (max-width: 768px) {
    .cupons-header {
        padding: 1.5rem 1rem;
    }

    .cupons-title {
        font-size: 1.875rem;
    }

    .cupons-subtitle {
        font-size: 1rem;
    }

    .cupons-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* ============================================
   FILTERS SECTION
   ============================================ */

.cupons-filters-nav {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cupons-filters-wrapper {
    max-width: 1280px;
    margin: 0 auto;
}

.cupons-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.cupons-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.cupons-filter-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
}

.cupons-filter-btn.active {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.3);
}

.cupons-filter-icon {
    font-size: 1rem;
    display: inline-block;
}

.cupons-filter-name {
    display: inline-block;
}

/* ============================================
   MAIN CONTENT SECTION
   ============================================ */

.cupons-main {
    flex: 1;
    padding: 2rem 1rem;
}

.cupons-grid-wrapper {
    max-width: 1280px;
    margin: 0 auto;
}

.cupons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

/* Responsive Grid */
@media (max-width: 768px) {
    .cupons-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .cupons-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   COUPON CARD WITH IMAGE
   ============================================ */

.cupons-card {
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 40px rgba(233, 69, 96, 0.15);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cupons-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 60px rgba(233, 69, 96, 0.25);
}

/* Card Image */
.cupons-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(to right, #e94560, #a733ea, #06b6d4);
    border-image-slice: 1;
    transition: transform 0.3s ease;
}

.cupons-card:hover .cupons-card-image {
    transform: scale(1.05);
}

/* Card Header */
.cupons-card-header {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.cupons-card-header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cupons-card-icon {
    font-size: 1.25rem;
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.cupons-card-loja {
    font-weight: 600;
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.cupons-card-hot {
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    backdrop-filter: blur(4px);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Card Content */
.cupons-card-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.2));
}

.cupons-card-desconto {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.cupons-card-descricao {
    color: #d1d5db;
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Coupon Code Box */
.cupons-card-code {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
}

.cupons-code-text {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    flex: 1;
    word-break: break-all;
}

/* Copy Button */
.cupons-copy-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.cupons-copy-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.cupons-copy-btn:active {
    transform: scale(0.95);
}

.cupons-copy-btn.copied {
    animation: cupons-pulse 0.5s ease;
}

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

.cupons-copy-icon {
    width: 1rem;
    height: 1rem;
    stroke: currentColor;
    stroke-width: 2;
}

/* Validade */
.cupons-card-validade {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #9ca3af;
    margin-top: auto;
}

.cupons-validade-icon {
    width: 1rem;
    height: 1rem;
    stroke: currentColor;
    stroke-width: 2;
    flex-shrink: 0;
}

/* ============================================
   NO RESULTS MESSAGE
   ============================================ */

.cupons-no-results {
    text-align: center;
    padding: 4rem 1rem;
    grid-column: 1 / -1;
}

.cupons-no-results-emoji {
    font-size: 3.75rem;
    margin-bottom: 1rem;
}

.cupons-no-results-text {
    font-size: 1.25rem;
    color: #9ca3af;
    margin: 0;
}

/* ============================================
   LOGO SECTION - SEM SOMBRA
   ============================================ */

.cupons-logo-container {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 10px 10px 10px;
}

.cupons-logo-link {
    display: inline-block;
}

.cupons-logo {
    max-width: 100%;
    height: auto;
    width: auto;
    border-radius: 12px;
    /* box-shadow: 0 4px 20px rgba(233, 69, 96, 0.25); */ /* SOMBRA REMOVIDA */
}

/* Desktop - logo 30% maior */
@media (min-width: 1024px) {
    .cupons-logo {
        max-height: 180px;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .cupons-logo {
        max-height: 140px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .cupons-logo-container {
        margin-bottom: 20px;
        padding: 15px 10px 5px 10px;
    }
    
    .cupons-logo {
        max-height: 120px;
    }
}

@media (max-width: 480px) {
    .cupons-logo {
        max-height: 90px;
    }
}

/* ============================================
   ÍCONE COMPARTILHAR DISCRETO - SEM FUNDO
   ============================================ */

.cupons-share-icon-btn {
    background: none !important;
    border: none !important;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    margin: 0 0 0 8px;
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.8);
    outline: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
    line-height: 1;
}

.cupons-share-icon-btn:hover {
    color: #25D366;
    transform: scale(1.1);
    background: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.cupons-share-icon-btn:focus,
.cupons-share-icon-btn:active,
.cupons-share-icon-btn:focus-visible,
.cupons-share-icon-btn:focus-within {
    outline: 0 !important;
    outline-style: none !important;
    outline-width: 0 !important;
    outline-color: transparent !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
    border: none !important;
    background: none !important;
    color: rgba(255, 255, 255, 0.8);
    -webkit-tap-highlight-color: transparent !important;
}

/* Remove qualquer vestígio de outline em todos os estados */
.cupons-share-icon-btn::-moz-focus-inner {
    border: 0 !important;
    outline: none !important;
}

/* ============================================
   MODAL SECTION
   ============================================ */

.cupons-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(8px);
}

.cupons-modal.active {
    opacity: 1;
}

.cupons-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(233, 69, 96, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cupons-modal.active .cupons-modal-content {
    transform: scale(1);
}

.cupons-modal-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: cupons-icon-bounce 0.6s ease;
}

@keyframes cupons-icon-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.cupons-modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(to right, #e94560, #a733ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cupons-modal-text {
    font-size: 1.125rem;
    color: #d1d5db;
    margin: 0 0 1.5rem 0;
    font-weight: 500;
}

.cupons-modal-redirect {
    font-size: 0.95rem;
    color: #9ca3af;
    margin: 0 0 1rem 0;
}

.cupons-modal-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 1.5rem;
}

.cupons-modal-progress-bar {
    height: 100%;
    background: linear-gradient(to right, #e94560, #a733ea);
    width: 0%;
    transition: width 0.2s ease;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(233, 69, 96, 0.5);
}

/* ============================================
   FOOTER SECTION
   ============================================ */

.cupons-footer {
    padding: 1.5rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.cupons-footer-text {
    color: #9ca3af;
    font-size: 0.875rem;
    margin: 0;
}

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

@media (max-width: 1024px) {
    .cupons-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .cupons-container {
        min-height: auto;
    }

    .cupons-main {
        padding: 1.5rem 1rem;
    }

    .cupons-card-code {
        flex-direction: column;
        align-items: stretch;
    }

    .cupons-copy-btn {
        width: 100%;
        justify-content: center;
    }

    .cupons-code-text {
        text-align: center;
    }
    
    /* Responsive image */
    .cupons-card-image {
        height: 150px;
    }
    
    /* Ícone compartilhar responsivo */
    .cupons-share-icon-btn {
        font-size: 1.3rem;
        margin-left: 5px;
    }
}

@media (max-width: 640px) {
    .cupons-filters {
        gap: 0.5rem;
    }

    .cupons-filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .cupons-card {
        border-radius: 0.875rem;
    }

    .cupons-card-header {
        padding: 1rem;
    }

    .cupons-card-content {
        padding: 1rem;
    }

    .cupons-card-desconto {
        font-size: 1.5rem;
    }

    .cupons-card-descricao {
        font-size: 0.85rem;
    }

    .cupons-copy-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .cupons-copy-icon {
        width: 0.875rem;
        height: 0.875rem;
    }
    
    /* Responsive image mobile */
    .cupons-card-image {
        height: 140px;
    }
}

/* ============================================
   ELEMENTOR COMPATIBILITY
   ============================================ */

.elementor-widget-wrap .cupons-container,
.elementor .cupons-container {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* Ensure proper spacing in Elementor */
.elementor-widget-container .cupons-container {
    margin: 0;
    padding: 0;
}

/* Fix for Hello Elementor theme */
.site-content .cupons-container,
.content-area .cupons-container {
    margin: 0;
}

/* Ensure modal stays on top in Elementor */
.elementor-edit-area .cupons-modal,
.elementor-section .cupons-modal {
    z-index: 999999 !important;
}

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

.cupons-filter-btn:focus,
.cupons-copy-btn:focus {
    outline: 2px solid #e94560;
    outline-offset: 2px;
}

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

@media print {
    .cupons-filters-nav {
        display: none;
    }

    .cupons-card:hover {
        transform: none;
    }

    .cupons-copy-btn {
        display: none;
    }
}