/* Tema de Natal - Estilos Sutis e Profissionais */

/* Cores do Tema de Natal */
:root {
    --christmas-green: #0f5132;
    --christmas-green-footer: #87a899;
    --christmas-red: #dc3545;
    --christmas-gold: #ffc107;
    --snow-white: #f8f9fa;
}

/* Aviso de Cupom de Natal */
.christmas-notice {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #0f5132, #198754);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 9999;
    font-size: 14px;
    max-width: 320px;
    animation: slideIn 0.5s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.christmas-notice .coupon-code {
    background: var(--christmas-gold);
    color: #0f5132;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    margin: 5px 0;
    font-size: 16px;
    letter-spacing: 1px;
}

.christmas-notice .close-notice {
    position: absolute;
    top: 5px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.8;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.christmas-notice .close-notice:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.3);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Preços com Desconto */
.price-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1.2;
}

.original-price {
    text-decoration: line-through;
    opacity: 0.6;
    font-size: 0.65em;
    color: #6c757d;
}

.discount-price {
    font-size: 0.95em;
    font-weight: bold;
    color: var(--christmas-green);
}

.discount-badge {
    background: var(--christmas-red);
    color: white;
    padding: 1px 3px;
    border-radius: 6px;
    font-size: 0.55em;
    font-weight: bold;
    display: inline-block;
    margin-left: 2px;
    vertical-align: middle;
}

.price-savings {
    font-size: 0.6em;
    color: #28a745;
    font-weight: 500;
}

.coupon-info {
    font-size: 0.55em;
    color: var(--christmas-red);
    font-weight: 600;
    margin-top: 0;
}

/* Cards de Produtos */
.product-card, .pricing-card, .price-card-item-one {
    overflow: hidden;
    position: relative;
}

.product-card.has-discount::before,
.pricing-card.has-discount::before,
.price-card-item-one.has-discount::before {
    /* content: '🎄 15% OFF';
    position: absolute;
    top: 10px;
    right: -25px;
    background: var(--christmas-red);
    color: white;
    padding: 5px 30px;
    transform: rotate(45deg);
    font-size: 11px;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); */
}

