/*
Theme Name: SuperEnalotto AI
Theme URI: https://www.superenalottoai.it
Author: YourNetSolutions
Author URI: https://yournet.solutions
Description: Official theme for SuperEnalotto AI - AI-powered lucky number generator. Dark luxury gold aesthetic with video hero support.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: superenalotto-ai
Tags: dark, custom-background, custom-logo, custom-menu, full-width-template, lottery, ai
*/

:root {
  --gold: #D4A017;
  --gold-light: #F5C842;
  --gold-dark: #9A7209;
  --deep: #0A0A14;
  --deep2: #12121F;
  --deep3: #1A1A2E;
  --text: #E8E0D0;
  --text-dim: #8A8070;
  --ball-size: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--deep);
  color: var(--text);
  font-family: 'Raleway', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background: radial-gradient(1px 1px at 20% 30%, rgba(212,160,23,0.4) 0%, transparent 100%),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(26,26,46,0.8) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}

body::after {
  content: '';
  position: fixed; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,160,23,0.08) 0%, transparent 70%);
  top: -200px; left: 50%; transform: translateX(-50%);
  animation: orb 8s ease-in-out infinite; pointer-events: none; z-index: 0;
}

@keyframes orb { 0%,100%{transform:translateX(-50%) scale(1);opacity:.6} 50%{transform:translateX(-50%) scale(1.2);opacity:1} }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }
@keyframes spin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
@keyframes bounce { 0%,100%{transform:scale(.6);opacity:.4} 50%{transform:scale(1);opacity:1} }
@keyframes fadeIn { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }

/* === NAVIGATION === */
#site-navigation {
  position: relative;
  z-index: 100;
  background: rgba(10,10,20,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212,160,23,0.15);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-title a {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 900;
  color: var(--gold-light);
  text-decoration: none;
  letter-spacing: 2px;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-menu li a:hover { color: var(--gold); }

/* === VIDEO HERO === */
.video-hero {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-hero video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
}

.video-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,20,0.45) 0%, rgba(10,10,20,0.55) 60%, rgba(10,10,20,0.92) 100%);
  z-index: 2;
}

.video-content {
  position: relative; z-index: 3;
  text-align: center; padding: 20px;
}

.logo-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(212,160,23,0.15); border: 1px solid rgba(212,160,23,0.4);
  border-radius: 50px; padding: 6px 18px; margin-bottom: 28px;
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); backdrop-filter: blur(4px);
}

.logo-badge .dot {
  width: 6px; height: 6px; background: var(--gold-light);
  border-radius: 50%; animation: blink 2s ease-in-out infinite;
}

h1.site-hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(36px,6vw,72px); font-weight: 900;
  letter-spacing: 2px; line-height: 1;
  background: linear-gradient(135deg,var(--gold-dark) 0%,var(--gold-light) 50%,var(--gold) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 8px;
}

