/**
 * HOME MODERNA - Estilos Adicionais
 * Arquivo CSS complementar para o template HOME MODERNA
 * Pode ser enfileirado separadamente para melhor performance
 */

/* ==========================================
   HERO SECTION
   ========================================== */

.home-hero {
    background: linear-gradient(135deg, #1A363A 0%, #2A5C5E 100%);
    padding: 60px 0;
    margin-bottom: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    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 width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect fill="rgba(255,255,255,0.05)" width="50" height="50"/></svg>');
    opacity: 0.1;
}

.home-hero h1 {
    color: #fff;
    font-size: 3em;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.home-hero p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.3em;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

/* ==========================================
   SECTION HEADERS
   ========================================== */

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h2 {
    font-size: 2.2em;
    font-weight: 700;
    margin: 0;
    color: #2c3e50;
    position: relative;
    padding-bottom: 5px;
}

.section-header h2:before {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #00FF8C 0%, #4A90E2 100%);
    border-radius: 2px;
}

/* ==========================================
   BADGES
   ========================================== */

.section-badge {
    background: linear-gradient(135deg, #00FF8C 0%, #4A90E2 100%);
    color: #121212;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 255, 140, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.section-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 140, 0.5);
}

/* ==========================================
   WIDGET SECTIONS
   ========================================== */

.widget-section {
    margin-bottom: 60px;
    animation: fadeInUp 0.6s ease;
    animation-fill-mode: both;
}

.widget-section:nth-child(1) { animation-delay: 0.1s; }
.widget-section:nth-child(2) { animation-delay: 0.2s; }
.widget-section:nth-child(3) { animation-delay: 0.3s; }

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

/* ==========================================
   FEATURED SECTIONS
   ========================================== */

.featured-section {
    background: linear-gradient(135deg, #5C003A 0%, #9C006A 100%);
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.featured-section::after {
    content: "✨";
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2em;
    opacity: 0.3;
}

/* ==========================================
   STATS SECTION
   ========================================== */

.stats-section {
    background: #121212;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    margin: 40px 0;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #333;
}

.stats-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stats-section h3 {
    margin-bottom: 15px;
    color: #FFFFFF;
    font-weight: 700;
}

/* ==========================================
   AD SECTIONS
   ========================================== */

.ad-section {
    margin: 50px 0;
    text-align: center;
    padding: 20px 0;
    position: relative;
}

.ad-section::before,
.ad-section::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00FF8C, transparent);
}

.ad-section::before { top: 0; }
.ad-section::after { bottom: 0; }

/* ==========================================
   DIVIDERS
   ========================================== */

.divider-wave {
    height: 50px;
    background: linear-gradient(135deg, #00FF8C 0%, #4A90E2 100%);
    margin: 40px 0;
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 100%);
    opacity: 0.8;
}

.divider-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, #00FF8C, #4A90E2, transparent);
    margin: 40px 0;
}

/* ==========================================
   CONTENT GRID
   ========================================== */

.content-grid {
    display: grid;
    gap: 30px;
}

@media (min-width: 768px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .content-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================
   VIDEO AD
   ========================================== */

.video-ad {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.video-ad:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-ad video {
    width: 100%;
    border-radius: 10px;
    display: block;
}

/* ==========================================
   ITEMS GRID (Override theme defaults)
   ========================================== */

.item-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
}

.item-grid > * {
    padding: 10px;
}

.item {
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

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

/* ==========================================
   LOADING STATES
   ========================================== */

.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: 10px;
}

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

/* ==========================================
   SCROLL TO TOP BUTTON
   ========================================== */

.scroll-to-top {
    position: fixed;
    bottom: 50px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00FF8C 0%, #4A90E2 100%);
    color: #121212;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 140, 0.4);
    z-index: 9999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 255, 140, 0.6);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    .home-hero {
        padding: 40px 20px;
        border-radius: 10px;
    }

    .home-hero h1 {
        font-size: 2em;
    }

    .home-hero p {
        font-size: 1em;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-header h2 {
        font-size: 1.6em;
    }

    .section-badge {
        font-size: 0.8em;
        padding: 6px 15px;
    }

    .widget-section {
        margin-bottom: 40px;
    }

    .featured-section {
        padding: 25px;
    }

    .featured-section::after {
        font-size: 1.5em;
    }

    .stats-section {
        padding: 20px;
    }

    .ad-section {
        margin: 30px 0;
    }

    .scroll-to-top {
        width: 40px;
        height: 40px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .home-hero h1 {
        font-size: 1.5em;
    }

    .section-header h2 {
        font-size: 1.3em;
    }

    .widget-section {
        margin-bottom: 30px;
    }
}

/* ==========================================
   DARK MODE (Optional)
   ========================================== */

@media (prefers-color-scheme: dark) {
    .dark-mode-enabled .widget-section {
        background-color: #1a1a1a;
        color: #ffffff;
    }

    .dark-mode-enabled .section-header h2 {
        color: #ffffff;
    }

    .dark-mode-enabled .stats-section {
        background: #2a2a2a;
        color: #ffffff;
    }

    .dark-mode-enabled .featured-section {
        background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    }
}

/* ==========================================
   PRINT STYLES
   ========================================== */

@media print {
    .home-hero,
    .ad-section,
    .video-ad,
    .scroll-to-top,
    .divider-wave {
        display: none;
    }

    .widget-section {
        page-break-inside: avoid;
        margin-bottom: 30px;
    }

    .section-header {
        border-bottom: 2px solid #000;
    }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

.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;
}

.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #667eea;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .section-badge,
    .scroll-to-top {
        border: 2px solid currentColor;
    }

    .divider-wave {
        opacity: 1;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

