/* Lotto 081 — stile della pagina Smorfia (si aggiunge a lotto.css). */

:root {
    --primary-gold: #d4af37;
    --accent-gold: #fcc201;
    --glass-bg: rgba(255, 255, 255, 0.07);
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* Intestazione */
.hero { text-align: center; padding: 1rem 0 2rem; animation: fadeInDown 0.8s ease-out; }
.title {
    font-size: clamp(2rem, 6vw, 3.2rem);
    font-weight: 800;
    color: var(--orange);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}
.subtitle { font-size: 1.1rem; color: rgba(255, 255, 255, 0.6); font-weight: 300; }

/* Scelta della data */
.date-selector-wrapper { position: relative; display: inline-block; margin-top: 1.5rem; }
.calendar-input {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; cursor: pointer; z-index: 2;
}
.today-date {
    display: inline-block; padding: 0.5rem 1.5rem;
    border: 1px solid var(--primary-gold); border-radius: 50px;
    color: var(--primary-gold); font-weight: 600;
    background: var(--glass-bg); transition: var(--transition);
    position: relative; z-index: 1;
}
.date-selector-wrapper:hover .today-date {
    background: rgba(212, 175, 55, 0.2);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* Numeri */
.lucky-numbers-section { padding: 2rem 0; }
.lotto-balls {
    display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap;
    min-height: 120px; align-items: flex-start;
}
.ball-container {
    text-align: center; width: 110px;
    animation: ballPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
.ball {
    width: 80px; height: 80px;
    background: radial-gradient(circle at 30% 30%, #fcc201, #b8860b);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: 700; color: #000;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), inset -5px -5px 10px rgba(0, 0, 0, 0.2);
    margin: 0 auto 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}
.ball:hover { transform: scale(1.1) rotate(15deg); box-shadow: 0 15px 30px rgba(212, 175, 55, 0.4); }
.ball-meaning { font-size: 0.8rem; color: var(--primary-gold); font-weight: 600; text-transform: uppercase; line-height: 1.3; }

/* Spunti */
.news-insights { margin-top: 3rem; }
.section-title {
    font-size: 1.8rem; font-weight: 700; color: var(--text-white);
    margin-bottom: 0.6rem; text-align: center;
}
.section-note {
    text-align: center; color: rgba(255, 255, 255, 0.45); font-size: 0.85rem;
    margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.news-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.news-card {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px; padding: 1.5rem;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}
.news-card:hover { transform: translateY(-5px); border-bottom-color: var(--primary-gold); background: rgba(255, 255, 255, 0.11); }
.news-headline { font-size: 1.05rem; font-weight: 600; margin: 0.8rem 0; color: var(--text-white); line-height: 1.5; }
.news-link { font-size: 0.8rem; color: var(--primary-gold); text-transform: uppercase; font-weight: 700; }
.news-number { font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); }

/* Agente Vincenzo */
.vincenzo-area {
    margin-top: 4rem;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px; padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.vincenzo-header {
    display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
    margin-bottom: 1.5rem; padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.vincenzo-avatar {
    width: 60px; height: 60px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-gold), var(--accent-gold));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: var(--bg-1); font-weight: 800;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}
.vincenzo-name { font-size: 1.4rem; font-weight: 700; color: var(--primary-gold); }
.vincenzo-status { font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); }
.btn-primary {
    margin-left: auto;
    background: var(--primary-gold); color: var(--bg-1);
    border: none; padding: 0.8rem 1.5rem; border-radius: 50px;
    font-family: 'Outfit', sans-serif; font-weight: 700; cursor: pointer;
    transition: var(--transition); text-transform: uppercase; letter-spacing: 1px;
}
.btn-primary:hover { background: var(--accent-gold); transform: scale(1.05); box-shadow: 0 0 20px rgba(212, 175, 55, 0.4); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; transform: none; box-shadow: none; }

.vincenzo-search-console {
    display: none;
    background: rgba(0, 0, 0, 0.3); border-radius: 10px;
    padding: 1.2rem 1.5rem; margin-bottom: 1.5rem;
    font-family: 'Courier New', Courier, monospace; font-size: 0.9rem;
}
.vincenzo-search-console.visibile { display: block; }
.search-step { margin-bottom: 0.4rem; color: rgba(255, 255, 255, 0.4); opacity: 0; transition: opacity 0.4s ease; }
.search-step.active { opacity: 1; color: var(--accent-gold); }

.vincenzo-table-wrapper { overflow-x: auto; }
.vincenzo-table { width: 100%; border-collapse: collapse; text-align: left; min-width: 560px; }
.vincenzo-table th {
    color: var(--primary-gold); padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem; text-transform: uppercase;
}
.vincenzo-table td { padding: 1.1rem 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.05); color: var(--text-white); vertical-align: middle; }
.table-empty-state { text-align: center; padding: 2rem; color: rgba(255, 255, 255, 0.45); }
.news-row-meta { color: rgba(255, 255, 255, 0.45); font-size: 0.8rem; }
.vincenzo-combo { font-weight: 700; color: var(--accent-gold); font-size: 1.1rem; white-space: nowrap; }
.vincenzo-dc { display: block; font-size: 0.7rem; font-weight: 400; color: rgba(255, 255, 255, 0.45); }
.btn-refresh {
    background: transparent; border: 1px solid var(--primary-gold); color: var(--primary-gold);
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--transition); font-size: 0.9rem;
}
.btn-refresh:hover { background: var(--primary-gold); color: var(--bg-1); }
.vincenzo-note { margin-top: 1.2rem; font-size: 0.75rem; color: rgba(255, 255, 255, 0.4); line-height: 1.6; text-align: center; }

/* Animazioni */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes ballPop {
    from { opacity: 0; transform: scale(0) rotate(-180deg); }
    to { opacity: 1; transform: scale(1) rotate(0); }
}

@media (max-width: 600px) {
    .ball { width: 60px; height: 60px; font-size: 1.5rem; }
    .ball-container { width: 90px; }
    .lotto-balls { gap: 0.8rem; }
    .vincenzo-area { padding: 1.2rem; }
    .btn-primary { margin-left: 0; width: 100%; }
}
