/* Estilos para otimização de SEO e usabilidade */

/* Breadcrumb */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
}

.breadcrumb a {
    color: #000000; /* preto */
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #000000; /* ainda preto no hover */
    text-decoration: underline;
}

.breadcrumb span {
    color: #000000; /* preto */
    font-weight: 500;
}

/* Categoria Header */
.categoria-header {
    text-align: center;
    padding: 40px 0;
    border-radius: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 40px;
}

.categoria-hero .categoria-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.categoria-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.categoria-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.95;
}

/* Subcategoria Header */
.subcategoria-header {
    text-align: center;
    padding: 40px 0;
    border-radius: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 40px;
}

.subcategoria-hero .subcategoria-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.subcategoria-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.subcategoria-description {
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.95;
}

/* Categorias Grid */
.categorias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.categoria-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.categoria-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.categoria-card .categoria-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    text-align: center;
}

.categoria-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
}

.categoria-card h3 a:hover {
    color: #667eea;
    text-decoration: none; /* Adicionado para evitar sublinhado */
}


.categoria-card h3 a {
    color: #333;
    text-decoration: none;
}

.categoria-card h3 a:hover {
    color: #667eea;
}

.categoria-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.subcategorias-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.subcategorias-preview a {
    background: #f8f9fa;
    color: #495057;
    padding: 5px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.subcategorias-preview a:hover {
    background: #667eea;
    color: white;
}

.subcategorias-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin: 30px auto;       /* isso centraliza horizontalmente */
  max-width: 1000px;       /* limita a largura total */
  padding: 0 20px;         /* evita que grude nas bordas no mobile */
}

@media (max-width: 1024px) {
  .subcategorias-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .subcategorias-grid {
    grid-template-columns: 1fr;
  }
}


.subcategoria-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
    text-align: center;
}

.subcategoria-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.subcategoria-card .subcategoria-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.subcategoria-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

.subcategoria-card h3 a {
    color: #333;
    text-decoration: none;
}

.subcategoria-card h3 a:hover {
    color: #667eea;
}

.subcategoria-card p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.frases-count {
    background: #e9ecef;
    color: #495057;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Frases em Destaque */
.frases-destaque {
    margin: 50px 0;
}

.frases-destaque-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.frase-destaque {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.frase-destaque::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    opacity: 0.3;
    font-family: serif;
}

.frase-destaque p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    font-style: italic;
}

.categoria-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Navegação entre subcategorias */
.navegacao-subcategorias {
    margin: 50px 0;
    text-align: center;
}

.navegacao-subcategorias h3 {
    margin-bottom: 20px;
    color: #333;
}

.subcategorias-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.subcategoria-nav-item {
    background: #f8f9fa;
    color: #495057;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.subcategoria-nav-item:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Seção para adicionar frases */
.adicionar-frases {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 30px;
    margin: 40px 0;
    text-align: center;
}

.adicionar-frases h3 {
    color: #495057;
    margin-bottom: 15px;
}

.adicionar-frases p {
    color: #6c757d;
    margin-bottom: 15px;
}

.adicionar-frases ol {
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
    color: #6c757d;
}

.adicionar-frases li {
    margin-bottom: 8px;
}

/* Melhorias nos blocos de frases */
.bloco-frase {
    background: white;
    border-radius: 3px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.bloco-frase:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.frase-meta {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.frase-categoria,
.frase-subtema {
    background: #e9ecef;
    color: #495057;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.frase-subtema {
    background: #667eea;
    color: white;
}

/* Responsividade */
@media (max-width: 768px) {
    .categoria-hero h1,
    .subcategoria-hero h1 {
        font-size: 1.8rem;
    }
    
    .categoria-description,
    .subcategoria-description {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .categorias-grid,
    .subcategorias-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .categoria-card,
    .subcategoria-card {
        padding: 20px;
    }
    
    .subcategorias-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .breadcrumb {
        font-size: 12px;
        padding: 8px 0;
    }
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
    .categoria-card,
    .subcategoria-card,
    .bloco-frase,
    .subcategoria-nav-item {
        transition: none;
    }
    
    .categoria-card:hover,
    .subcategoria-card:hover,
    .bloco-frase:hover,
    .subcategoria-nav-item:hover {
        transform: none;
    }
}

/* Focus states para acessibilidade */
.categoria-card:focus-within,
.subcategoria-card:focus-within {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.subcategoria-nav-item:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}