/**
 * Frontend Styles - Home Live Builder Editor
 * @package HomeLiveBuilderEditor
 * @author Dante Testa (https://dantetesta.com.br)
 * @since 28/11/2024
 */

/* Container */
.hlbe-home {
    width: 100%;
}

/* Rows */
.hlbe-row {
    padding: 30px 0;
}

.hlbe-row:nth-child(even) {
    background: #f8fafc;
}

.hlbe-row-inner {
    display: flex;
    gap: 30px;
    flex-wrap: nowrap;
    align-items: stretch;
}

.hlbe-column {
    min-width: 0;
    flex: 1 1 0%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.hlbe-column > .hlbe-component:last-child {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hlbe-column > .hlbe-component:last-child > * {
    flex: 1;
}

/* Título de seção não estica */
.hlbe-column > .hlbe-component:has(.hlbe-section-title) {
    flex: none;
}

/* Hero Styles */
.hlbe-hero {
    position: relative;
}

/* Hero 1 - Grande */
.hlbe-hero-1 .hlbe-hero-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 450px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hlbe-hero-1 .hlbe-hero-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.hlbe-hero-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.hlbe-hero-image {
    position: absolute;
    inset: 0;
}

.hlbe-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hlbe-hero-1 .hlbe-hero-item:hover .hlbe-hero-image img {
    transform: scale(1.05);
}

.hlbe-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 30%,
        rgba(0,0,0,0.3) 50%,
        rgba(0,0,0,0.85) 100%
    );
}

.hlbe-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hlbe-hero-cat {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 5;
}

.hlbe-hero-title {
    font-size: 1.85rem;
    font-weight: 800;
    margin: 0 0 14px;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #fff !important;
}

.hlbe-hero-excerpt {
    font-size: 1rem;
    opacity: 0.95;
    margin: 0 0 14px;
    line-height: 1.6;
    font-weight: 400;
}

.hlbe-hero-time {
    font-size: 0.8rem;
    opacity: 0.85;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Hero 2 - 1 + 2 laterais */
.hlbe-hero-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.hlbe-hero-2 .hlbe-hero-main {
    grid-row: span 2;
    min-height: 400px;
}

.hlbe-hero-2 .hlbe-hero-side {
    min-height: 190px;
}

.hlbe-hero-2 .hlbe-hero-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hlbe-hero-2 .hlbe-hero-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}

.hlbe-hero-2 .hlbe-hero-item:hover .hlbe-hero-image img {
    transform: scale(1.05);
}

.hlbe-hero-2 .hlbe-hero-overlay {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 20%,
        rgba(0,0,0,0.4) 50%,
        rgba(0,0,0,0.9) 100%
    );
}

.hlbe-hero-2 .hlbe-hero-content {
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hlbe-hero-2 .hlbe-hero-side .hlbe-hero-content {
    padding: 20px;
}

.hlbe-hero-2 .hlbe-hero-side .hlbe-hero-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}

/* Hero 3 - Grid 4 Cards */
.hlbe-hero-3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.hlbe-hero-3 .hlbe-hero-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 220px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hlbe-hero-3 .hlbe-hero-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}

.hlbe-hero-3 .hlbe-hero-item:hover .hlbe-hero-image img {
    transform: scale(1.05);
}

.hlbe-hero-3 .hlbe-hero-overlay {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 30%,
        rgba(0,0,0,0.5) 60%,
        rgba(0,0,0,0.95) 100%
    );
}

.hlbe-hero-3 .hlbe-hero-content {
    padding: 16px 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
}

.hlbe-hero-3 .hlbe-hero-cat {
    position: static !important;
    display: inline-block;
    width: fit-content;
    margin: 0;
    font-size: 10px;
    padding: 4px 10px;
}

.hlbe-hero-3 .hlbe-hero-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hlbe-hero-3 .hlbe-hero-meta {
    margin-top: 2px;
    font-size: 0.75rem;
    opacity: 0.85;
}

/* Hero 5 - Carrossel */
.hlbe-hero-5 {
    position: relative;
}

.hlbe-hero-slider {
    overflow: hidden;
    border-radius: 16px;
}

.hlbe-hero-track {
    position: relative;
}

.hlbe-hero-slide {
    display: none;
    gap: 20px;
    animation: hlbeFadeIn 0.4s ease;
}

.hlbe-hero-slide.active {
    display: flex;
}

