/* ===================================================================
   MELHORIAS DE PROFISSIONALISMO E VIDA VISUAL
   =================================================================== */

/* === 1. ELEMENTOS DECORATIVOS DE FUNDO === */

/* Formas geométricas decorativas na hero */
.hero-section.hero-background::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(147, 197, 253, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Elemento decorativo na seção de categorias */
.featured-categories-section {
    position: relative;
    overflow: hidden;
}

.featured-categories-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.03) 0%, transparent 100%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

/* Elemento decorativo na seção de produtos */
.featured-products-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

/* === 2. MELHORIAS NOS CARDS === */

/* Cards de categorias com mais profundidade */
.featured-categories-section .category-item {
    box-shadow: 0 4px 20px rgba(30, 64, 175, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(30, 64, 175, 0.05);
}

.featured-categories-section .category-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(30, 64, 175, 0.15);
    border-color: rgba(30, 64, 175, 0.1);
}

/* Cards de produtos com efeito glassmorphism */
.featured-products-section ul.products li.product {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 10;
}

.featured-products-section ul.products li.product:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 1);
}

/* === 3. MELHORIAS NOS BOTÕES === */

/* Botões com mais vida */
.hero-section.hero-background .hero-buttons .btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-section.hero-background .hero-buttons .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-section.hero-background .hero-buttons .btn:hover::before {
    width: 300px;
    height: 300px;
}

.hero-section.hero-background .hero-buttons .btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* === 4. TÍTULOS COM MAIS DESTAQUE === */

/* Títulos das seções com gradiente sutil */
.section-title {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.featured-products-section .section-title {
    background: linear-gradient(135deg, #ffffff 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === 5. ANIMAÇÕES DE ENTRADA === */

/* Fade in suave para seções */
.featured-categories-section,
.featured-products-section,
.latest-posts-section {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === 6. MELHORIAS NA TIPOGRAFIA === */

/* Subtítulos com mais contraste */
.section-subtitle {
    font-weight: 500;
    letter-spacing: 0.3px;
    line-height: 1.8;
}

/* === 7. BADGES E ELEMENTOS DE DESTAQUE === */

/* Badge "Novo" ou "Destaque" para produtos */
.featured-products-section ul.products li.product::before {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    z-index: 10;
    animation: pulse 2s infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

/* === 8. LINHAS DECORATIVAS SUTIS === */

/* Linha decorativa antes dos títulos - REMOVIDA */
.section-title::before {
    display: none !important;
}

.featured-products-section .section-title::before {
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.5) 50%, transparent 100%);
}

/* === 9. HOVER EFFECTS NOS LINKS === */

/* Links com underline animado */
.featured-categories-section .btn-category-link,
.latest-posts-section .btn-read-more {
    position: relative;
    overflow: hidden;
}

.featured-categories-section .btn-category-link::after,
.latest-posts-section .btn-read-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--bs-primary);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.featured-categories-section .btn-category-link:hover::after,
.latest-posts-section .btn-read-more:hover::after {
    transform: translateX(0);
}

/* === 10. ESPAÇAMENTOS MELHORADOS === */

/* Mais respiração entre seções */
.featured-categories-section,
.latest-posts-section {
    padding: 120px 0;
}

.featured-products-section {
    padding: 120px 0;
}

/* === 11. SCROLLBAR PERSONALIZADA === */

/* Scrollbar moderna */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--bs-primary) 0%, var(--bs-secondary) 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bs-primary-dark);
}

/* === 12. MICRO-INTERAÇÕES === */

/* Efeito de brilho nos cards ao passar o mouse */
.featured-categories-section .category-item::after,
.featured-products-section ul.products li.product::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
    pointer-events: none;
}

.featured-categories-section .category-item:hover::after,
.featured-products-section ul.products li.product:hover::after {
    opacity: 1;
    animation: shine 1.5s ease-in-out;
}

@keyframes shine {
    0% {
        left: -50%;
    }
    100% {
        left: 150%;
    }
}

/* === 13. RESPONSIVIDADE === */

@media (max-width: 768px) {
    .featured-categories-section,
    .featured-products-section,
    .latest-posts-section {
        padding: 80px 0;
    }
    
    .hero-section.hero-background::after {
        width: 200px;
        height: 200px;
    }
}
