/* Otimizações de SEO */
:root {
    --primary-color: #0ba4ae; /* Azul turquesa */
    --secondary-color: #ff1569; /* Rosa/magenta */
    --accent-color: #ffc107; /* Amarelo/dourado */
    --dark-color: #252633; /* Azul escuro */
    --light-color: #f8f9fa; /* Cinza claro */
    --white: #ffffff;
    --black: #333333;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --success-color: #4caf50;
}

/* Otimizações para SEO */
.seo-heading {
    font-size: 1px;
    height: 1px;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

/* Otimizações para carregamento */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s;
}

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

/* Otimizações para acessibilidade */
.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;
}

/* Otimizações para palavras-chave */
.keyword-highlight {
    font-weight: 600;
    color: var(--primary-color);
}

/* Otimizações para links internos */
.internal-link {
    text-decoration: underline;
    text-decoration-color: var(--primary-color);
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

/* Otimizações para breadcrumbs */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 10px 0;
    font-size: 0.9rem;
}

.breadcrumbs li {
    display: inline;
}

.breadcrumbs li:not(:last-child)::after {
    content: "›";
    margin: 0 5px;
    color: var(--gray);
}

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

.breadcrumbs li:last-child {
    color: var(--gray);
}

/* Otimizações para imagens */
.img-fluid {
    max-width: 100%;
    height: auto;
}

.img-alt-enhanced {
    position: relative;
}

.img-alt-enhanced::after {
    content: attr(data-alt);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.img-alt-enhanced:hover::after {
    opacity: 1;
}

/* Otimizações para tempo de carregamento */
.preload-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.preload-animation.loaded {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(11, 164, 174, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Otimizações para mobile */
@media (max-width: 768px) {
    .mobile-optimize-text {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }
    
    .mobile-optimize-spacing {
        padding: 15px !important;
        margin: 10px 0 !important;
    }
    
    .mobile-stack {
        display: block !important;
        width: 100% !important;
    }
}

/* Otimizações para tempo de interação */
.interaction-feedback {
    position: relative;
    overflow: hidden;
}

.interaction-feedback::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.interaction-feedback:active::after {
    opacity: 0.3;
    animation: ripple 0.4s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Otimizações para contraste e acessibilidade */
.high-contrast {
    color: #000 !important;
    background-color: #fff !important;
    border: 1px solid #000 !important;
}

.high-contrast-inverse {
    color: #fff !important;
    background-color: #000 !important;
    border: 1px solid #fff !important;
}

/* Otimizações para impressão */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background-color: #fff;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
    
    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 90%;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    
    p, blockquote, ul, ol, dl, table {
        page-break-inside: avoid;
    }
}