h1.site-hero-title span {
  background: linear-gradient(135deg,#fff 0%,var(--gold-light) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.site-hero-subtitle {
  font-size: 14px; letter-spacing: 1.5px; color: var(--text-dim);
  font-weight: 300; text-transform: uppercase;
}

/* === MAIN CONTENT === */
.site-main {
  position: relative; z-index: 10;
  max-width: 900px; margin: 0 auto; padding: 60px 20px;
}

/* === JACKPOT BANNER === */
.jackpot-banner {
  background: linear-gradient(135deg,rgba(212,160,23,.08) 0%,rgba(192,57,43,.08) 100%);
  border: 1px solid rgba(212,160,23,.25); border-radius: 16px;
  padding: 24px 32px; display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 16px;
}

.jackpot-label { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 4px; }
.jackpot-amount { font-family: 'Cinzel',serif; font-size: 36px; font-weight: 900; color: var(--gold-light); }
.next-draw { text-align: right; }
.next-draw .draw-date { font-family: 'Cinzel',serif; font-size: 18px; color: var(--text); }

/* === INTRO TEXT === */
.intro-text {
  background: linear-gradient(135deg,rgba(212,160,23,.06) 0%,rgba(26,26,46,.4) 100%);
  border: 1px solid rgba(212,160,23,.15); border-radius: 16px;
  padding: 28px 36px; margin-bottom: 50px; text-align: center; line-height: 1.8; font-size: 15px;
}
.intro-text strong { color: var(--gold-light); font-weight: 600; }
.intro-cta { margin-top: 14px; font-size: 15px; color: var(--text-dim); font-weight: 300; }
.intro-cta span { color: var(--gold); font-weight: 600; }

/* === CONTROLS === */
.controls { text-align: center; margin-bottom: 50px; }
.controls h2 { font-family: 'Cinzel',serif; font-size: 22px; color: var(--gold); margin-bottom: 8px; letter-spacing: 2px; }
.controls p { color: var(--text-dim); font-size: 14px; margin-bottom: 28px; line-height: 1.6; }

.btn-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.mode-btn { padding: 10px 24px; border-radius: 50px; border: 1px solid rgba(212,160,23,.4); background: transparent; color: var(--text-dim); font-family: 'Raleway',sans-serif; font-size: 13px; letter-spacing: 1px; cursor: pointer; transition: all .3s; }
.mode-btn.active,.mode-btn:hover { background: rgba(212,160,23,.15); border-color: var(--gold); color: var(--gold); }

.qty-selector { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 28px; }
.qty-label { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); }
.qty-controls { display: flex; align-items: center; border: 1px solid rgba(212,160,23,.35); border-radius: 50px; overflow: hidden; }
.qty-btn { width: 38px; height: 38px; background: transparent; border: none; color: var(--gold); font-size: 20px; cursor: pointer; transition: background .2s; display: flex; align-items: center; justify-content: center; }
.qty-btn:hover { background: rgba(212,160,23,.12); }
.qty-display { min-width: 44px; text-align: center; font-family: 'Cinzel',serif; font-size: 18px; font-weight: 700; color: var(--gold-light); }

.generate-btn { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 18px 48px; border-radius: 50px; border: none; background: linear-gradient(135deg,var(--gold-dark),var(--gold),var(--gold-light)); color: #0A0A14; font-family: 'Cinzel',serif; font-size: 16px; font-weight: 600; letter-spacing: 2px; cursor: pointer; transition: all .3s; box-shadow: 0 0 40px rgba(212,160,23,.3); }
.generate-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 60px rgba(212,160,23,.5); }
.generate-btn:active { transform: translateY(0); }
.generate-btn .icon { font-size: 20px; animation: spin 10s linear infinite; }

/* === RESULTS === */
.results-wrapper { min-height: 60px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.placeholder-text { color: var(--text-dim); font-size: 14px; text-align: center; letter-spacing: 1px; }

/* === TICKET === */
.ticket { width: 100%; background: linear-gradient(145deg,var(--deep2),var(--deep3)); border: 1px solid rgba(212,160,23,.3); border-radius: 20px; padding: 36px; position: relative; overflow: hidden; margin-bottom: 24px; }
.ticket::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg,transparent,var(--gold),transparent); }
.ticket-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.ticket-title { font-family: 'Cinzel',serif; font-size: 13px; letter-spacing: 3px; color: var(--gold); text-transform: uppercase; }
.ticket-num { font-size: 12px; color: var(--text-dim); letter-spacing: 1px; }