@keyframes hlbeFadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.hlbe-hero-5 .hlbe-hero-main {
    width: 50%;
    min-height: 420px;
}

.hlbe-hero-5 .hlbe-hero-sides {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hlbe-hero-5 .hlbe-hero-side {
    flex: 1;
    min-height: 200px;
}

.hlbe-hero-5 .hlbe-hero-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.hlbe-hero-5 .hlbe-hero-item:hover .hlbe-hero-image img {
    transform: scale(1.05);
}

.hlbe-hero-5 .hlbe-hero-overlay {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 20%,
        rgba(0,0,0,0.4) 50%,
        rgba(0,0,0,0.9) 100%
    );
}

.hlbe-hero-5 .hlbe-hero-content {
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hlbe-hero-5 .hlbe-hero-side .hlbe-hero-title {
    font-size: 1.05rem;
}

/* Navegação do Slider */
.hlbe-hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
    z-index: 10;
    color: #1e293b;
}

.hlbe-hero-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.hlbe-hero-prev { left: -22px; }
.hlbe-hero-next { right: -22px; }

/* Paginação (dots) */
.hlbe-hero-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.hlbe-hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.hlbe-hero-dot:hover {
    background: #94a3b8;
}

.hlbe-hero-dot.active {
    background: #2563eb;
    transform: scale(1.2);
}

/* Mobile Slider - 1 post por slide */
.hlbe-hero-slide-mobile {
    display: none;
    animation: hlbeFadeIn 0.4s ease;
}

.hlbe-hero-slide-mobile.active {
    display: block;
}

.hlbe-hero-slide-mobile .hlbe-hero-item {
    min-height: 300px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* Responsivo Hero 5 */
@media (max-width: 768px) {
    .hlbe-hero-nav {
        width: 36px;
        height: 36px;
    }
    
    .hlbe-hero-prev { left: 10px; }
    .hlbe-hero-next { right: 10px; }
    
    .hlbe-hero-slide-mobile .hlbe-hero-title {
        font-size: 1.25rem;
    }
}

/* Cards */
.hlbe-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.04);
}

.hlbe-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.14);
}

.hlbe-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.hlbe-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f1f5f9;
}

.hlbe-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hlbe-card:hover .hlbe-card-image img {
    transform: scale(1.08);
}

