/**
 * Estilos para Carrosseis da Homepage
 * Versão Otimizada para Performance e UX
 */

/* Hero Section */
.home-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.home-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
    opacity: 0.1;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 0;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s;
}

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

/* Carrosseis */
.memes-carousel-section,
.horoscopes-carousel-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin: 0;
}

/* Container do Carrossel */
.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
    padding: 20px 0;
}

/* Botões de Navegação */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.95);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.carousel-btn:hover {
    background: #667eea;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev-btn {
    left: 20px;
}

.carousel-btn.next-btn {
    right: 20px;
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
    stroke: #2c3e50;
    transition: stroke 0.3s ease;
}

.carousel-btn:hover svg {
    stroke: white;
}

/* Cards dos Signos - Carrossel 1 */
.zodiac-card {
    flex: 0 0 280px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.zodiac-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.zodiac-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    height: 100%;
}

.zodiac-symbol {
    font-size: 3rem;
    text-align: center;
    padding: 20px 0 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    margin-bottom: 15px;
}

.zodiac-info {
    padding: 0 20px 20px;
}

.zodiac-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.zodiac-dates {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 15px;
}

.zodiac-element {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.element-fogo { background: #ff6b6b; color: white; }
.element-terra { background: #8b4513; color: white; }
.element-ar { background: #4ecdc4; color: white; }
.element-agua { background: #45b7d1; color: white; }

.meme-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #6c757d;
}

.count-number {
    font-weight: 700;
    color: #667eea;
}

.zodiac-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.zodiac-card:hover .zodiac-overlay {
    opacity: 1;
}

.overlay-text {
    color: white;
    font-weight: 600;
    margin-bottom: 10px;
}

.arrow-icon {
    stroke: white;
    width: 20px;
    height: 20px;
}

/* Cards de Horóscopo - Carrossel 2 */
.horoscope-card {
    flex: 0 0 320px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.horoscope-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.horoscope-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.horoscope-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 20px 10px;
    background: #f8f9fa;
}

.horoscope-symbol {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.horoscope-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.horoscope-date {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

.horoscope-content {
    padding: 0 20px 15px;
}

.horoscope-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.horoscope-excerpt {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 15px;
}

.horoscope-footer {
    padding: 0 20px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
}

.read-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: #667eea;
}

/* Indicadores do Carrossel */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.carousel-indicators .indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dee2e6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators .indicator.active {
    background: #667eea;
    transform: scale(1.2);
}

/* Seção de Destaques */
.highlights-section {
    padding: 60px 0;
    background: white;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.highlight-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: 15px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.highlight-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.highlight-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.highlight-card p {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* Botão CTA */
.horoscope-cta {
    text-align: center;
    margin-top: 40px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.cta-button svg {
    stroke: white;
    width: 20px;
    height: 20px;
}

/* Responsivo */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .carousel-container {
        margin: 0 20px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn.prev-btn {
        left: 10px;
    }
    
    .carousel-btn.next-btn {
        right: 10px;
    }
    
    .zodiac-card,
    .horoscope-card {
        flex: 0 0 250px;
    }
    
    .zodiac-info,
    .horoscope-content {
        padding: 0 15px 15px;
    }
    
    .zodiac-name,
    .horoscope-name {
        font-size: 1.1rem;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .highlight-card {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .home-hero {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .zodiac-card,
    .horoscope-card {
        flex: 0 0 200px;
    }
    
    .zodiac-symbol,
    .horoscope-symbol {
        font-size: 2rem;
    }
    
    .horoscope-symbol {
        width: 50px;
        height: 50px;
    }
}