.balls-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.ball { width: var(--ball-size); height: var(--ball-size); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Cinzel',serif; font-size: 22px; font-weight: 900; position: relative; transform: scale(0); transition: transform .4s cubic-bezier(.175,.885,.32,1.275); }
.ball.show { transform: scale(1); }
.ball::before { content: ''; position: absolute; width: 30%; height: 25%; background: rgba(255,255,255,.4); border-radius: 50%; top: 18%; left: 20%; filter: blur(2px); }
.ball.main { background: radial-gradient(circle at 35% 35%,#F5C842,#9A7209); color: #0A0A14; box-shadow: 0 4px 20px rgba(212,160,23,.4); }
.ball.jolly { background: radial-gradient(circle at 35% 35%,#E74C3C,#8E1A12); color: white; box-shadow: 0 4px 20px rgba(192,57,43,.5); }
.ball.superstar { background: radial-gradient(circle at 35% 35%,#9B59B6,#5D1A8C); color: white; box-shadow: 0 4px 20px rgba(155,89,182,.5); }

.ball-label { text-align: center; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; }
.ball-label.main-label { color: var(--gold); }
.ball-label.jolly-label { color: #E74C3C; }
.ball-label.star-label { color: #9B59B6; }

.special-row { display: flex; gap: 40px; justify-content: center; padding-top: 24px; border-top: 1px solid rgba(212,160,23,.15); }
.special-ball-group { display: flex; flex-direction: column; align-items: center; gap: 10px; }

.ticket-footer { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(212,160,23,.1); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.ai-tag { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-dim); letter-spacing: 1px; }
.ai-tag .pulse { width: 8px; height: 8px; background: var(--gold); border-radius: 50%; animation: blink 1.5s ease-in-out infinite; }
.copy-btn { padding: 8px 20px; border-radius: 50px; border: 1px solid rgba(212,160,23,.3); background: transparent; color: var(--gold); font-family: 'Raleway',sans-serif; font-size: 12px; letter-spacing: 1px; cursor: pointer; transition: all .2s; }
.copy-btn:hover { background: rgba(212,160,23,.1); }

/* === MULTI TICKETS === */
.multi-tickets { display: grid; grid-template-columns: repeat(auto-fill,minmax(360px,1fr)); gap: 20px; margin-bottom: 24px; }
.ticket-mini { background: linear-gradient(145deg,var(--deep2),var(--deep3)); border: 1px solid rgba(212,160,23,.25); border-radius: 16px; padding: 20px 22px; position: relative; overflow: hidden; opacity: 0; transform: translateY(16px); transition: opacity .4s,transform .4s; }
.ticket-mini::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg,transparent,var(--gold),transparent); }
.ticket-mini.show { opacity: 1; transform: translateY(0); }
.ticket-mini-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.ticket-mini-num { font-family: 'Cinzel',serif; font-size: 12px; color: var(--gold); letter-spacing: 2px; }
.ticket-mini-mode { font-size: 10px; color: var(--text-dim); letter-spacing: 1px; }
.mini-balls-row { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 12px; }
.mini-ball-lg { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Cinzel',serif; font-size: 14px; font-weight: 900; position: relative; transform: scale(0); transition: transform .35s cubic-bezier(.175,.885,.32,1.275); }
.mini-ball-lg.show { transform: scale(1); }
.mini-ball-lg::before { content: ''; position: absolute; width: 28%; height: 22%; background: rgba(255,255,255,.35); border-radius: 50%; top: 18%; left: 20%; filter: blur(1px); }
.mini-ball-lg.main { background: radial-gradient(circle at 35% 35%,#F5C842,#9A7209); color: #0A0A14; box-shadow: 0 3px 12px rgba(212,160,23,.35); }
.mini-ball-lg.jolly { background: radial-gradient(circle at 35% 35%,#E74C3C,#8E1A12); color: white; }
.mini-ball-lg.superstar { background: radial-gradient(circle at 35% 35%,#9B59B6,#5D1A8C); color: white; }
.ticket-mini-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid rgba(212,160,23,.1); }
.special-inline { display: flex; gap: 12px; align-items: center; }
.special-inline-item { display: flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: 1px; color: var(--text-dim); text-transform: uppercase; }
.copy-mini-btn { padding: 5px 14px; border-radius: 50px; border: 1px solid rgba(212,160,23,.25); background: transparent; color: var(--gold); font-size: 11px; letter-spacing: 1px; cursor: pointer; transition: all .2s; }
.copy-mini-btn:hover { background: rgba(212,160,23,.1); }

.copy-all-wrap { text-align: center; margin-bottom: 24px; }
.copy-all-btn { padding: 12px 32px; border-radius: 50px; border: 1px solid rgba(212,160,23,.4); background: rgba(212,160,23,.07); color: var(--gold); font-family: 'Raleway',sans-serif; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; transition: all .2s; }
.copy-all-btn:hover { background: rgba(212,160,23,.15); }

/* === INFO GRID === */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 20px; margin-top: 60px; }
.info-card { background: rgba(255,255,255,.02); border: 1px solid rgba(212,160,23,.12); border-radius: 12px; padding: 24px; text-align: center; }
.info-card .icon2 { font-size: 28px; margin-bottom: 12px; }
.info-card h4 { font-family: 'Cinzel',serif; font-size: 13px; color: var(--gold); letter-spacing: 1px; margin-bottom: 8px; }
.info-card p { font-size: 13px; color: var(--text-dim); line-height: 1.5; }

/* === HISTORY === */
.history-section { margin-top: 60px; }
.history-section h3 { font-family: 'Cinzel',serif; font-size: 16px; letter-spacing: 3px; color: var(--gold); text-transform: uppercase; margin-bottom: 20px; text-align: center; }
.history-list { display: flex; flex-direction: column; gap: 12px; }
.history-item { background: rgba(255,255,255,.02); border: 1px solid rgba(212,160,23,.1); border-radius: 12px; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; animation: fadeIn .3s ease forwards; opacity: 0; }
.history-mode { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); min-width: 80px; }
.history-balls { display: flex; gap: 8px; flex-wrap: wrap; }
.history-time { font-size: 11px; color: var(--text-dim); }
.mini-ball { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Cinzel',serif; font-size: 12px; font-weight: 700; }
.mini-ball.main { background: radial-gradient(circle at 35% 35%,#F5C842,#9A7209); color: #0A0A14; }
.mini-ball.jolly { background: radial-gradient(circle at 35% 35%,#E74C3C,#8E1A12); color: white; }
.mini-ball.superstar { background: radial-gradient(circle at 35% 35%,#9B59B6,#5D1A8C); color: white; }

/* === COFFEE / PAYPAL === */
.coffee-section { text-align: center; margin-top: 60px; padding: 32px; background: linear-gradient(135deg,rgba(212,160,23,.06) 0%,rgba(155,89,182,.05) 100%); border: 1px solid rgba(212,160,23,.15); border-radius: 20px; position: relative; overflow: hidden; }
.coffee-title { font-family: 'Cinzel',serif; font-size: 18px; color: var(--gold); letter-spacing: 2px; margin-bottom: 10px; }
.coffee-subtitle { font-size: 14px; color: var(--text-dim); margin-bottom: 24px; line-height: 1.6; }
.coffee-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 36px; border-radius: 50px; border: none; background: linear-gradient(135deg,#003087,#009cde); color: white; font-family: 'Raleway',sans-serif; font-size: 15px; font-weight: 600; letter-spacing: 1px; cursor: pointer; transition: all .3s; box-shadow: 0 4px 24px rgba(0,156,222,.35); }
.coffee-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 36px rgba(0,156,222,.5); }
.coffee-note { margin-top: 14px; font-size: 11px; color: var(--text-dim); letter-spacing: 1px; }

/* === LOADING === */
.loading-balls { display: flex; gap: 8px; justify-content: center; padding: 40px 0; }
.loading-ball { width: 14px; height: 14px; border-radius: 50%; background: var(--gold); animation: bounce .6s ease-in-out infinite; }
.loading-ball:nth-child(2) { animation-delay: .1s; background: #E74C3C; }
.loading-ball:nth-child(3) { animation-delay: .2s; background: #9B59B6; }

/* === FOOTER === */
.site-footer { position: relative; z-index: 10; text-align: center; padding: 40px 20px; border-top: 1px solid rgba(212,160,23,.1); color: var(--text-dim); font-size: 12px; letter-spacing: 1px; }
.site-footer a { color: var(--gold); text-decoration: none; }
.footer-powered { margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 12px; letter-spacing: 1px; }
.footer-powered strong { color: var(--gold); }
.footer-sep { color: var(--text-dim); }
.footer-powered a { color: var(--gold-light); }

/* === WORDPRESS STANDARD === */
.wp-block-image img { max-width: 100%; }
.aligncenter { text-align: center; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute !important; }

@media (max-width: 768px) {
  #site-navigation { padding: 0 20px; }
  .nav-menu { gap: 16px; }
  .nav-menu li a { font-size: 11px; }
}

@media (max-width: 600px) {
  :root { --ball-size: 54px; }
  .jackpot-amount { font-size: 28px; }
  .balls-row { gap: 8px; }
  .ball { font-size: 17px; }
  .multi-tickets { grid-template-columns: 1fr; }
  .video-hero { height: 380px; }
  #site-navigation { flex-wrap: wrap; height: auto; padding: 12px 20px; }
  .nav-menu { flex-wrap: wrap; gap: 12px; }
}