.hlbe-card-cat {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.hlbe-card-content {
    padding: 18px;
}

.hlbe-card-time {
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hlbe-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.35;
    color: #1e293b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hlbe-card:hover .hlbe-card-title {
    color: #2563eb;
}

.hlbe-card-excerpt {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Loops - Grid Dinâmico */
.hlbe-loop {
    display: grid;
    gap: 20px;
}

.hlbe-loop.hlbe-grid-1 { grid-template-columns: 1fr; }
.hlbe-loop.hlbe-grid-2 { grid-template-columns: repeat(2, 1fr); }
.hlbe-loop.hlbe-grid-3 { grid-template-columns: repeat(3, 1fr); }
.hlbe-loop.hlbe-grid-4 { grid-template-columns: repeat(4, 1fr); }
.hlbe-loop.hlbe-grid-5 { grid-template-columns: repeat(5, 1fr); }
.hlbe-loop.hlbe-grid-6 { grid-template-columns: repeat(6, 1fr); }

/* Loop 2 - Horizontal (modo lista) */
.hlbe-loop-2.hlbe-grid-1 {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hlbe-card-horizontal .hlbe-card-link {
    display: flex;
    gap: 16px;
}

.hlbe-card-horizontal .hlbe-card-image {
    width: 150px;
    flex-shrink: 0;
    aspect-ratio: 4/3;
    border-radius: 8px;
}

.hlbe-card-horizontal .hlbe-card-content {
    padding: 12px 16px 12px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    min-width: 0;
    flex: 1;
}

.hlbe-card-horizontal .hlbe-card-cat {
    position: static;
    display: inline-block;
    width: fit-content;
    margin-bottom: 8px;
}

.hlbe-card-horizontal .hlbe-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hlbe-card-horizontal .hlbe-card-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Loop 3 - Compacto (modo lista) */
.hlbe-loop-3.hlbe-grid-1 {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hlbe-card-compact {
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.hlbe-card-compact .hlbe-card-link {
    display: flex;
    gap: 12px;
    align-items: center;
}

.hlbe-card-compact .hlbe-card-thumb {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.hlbe-card-compact .hlbe-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hlbe-card-compact .hlbe-card-title {
    font-size: 0.9rem;
    margin: 0 0 4px;
    -webkit-line-clamp: 2;
}

.hlbe-card-compact .hlbe-card-time {
    font-size: 0.7rem;
    margin: 0;
}

/* Section Title */
.hlbe-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.hlbe-section-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
}

.hlbe-section-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.hlbe-section-link:hover {
    text-decoration: underline;
}

.hlbe-align-center {
    justify-content: center;
    text-align: center;
}

.hlbe-align-right {
    justify-content: flex-end;
}

/* Ads */
.hlbe-ad {
    text-align: center;
}

.hlbe-ad-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Weather & Lottery - usa estilos do tema */
.hlbe-weather,
.hlbe-lottery {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Spacer */
.hlbe-spacer {
    display: block;
}

/* Component wrapper */
.hlbe-component {
    margin-bottom: 20px;
}

.hlbe-component:last-child {
    margin-bottom: 0;
}

/* Responsive */
/* ========================================
   RESPONSIVO - TABLET (1024px)
   ======================================== */
@media (max-width: 1024px) {
    .hlbe-loop.hlbe-grid-4,
    .hlbe-loop.hlbe-grid-5,
    .hlbe-loop.hlbe-grid-6 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hlbe-hero-2 {
        grid-template-columns: 1fr;
    }
    
    .hlbe-hero-2 .hlbe-hero-main {
        grid-row: auto;
    }
}

/* ========================================
   RESPONSIVO - MOBILE (768px)
   ======================================== */
@media (max-width: 768px) {
    /* Container e Rows */
    .hlbe-home {
        padding: 0 15px;
    }
    
    .hlbe-row {
        padding: 20px 0;
    }
    
    .hlbe-row-inner {
        flex-direction: column;
        gap: 20px;
    }
    
    /* COLUNAS - Todas 100% no mobile */
    .hlbe-column {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }
    
    /* GRIDS - Todos 1 coluna no mobile */
    .hlbe-loop.hlbe-grid-2,
    .hlbe-loop.hlbe-grid-3,
    .hlbe-loop.hlbe-grid-4,
    .hlbe-loop.hlbe-grid-5,
    .hlbe-loop.hlbe-grid-6,
    .hlbe-hero-3 {
        grid-template-columns: 1fr !important;
    }
    
    .hlbe-loop {
        gap: 15px;
    }
    
    /* HERO 1 - Mobile */
    .hlbe-hero-1 .hlbe-hero-item {
        min-height: 340px;
    }
    
    /* Categoria no topo esquerdo */
    .hlbe-hero-1 .hlbe-hero-cat {
        position: absolute;
        top: 15px;
        left: 15px;
        font-size: 10px;
        padding: 5px 12px;
        margin: 0;
        z-index: 5;
    }
    
    /* Conteúdo na base */
    .hlbe-hero-1 .hlbe-hero-content {
        position: absolute !important;
        bottom: 0 !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        padding: 15px !important;
        padding-top: 60px !important;
        background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 70%, transparent 100%) !important;
    }
    
    .hlbe-hero-1 .hlbe-hero-title {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
    }
    
    /* Excerpt curto - apenas 1 linha */
    .hlbe-hero-1 .hlbe-hero-excerpt {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 1 !important;
        line-clamp: 1;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        opacity: 0.9;
    }
    
    /* Oculta o tempo no mobile para economizar espaço */
    .hlbe-hero-1 .hlbe-hero-meta {
        display: none !important;
    }
    
    /* HERO 2 */
    .hlbe-hero-2 {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .hlbe-hero-2 .hlbe-hero-main,
    .hlbe-hero-2 .hlbe-hero-side {
        min-height: 200px;
    }
    
    /* HERO 4 */
    .hlbe-hero-4 {
        gap: 10px !important;
    }
    
    .hlbe-hero-4 .hlbe-hero-item {
        min-height: 150px;
    }
    
    /* CARDS */
    .hlbe-card {
        border-radius: 10px;
    }
    
    .hlbe-card-content {
        padding: 14px;
    }
    
    .hlbe-card-title {
        font-size: 0.95rem;
    }
    
    .hlbe-card-excerpt {
        font-size: 0.8rem;
    }
    
    /* CARDS HORIZONTAIS - Mantém horizontal mas menor */
    .hlbe-card-horizontal .hlbe-card-link {
        gap: 12px;
    }
    
    .hlbe-card-horizontal .hlbe-card-image {
        width: 100px;
        min-width: 100px;
    }
    
    .hlbe-card-horizontal .hlbe-card-content {
        padding: 6px 0;
    }
    
    .hlbe-card-horizontal .hlbe-card-title {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
    }
    
    /* CARDS COMPACTOS */
    .hlbe-card-compact {
        padding: 10px;
    }
    
    .hlbe-card-compact .hlbe-card-link {
        gap: 10px;
    }
    
    .hlbe-card-compact .hlbe-card-image {
        width: 70px;
        min-width: 70px;
        height: 70px;
    }
    
    .hlbe-card-compact .hlbe-card-title {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }
    
    /* SEÇÃO TÍTULO */
    .hlbe-section-title {
        font-size: 1.25rem;
        padding-bottom: 10px;
        margin-bottom: 15px;
    }
    
    /* NAVEGAÇÃO DO SLIDER */
    .hlbe-hero-nav {
        width: 36px;
        height: 36px;
    }
    
    .hlbe-hero-prev { left: 10px; }
    .hlbe-hero-next { right: 10px; }
    
    /* DOTS */
    .hlbe-hero-dots {
        gap: 6px;
        margin-top: 15px;
    }
    
    .hlbe-hero-dot {
        width: 8px;
        height: 8px;
    }
}

/* ========================================
   RESPONSIVO - MOBILE PEQUENO (480px)
   ======================================== */
@media (max-width: 480px) {
    .hlbe-home {
        padding: 0 10px;
    }
    
    .hlbe-row {
        padding: 15px 0;
    }
    
    .hlbe-row-inner {
        gap: 15px;
    }
    
    .hlbe-hero-1 .hlbe-hero-item {
        min-height: 220px;
    }
    
    .hlbe-hero-title {
        font-size: 1rem;
    }
    
    .hlbe-card-image {
        aspect-ratio: 16/9;
    }
    
    .hlbe-card-title {
        font-size: 0.9rem;
    }
    
    .hlbe-section-title {
        font-size: 1.1rem;
    }
}

/* ========================================
   WEATHER COMPACT - Previsão Compacta
   ======================================== */
.hlbe-weather-compact {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 15px 20px;
    color: #fff;
    height: 100%;
    display: flex;
    align-items: center;
}

.weather-compact-content {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.weather-compact-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.weather-compact-info {
    display: flex;
    flex-direction: column;
}

.weather-compact-temp {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.weather-compact-city {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 2px;
}

.weather-compact-right {
    margin-left: auto;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.weather-compact-date {
    font-size: 0.75rem;
    opacity: 0.8;
    text-transform: capitalize;
}

.weather-compact-condition {
    font-size: 0.9rem;
    opacity: 0.9;
}

.weather-compact-loading {
    opacity: 0.7;
}

/* Variante clara */
.hlbe-weather-compact.light {
    background: #f8fafc;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

.hlbe-weather-compact.light .weather-compact-city,
.hlbe-weather-compact.light .weather-compact-condition {
    color: #64748b;
}

/* Responsivo Weather */
@media (max-width: 480px) {
    .weather-compact-content {
        flex-wrap: wrap;
    }
    
    .weather-compact-condition {
        width: 100%;
        text-align: left;
        margin-left: 0;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid rgba(255,255,255,0.2);
    }
}

/* ========================================
   LOTTERY COMPACT - Loteria Compacta
   ======================================== */
.hlbe-lottery-compact {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    padding: 20px;
    color: #fff;
    position: relative;
}

.lottery-slide {
    display: none;
    animation: hlbeFadeIn 0.4s ease;
    min-height: 180px;
}

.lottery-slide.active {
    display: flex;
    flex-direction: column;
}

.lottery-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.lottery-icon {
    font-size: 2rem;
    line-height: 1;
}

.lottery-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.lottery-name {
    font-size: 1.1rem;
    font-weight: 700;
}

.lottery-date {
    font-size: 0.75rem;
    opacity: 0.7;
}

.lottery-acumulou {
    background: #FFD700;
    color: #1a1a2e;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.lottery-numbers {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 10px;
    flex: 1;
    align-content: center;
}

.lottery-ball {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.lottery-prize {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.9;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.lottery-prize strong {
    color: #4ade80;
}

.lottery-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.lottery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.lottery-dot:hover {
    background: rgba(255,255,255,0.5);
}

.lottery-dot.active {
    background: var(--dot-color, #fff);
    transform: scale(1.3);
}

/* Responsivo Lottery Compact */
@media (max-width: 480px) {
    .lottery-ball {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    .lottery-name {
        font-size: 0.9rem;
    }
    
    .lottery-header {
        gap: 8px;
    }
    
    .hlbe-lottery-compact {
        padding: 15px;
    }
    
    .lottery-slide {
        min-height: 160px;
    }
}

/* ========================================
   LOTTERY PREMIUM - Com Tabs e Animações
   ======================================== */
.hlbe-lottery-premium {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.lottery-premium-header {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    padding: 16px 20px;
}

.lottery-premium-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

/* Tabs */
.lottery-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 20px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.lottery-tab {
    padding: 8px 16px;
    border: none;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f3f4f6;
    color: #4b5563;
}

.lottery-tab:hover {
    background: var(--tab-color);
    color: #fff;
    transform: translateY(-2px);
}

.lottery-tab.active {
    background: var(--tab-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Panels */
.lottery-panels {
    padding: 20px;
    background: #fff;
}

.lottery-panel {
    display: none;
    animation: fadeSlideIn 0.4s ease;
}

.lottery-panel.active {
    display: block;
}

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

.lottery-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.lottery-panel-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lottery-panel-name {
    font-size: 1.3rem;
    font-weight: 800;
}

.lottery-panel-meta {
    font-size: 0.85rem;
    color: #6b7280;
}

.lottery-panel-acumulou {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    animation: bounce 1s infinite;
}

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

/* Bolas Premium */
.lottery-panel-balls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.lottery-ball-premium {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2), inset 0 2px 4px rgba(255,255,255,0.3);
    animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) both;
    transition: transform 0.2s ease;
}

.lottery-ball-premium:hover {
    transform: scale(1.15) rotate(10deg);
}

@keyframes popIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Prêmio */
.lottery-panel-prize {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.prize-label {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 4px;
}

.prize-value {
    font-size: 1.5rem;
    font-weight: 800;
}

/* Responsivo Premium */
@media (max-width: 768px) {
    .lottery-tabs {
        gap: 6px;
        padding: 12px 15px;
    }
    
    .lottery-tab {
        padding: 6px 12px;
        font-size: 0.7rem;
    }
    
    .lottery-ball-premium {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }
    
    .lottery-panel-name {
        font-size: 1.1rem;
    }
    
    .prize-value {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .lottery-ball-premium {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    .lottery-panel-balls {
        gap: 6px;
    }
}

/* ========================================
   HOVER COLORS - Herda cores do tema
   @author Dante Testa (https://dantetesta.com.br)
   @since 04/12/2024
   ======================================== */

/* Cards - Hover no título */
.hlbe-card:hover .hlbe-card-title,
.hlbe-card-link:hover .hlbe-card-title {
    color: var(--cor-link-hover, #1e40af);
}

/* Loops horizontais e compactos */
.hlbe-card-horizontal:hover .hlbe-card-title,
.hlbe-card-compact:hover .hlbe-card-title {
    color: var(--cor-link-hover, #1e40af);
}

/* Section Title - Link "Ver mais" */
.hlbe-section-link {
    color: var(--cor-primaria, #2563eb);
}

.hlbe-section-link:hover {
    color: var(--cor-link-hover, #1e40af);
}

/* Hero Carousel (hero-5) - Títulos sobre imagem ficam sempre brancos */
.hero5-card:hover .hero5-title {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* Loop Carousel - Títulos sobre imagem ficam sempre brancos */
.hlbe-loop-carousel .swiper-slide:hover .hlbe-card-title,
.loop-carousel-card:hover .loop-carousel-title {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* Loop Vertical Dual - Títulos sobre imagem ficam sempre brancos */
.lvd-card:hover .lvd-title {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* Hero 1, 2, 3 - Títulos sobre imagem ficam sempre brancos */
.hlbe-hero-item:hover .hlbe-hero-title,
.hlbe-hero-main:hover .hlbe-hero-title,
.hlbe-hero-side:hover .hlbe-hero-title {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* News Ticker - Links */
.news-ticker-item:hover {
    color: var(--cor-link-hover, #1e40af);
}

/* Authors Carousel - Nome do autor */
.author-card:hover .author-name {
    color: var(--cor-link-hover, #1e40af);
}

/* Dots ativos usam cor primária */
.hlbe-hero-dot.active,
.hero5-dot.active,
.lottery-dot.active {
    background: var(--cor-primaria, #2563eb);
}
