/* 
====================================
TOP ESCOLHAS LOTERIAS - STYLES
====================================
*/

/* Reset e Base */
.tdn-lottery-grid * {
    box-sizing: border-box;
}

/* Grid de Loterias */
.tdn-lottery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
    padding: 0;
}

/* Card Individual */
.tdn-lottery-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tdn-lottery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-color: #3b82f6;
}

/* Header do Card */
.tdn-lottery-header {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    padding: 25px;
    position: relative;
}

.tdn-lottery-flag {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2em;
}

.tdn-lottery-name {
    font-size: 1.8em;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: white;
}

.tdn-lottery-country {
    opacity: 0.9;
    font-size: 1em;
    margin: 0;
    color: white;
}

/* Body do Card */
.tdn-lottery-body {
    padding: 25px;
}

/* Jackpot */
.tdn-jackpot {
    text-align: center;
    margin-bottom: 20px;
}

.tdn-jackpot-label {
    font-size: 0.9em;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 10px 0;
}

.tdn-jackpot-value {
    font-size: 2.5em;
    font-weight: 800;
    color: #1e3a8a;
    margin: 10px 0;
}

/* Informações */
.tdn-lottery-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.tdn-info-item {
    text-align: center;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.tdn-info-label {
    font-size: 0.85em;
    color: #64748b;
    margin: 0 0 5px 0;
}

.tdn-info-value {
    font-weight: 600;
    color: #1e3a8a;
    margin: 0;
}

/* Botões */
.tdn-btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.tdn-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: white;
    width: 100%;
}

.tdn-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    color: white;
}

/* Página Single de Loteria */
.single-loteria .entry-header {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    padding: 60px 40px;
    border-radius: 15px;
    margin-bottom: 40px;
}

.single-loteria .entry-title {
    color: white;
    margin: 0;
}

.lottery-meta-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.lottery-meta-box {
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid #3b82f6;
}

.lottery-meta-box h4 {
    color: #1e3a8a;
    margin: 0 0 10px 0;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lottery-meta-box p {
    margin: 0;
    font-size: 1.5em;
    font-weight: 700;
    color: #3b82f6;
}

/* Arquivo de Loterias */
.post-type-archive-loteria .page-header {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    padding: 60px 40px;
    border-radius: 15px;
    margin-bottom: 40px;
    text-align: center;
}

.post-type-archive-loteria .page-title {
    color: white;
    margin: 0;
}

/* Filtros de Taxonomia */
.lottery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.lottery-filter-btn {
    padding: 12px 25px;
    background: white;
    border: 2px solid #3b82f6;
    border-radius: 50px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lottery-filter-btn:hover,
.lottery-filter-btn.active {
    background: #3b82f6;
    color: white;
}

/* Responsivo */
@media (max-width: 768px) {
    .tdn-lottery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tdn-lottery-name {
        font-size: 1.5em;
    }
    
    .tdn-jackpot-value {
        font-size: 2em;
    }
    
    .lottery-meta-info {
        grid-template-columns: 1fr;
    }
    
    .single-loteria .entry-header,
    .post-type-archive-loteria .page-header {
        padding: 40px 20px;
    }
}

/* Loading States */
.tdn-lottery-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

.tdn-lottery-card.loading::after {
    content: "Carregando...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.9);
    padding: 20px;
    border-radius: 10px;
}

/* Badges */
.lottery-badge {
    display: inline-block;
    padding: 5px 12px;
    background: #10b981;
    color: white;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    margin: 5px;
}

.lottery-badge.popular {
    background: #f59e0b;
}

.lottery-badge.new {
    background: #ef4444;
}

/* Seção de Destaque */
.featured-lotteries {
    background: #f8fafc;
    padding: 60px 20px;
    border-radius: 15px;
    margin: 40px 0;
}

.featured-lotteries h2 {
    text-align: center;
    color: #1e3a8a;
    font-size: 2.5em;
    margin-bottom: 40px;
}

/* Tabela de Comparação */
.lottery-comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.lottery-comparison-table th {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    padding: 15px;
    text-align: left;
}

.lottery-comparison-table td {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.lottery-comparison-table tr:hover {
    background: #f8fafc;
}