/* Ribbon de Desconto de Natal */
.christmas-discount-ribbon {
    position: absolute;
    top: 15px;
    right: -30px;
    background: linear-gradient(45deg, var(--christmas-red), #e74c3c);
    color: white;
    padding: 5px 30px;
    transform: rotate(45deg);
    font-size: 11px;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    animation: shine 2s infinite;
}

@keyframes shine {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Botões Primários com Tema de Natal */
.btn-primary, .btn-dark {
    background: linear-gradient(45deg, var(--christmas-green), #0f5132);
    border: none;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary:focus, .btn-dark:hover, .btn-dark:focus {
    background: linear-gradient(45deg, #0f5132, var(--christmas-green));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(34, 139, 34, 0.3);
}

/* Botões com Tema de Natal nos Cards - Alinhamento Perfeito */
.price-card-item-one .btn-dark,
.price-card-item-one .btn-primary {
    background: linear-gradient(45deg, var(--christmas-red), #c82333);
    border: none;
    color: white;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 24px;
    min-height: auto;
}

.price-card-item-one .btn-dark .btn-arrow,
.price-card-item-one .btn-primary .btn-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
}

.price-card-item-one .btn-dark:hover,
.price-card-item-one .btn-primary:hover {
    background: linear-gradient(45deg, #c82333, var(--christmas-red));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

/* Brilho de Natal nos botões */
.price-card-item-one .btn-dark::before,
.price-card-item-one .btn-primary::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.price-card-item-one .btn-dark:hover::before,
.price-card-item-one .btn-primary:hover::before {
    transform: translateX(100%);
}

/* Cards com Desconto - Efeito Especial nos Botões */
.price-card-item-one.has-discount .btn-dark,
.price-card-item-one.has-discount .btn-primary {
    background: linear-gradient(45deg, var(--christmas-red), #dc3545, var(--christmas-green));
    background-size: 200% 200%;
    animation: christmasGradient 3s ease infinite;
    position: relative;
}

.price-card-item-one.has-discount .btn-dark:hover,
.price-card-item-one.has-discount .btn-primary:hover {
    background: linear-gradient(45deg, var(--christmas-green), #dc3545, var(--christmas-red));
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

/* Animação de Gradiente de Natal */
@keyframes christmasGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Partículas de Brilho nos Botões com Desconto - Posição Corrigida */
.price-card-item-one.has-discount .btn-dark::after,
.price-card-item-one.has-discount .btn-primary::after {
    content: '✨';
    position: absolute;
    top: 2px;
    right: 5px;
    font-size: 0.7em;
    animation: sparkle 1.5s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Emoji de Natal nos botões - Alinhamento Corrigido */
.btn-arrow__text {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.btn-arrow__text::before {
    content: '🎄';
    margin-right: 8px;
    font-size: 1em;
    animation: bounce 2s infinite;
    flex-shrink: 0;
}

/* Correção do alinhamento do texto do botão */
.btn-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-arrow__text {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.btn-arrow__icon {
    margin-left: 8px;
    flex-shrink: 0;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-2px);
    }
}

/* Links e Destaques - Correção para Footer */
a, .text-primary {
    color: var(--christmas-green) !important;
}

a:hover, a:focus {
    color: #123420 !important;
}

/* Footer - Garantir Legibilidade dos Textos */
footer {
    background: inherit !important;
}

/* Forçar contraste adequado nos textos do footer */
footer * {
    color: inherit !important;
}

/* Links no footer com bom contraste */
footer a {
    color: var(--christmas-green) !important;
    font-weight: 500 !important;
}

footer a:hover {
    color: #123420 !important;
}

/* Textos com baixa visibilidade - corrigir */
footer .text-muted,
footer .text-secondary,
footer p,
footer span,
footer li {
    color: #495057 !important;
    opacity: 1 !important;
}

/* Títulos do footer */
footer h1, footer h2, footer h3, footer h4, footer h5, footer h6 {
    color: #212529 !important;
    font-weight: 600 !important;
}

/* Listas no footer */
footer .list-unstyled li {
    color: #495057 !important;
    margin-bottom: 0.5rem !important;
}

footer .list-unstyled li a {
    color: var(--christmas-green-footer) !important;
}

/* Copyright e informações */
footer .copyright,
footer .site-info {
    color: #6c757d !important;
    opacity: 1 !important;
}

/* Social links */
footer .social-links a {
    color: #495057 !important;
    font-size: 1.2em !important;
}

footer .social-links a:hover {
    color: var(--christmas-green) !important;
}

/* Garantir que textos importantes não fiquem apagados */
.bg-dark {
    background-color: #212529 !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

/* Cabeçalho */
.navbar {
    border-top: 3px solid var(--christmas-red);
}

/* Seções de Destaque */
.bg-primary {
    background-color: var(--christmas-green) !important;
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Rodapé */
.footer {
    border-top: 3px solid var(--christmas-red);
}

/* Efeitos de Natal (Mais Visíveis) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(220, 53, 69, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(15, 81, 50, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 193, 7, 0.02) 0%, transparent 50%);
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><text x="20" y="40" font-size="20" fill="rgba(15,81,50,0.05)">❄</text><text x="120" y="80" font-size="15" fill="rgba(220,53,69,0.05)">🎄</text><text x="60" y="120" font-size="18" fill="rgba(255,193,7,0.05)">⭐</text><text x="150" y="160" font-size="16" fill="rgba(15,81,50,0.05)">❄</text></svg>');
    opacity: 0.3;
    z-index: -1;
    animation: snowfall 20s linear infinite;
}

@keyframes snowfall {
    from {
        transform: translateY(-100px);
    }
    to {
        transform: translateY(100vh);
    }
}

/* Botão de Scroll Top */
.scroll-top {
    background-color: var(--christmas-red) !important;
}

/* Badges */
.badge.bg-primary {
    background-color: var(--christmas-green) !important;
}

/* Tabelas */
.table thead th {
    background-color: rgba(26, 71, 42, 0.1);
    border-bottom: 2px solid var(--christmas-green);
}

/* Formulários */
.form-control:focus, .form-select:focus {
    border-color: var(--christmas-green);
    box-shadow: 0 0 0 0.25rem rgba(26, 71, 42, 0.25);
}

/* Mensagens de Alerta */
.alert-success {
    background-color: rgba(26, 71, 42, 0.1);
    border-color: var(--christmas-green);
    color: var(--christmas-green);
}

/* Botão de Ação Principal */
.btn-action {
    background-color: var(--christmas-red);
    color: white;
    border: none;
}

.btn-action:hover {
    background-color: #a51f1f;
    color: white;
}

/* Efeito de brilho sutil em elementos interativos */
.btn, .card, .pricing-card {
    transition: all 0.3s ease;
}

.btn:hover, .card:hover, .pricing-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Ajuste para o preloader */
.preloader {
    background-color: var(--snow-white) !important;
}

/* Ajuste para o menu mobile */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: white;
        border-top: 2px solid var(--christmas-green);
    }
}
