/* =========================================================
   ESTILOS GERAIS & VARIÁVEIS DE DESIGN - EDCELL-TECH
   ========================================================= */
:root {
    --bg-gradient: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 50%, #ffffff 100%);
    --green-dark: #1b5e20;
    --green-medium: #2e7d32;
    --green-light-hover: #388e3c;
    --green-accent: #4caf50;
    --gold-color: #fbc02d;
    --text-color: #1a252c;
    --border-radius: 12px;
    --box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-color);
    min-height: 100vh;
    padding: 20px 10px;
    line-height: 1.6;
}

.app-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* =========================================================
   CABEÇALHO
   ========================================================= */
.header {
    text-align: center;
    padding: 20px 10px 10px;
}

.main-title {
    color: var(--green-dark);
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.subtitle {
    color: var(--green-medium);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 4px;
}

/* =========================================================
   CARDS GENÉRICOS
   ========================================================= */
.card {
    background: #ffffff;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(46, 125, 50, 0.15);
}

.card h2 {
    color: var(--green-dark);
    font-size: 1.35rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-desc {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px;
}

/* =========================================================
   CARD RESULTADO MEGA-SENA
   ========================================================= */
.result-card {
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f4fbf5 100%);
    border: 2px solid var(--green-medium);
}

.icon-gold {
    color: var(--gold-color);
}

.contest-info {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.badge-info, .badge-date {
    background: #e8f5e9;
    color: var(--green-dark);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid rgba(46, 125, 50, 0.2);
}

.balls-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.ball {
    width: 52px;
    height: 52px;
    background: radial-gradient(circle at 35% 35%, #2e7d32, #1b5e20);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.3rem;
    box-shadow: 0 4px 10px rgba(27, 94, 32, 0.3);
    border: 2px solid #ffffff;
    transition: transform var(--transition-speed);
}

.ball:hover {
    transform: scale(1.1);
}

/* =========================================================
   FORMULÁRIO E FILTROS DO GERADOR
   ========================================================= */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.option-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-item label {
    font-weight: 700;
    color: var(--green-dark);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1.5px solid #ccc;
    font-size: 1rem;
    outline: none;
    transition: border-color var(--transition-speed);
    background: #fafafa;
}

.form-control:focus {
    border-color: var(--green-medium);
    background: #ffffff;
}

.filters-container h3 {
    font-size: 1.05rem;
    color: var(--green-dark);
    margin-bottom: 12px;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 600;
    color: #333;
    background: #f8faf8;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: background var(--transition-speed);
}

.custom-checkbox:hover {
    background: #e8f5e9;
}

.highlight-virada {
    border-color: var(--gold-color);
    background: #fffde7;
}

/* =========================================================
   BOTÕES DE AÇÃO (VERDE ESCURO & RESPONSIVOS)
   ========================================================= */
.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.btn {
    flex: 1;
    min-width: 140px;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-speed);
}

.btn-dark-green {
    background: var(--green-dark);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(27, 94, 32, 0.25);
}

.btn-dark-green:hover {
    background: var(--green-medium);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(27, 94, 32, 0.35);
}

.btn-danger {
    background: #c62828;
    color: #ffffff;
}

.btn-danger:hover {
    background: #b71c1c;
    transform: translateY(-2px);
}

/* =========================================================
   JOGOS GERADOS
   ========================================================= */
.games-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 450px;
    overflow-y: auto;
    padding-right: 5px;
}

.game-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f9fbf9;
    border: 1px solid #e0e0e0;
    padding: 12px 16px;
    border-radius: 8px;
    gap: 15px;
}

.game-index {
    font-weight: 800;
    color: var(--green-dark);
    min-width: 65px;
}

.game-balls {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.small-ball {
    width: 34px;
    height: 34px;
    background: var(--green-medium);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.btn-del-single {
    background: transparent;
    border: none;
    color: #d32f2f;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 6px;
    transition: color var(--transition-speed);
}

.btn-del-single:hover {
    color: #9a0007;
}

.empty-msg {
    text-align: center;
    color: #777;
    padding: 20px 0;
}

/* =========================================================
   LINKS OFICIAIS
   ========================================================= */
.official-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #f1f8e9;
    color: var(--green-dark);
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid rgba(46, 125, 50, 0.2);
    transition: all var(--transition-speed);
}

.link-btn:hover {
    background: var(--green-dark);
    color: #ffffff;
}

/* =========================================================
   SEÇÃO DE COMENTÁRIOS E AVALIAÇÃO
   ========================================================= */
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 6px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 1.5rem;
    color: #ccc;
    cursor: pointer;
    transition: color var(--transition-speed);
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: var(--gold-color);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.comment-card {
    background: #f9f9f9;
    border-left: 4px solid var(--green-medium);
    padding: 14px 18px;
    border-radius: 0 8px 8px 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.comment-author {
    font-weight: 700;
    color: var(--green-dark);
}

.comment-stars {
    color: var(--gold-color);
    font-size: 0.85rem;
}

.comment-text {
    font-size: 0.95rem;
    color: #444;
}

/* =========================================================
   BOTÕES ANIMADOS REDE EDCELL-TECH
   ========================================================= */
.network-buttons-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.net-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 50px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    transition: all 0.4s ease;
}

.btn-edcell { background: linear-gradient(45deg, #1b5e20, #2e7d32); }
.btn-bora { background: linear-gradient(45deg, #0288d1, #01579b); }
.btn-tabuleiro { background: linear-gradient(45deg, #e65100, #f57c00); }

.net-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* =========================================================
   RODAPÉ
   ========================================================= */
.footer {
    text-align: center;
    padding: 20px 0;
    color: var(--green-dark);
    font-weight: 700;
    font-size: 0.95rem;
}

.hidden { display: none !important; }

/* =========================================================
   AJUSTES RESPONSIVOS (MOBILE)
   ========================================================= */
@media (max-width: 600px) {
    .main-title { font-size: 1.7rem; }
    .action-buttons { flex-direction: column; }
    .btn { width: 100%; }
    .net-btn { width: 100%; justify-content: center; }
    .ball { width: 44px; height: 44px; font-size: 1.1rem; }
}