/* Otimizações de SEO para o site do cupom ENARE Estratégia Med */

/* Melhorias de acessibilidade */
:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Melhorias de performance */
.lazy-load {
    transition: opacity 0.3s ease;
    opacity: 0;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Melhorias de contraste para acessibilidade */
.high-contrast {
    color: var(--dark-blue);
    font-weight: 700;
}

.high-contrast-light {
    color: var(--text-light);
    font-weight: 700;
}

/* Estilos para links de âncora */
.anchor-link {
    display: block;
    position: relative;
    top: -100px;
    visibility: hidden;
}

/* Estilos para breadcrumbs */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin: 0 10px;
    color: var(--text-dark);
    opacity: 0.5;
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .current {
    color: var(--text-dark);
    font-weight: 500;
}

/* Estilos para microdata */
.microdata {
    display: none;
}

/* Estilos para botões de compartilhamento */
.share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.share-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    transition: var(--transition);
}

.share-button:hover {
    transform: translateY(-3px);
}

.share-facebook {
    background-color: #3b5998;
}

.share-twitter {
    background-color: #1da1f2;
}

.share-whatsapp {
    background-color: #25d366;
}

.share-telegram {
    background-color: #0088cc;
}

/* Estilos para tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tag {
    background-color: var(--bg-light-blue);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Estilos para ratings */
.rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}

.rating-stars {
    display: flex;
}

.rating-star {
    color: var(--gold);
    font-size: 1.2rem;
}

.rating-count {
    font-size: 0.9rem;
    color: var(--text-dark);
    opacity: 0.7;
}

/* Estilos para badges */
.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.badge-secondary {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.badge-success {
    background-color: var(--success-color);
    color: var(--text-light);
}

.badge-warning {
    background-color: var(--warning-color);
    color: var(--text-dark);
}

/* Estilos para tooltips */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: var(--dark-blue);
    color: var(--text-light);
    text-align: center;
    border-radius: 4px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--dark-blue) transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Estilos para notificações */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--bg-light);
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    flex-shrink: 0;
}

.notification-success .notification-icon {
    background-color: var(--success-color);
}

.notification-warning .notification-icon {
    background-color: var(--warning-color);
}

.notification-error .notification-icon {
    background-color: var(--error-color);
}

.notification-info .notification-icon {
    background-color: var(--info-color);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 700;
    margin-bottom: 5px;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-dark);
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.notification-close:hover {
    opacity: 1;
}

/* Estilos para skeletons (carregamento) */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Estilos para botões de filtro */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.filter-button {
    background-color: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-button:hover {
    background-color: var(--bg-light-blue);
    color: var(--primary-color);
}

.filter-button.active {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

/* Estilos para paginação */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 40px;
}

.pagination-item {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.pagination-item:hover {
    background-color: var(--bg-light-blue);
    color: var(--primary-color);
}

.pagination-item.active {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

.pagination-prev, .pagination-next {
    width: auto;
    padding: 0 15px;
}

/* Estilos para tabelas */
.table-container {
    overflow-x: auto;
    margin-bottom: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

th {
    background-color: var(--bg-light-blue);
    color: var(--dark-blue);
    font-weight: 700;
}

tr:nth-child(even) {
    background-color: var(--bg-gray);
}

tr:hover {
    background-color: var(--bg-light-blue);
}

/* Estilos para cards de destaque */
.highlight-card {
    background-color: var(--bg-light);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    border-left: 5px solid var(--primary-color);
    margin: 30px 0;
}

.highlight-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Estilos para listas de verificação */
.checklist {
    list-style: none;
    margin-bottom: 20px;
}

.checklist li {
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
}

.checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Estilos para alertas */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.alert-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 700;
    margin-bottom: 5px;
}

.alert-success {
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: var(--success-color);
}

.alert-warning {
    background-color: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.3);
    color: var(--warning-color);
}

.alert-error {
    background-color: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: var(--error-color);
}

.alert-info {
    background-color: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.3);
    color: var(--info-color);
}

/* Estilos para progress bars */
.progress {
    height: 8px;
    background-color: var(--bg-gray);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Estilos para tabs */
.tabs {
    margin-bottom: 30px;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.tab-button {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.tab-button:hover {
    color: var(--primary-color);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Estilos para accordions */
.accordion {
    margin-bottom: 30px;
}

.accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.accordion-header {
    padding: 15px 20px;
    background-color: var(--bg-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header h3 {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-item.active .accordion-content {
    padding: 20px;
    max-height: 1000px;
}

/* Estilos para cards de preço */
.price-card {
    background-color: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.price-header {
    background: var(--gradient-dark);
    padding: 30px 20px;
    color: var(--text-light);
    text-align: center;
}

.price-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.price-period {
    font-size: 0.9rem;
    opacity: 0.8;
}

.price-features {
    padding: 30px 20px;
    flex-grow: 1;
}

.price-features ul {
    list-style: none;
    margin-bottom: 30px;
}

.price-features li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.price-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.price-footer {
    padding: 0 20px 30px;
    text-align: center;
}

/* Estilos para testimonials */
.testimonial {
    background-color: var(--bg-light);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info h4 {
    margin-bottom: 5px;
}

.testimonial-position {
    font-size: 0.9rem;
    color: var(--primary-color);
}

/* Estilos para call-to-actions */
.cta-box {
    background: var(--gradient-dark);
    color: var(--text-light);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 178, 169, 0.2) 0%, rgba(10, 34, 64, 0) 100%);
}

.cta-box h2, .cta-box p {
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.cta-box h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.cta-box p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* Estilos para counters */
.counter-box {
    text-align: center;
    margin-bottom: 30px;
}

.counter-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.counter-label {
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* Estilos para timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-content {
    position: relative;
    width: calc(50% - 30px);
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    left: -40px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: -40px;
}

.timeline-date {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
}

@media screen and (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }
    
    .timeline-content::before {
        left: -40px !important;
        right: auto !important;
    }
}

/* Estilos para animações */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

.animate-fadeIn {
    animation: fadeIn 1s ease;
}

.animate-slideInUp {
    animation: slideInUp 1s ease;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Estilos para impressão */
@media print {
    header, footer, .floating-coupon, .back-to-top, .share-buttons, .cta-box {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    p, h2, h3 {
        orphans: 3;
        widows: 3;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
}
