/* Q7 Casino – Main Stylesheet
   Mobile-first, no frameworks, system fonts */

/* ===================== RESET & BASE ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:        #0a0a1a;
  --bg-card:   #12122a;
  --bg-nav:    #07071a;
  --gold:      #FFD700;
  --gold-dark: #c9a227;
  --gold-dim:  rgba(255, 215, 0, 0.15);
  --text:      #e0e0e0;
  --text-muted:#9999bb;
  --border:    rgba(255, 215, 0, 0.2);
  --radius:    8px;
  --font:      system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  color: var(--gold-dark);
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul { list-style: none; }

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(1.8rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }

.gold-gradient {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 60%, #fff8dc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===================== LAYOUT ===================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

main {
  flex: 1;
}

section {
  padding: 3rem 0;
}

/* ===================== NAVIGATION ===================== */
.site-nav {
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-decoration: none;
}

.nav-logo span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 0.75rem 1.5rem;
    border-bottom: none;
    border-left: 3px solid transparent;
  }

  .nav-links a:hover,
  .nav-links a.active {
    border-left-color: var(--gold);
    border-bottom-color: transparent;
    background: var(--gold-dim);
  }
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0a0a1a;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.35);
  color: #0a0a1a;
  text-decoration: none;
}

.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn-outline:hover {
  background: var(--gold-dim);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--gold);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
}

/* ===================== CARDS ===================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.12);
  border-color: rgba(255, 215, 0, 0.45);
}

/* ===================== HERO ===================== */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  background: radial-gradient(ellipse at top, #1a1a3a 0%, var(--bg) 70%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFD700' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content { position: relative; }

.hero h1 {
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2rem;
}

.hero-badge {
  display: inline-block;
  background: var(--gold-dim);
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

/* ===================== FEATURE CARDS ===================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.feature-card {
  text-align: center;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

.feature-card h3 {
  color: var(--gold);
  margin-bottom: 0.5rem;
}

/* ===================== BONUS SECTION ===================== */
.bonus-section {
  background: linear-gradient(135deg, #12122a 0%, #1a1535 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.bonus-amount {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  line-height: 1;
  margin: 0.5rem 0 1rem;
}

.bonus-section p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.bonus-terms {
  font-size: 0.75rem !important;
  color: #666699 !important;
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}

/* ===================== SECTION HEADERS ===================== */
.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
}

.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* ===================== GAMES PAGE ===================== */
.category-section {
  margin-bottom: 3rem;
}

.category-title {
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.5);
}

.game-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #1a1535 0%, #0d0d2b 100%);
  color: var(--gold);
  text-shadow: 0 0 20px rgba(255,215,0,0.4);
  user-select: none;
  position: relative;
  overflow: hidden;
}

.game-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.5) 100%);
}

.game-info {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.game-info h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.game-info p {
  font-size: 0.825rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 0.75rem;
}

/* ===================== CONTACT PAGE ===================== */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.support-card {
  text-align: center;
}

.support-icon {
  font-size: 2rem;
  margin-bottom: 0.6rem;
  display: block;
}

.support-card h3 {
  color: var(--gold);
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.support-card p,
.support-card a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ===================== CONTACT FORM ===================== */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  padding: 0.85rem;
  font-size: 1rem;
}

/* ===================== RESPONSIBLE GAMBLING ===================== */
.resp-section {
  background: linear-gradient(135deg, #0d0d20, #12122a);
  border: 1px solid rgba(255,100,100,0.25);
  border-left: 4px solid #ff6b6b;
  border-radius: var(--radius);
  padding: 2rem;
}

.resp-section h2 {
  color: #ff9a9a;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.resp-section p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.resp-section a {
  color: #ff9a9a;
}

.resp-section a:hover {
  color: #ffb3b3;
}

.resp-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.resp-links a {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(255,100,100,0.35);
  border-radius: 50px;
  font-size: 0.825rem;
  font-weight: 600;
  color: #ff9a9a;
  transition: background var(--transition);
  text-decoration: none;
}

.resp-links a:hover {
  background: rgba(255,100,100,0.1);
  text-decoration: none;
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--bg-nav);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr 2fr;
    align-items: start;
  }
}

.footer-brand .nav-logo {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: #666699;
  line-height: 1.7;
  border-left: 2px solid rgba(255,100,100,0.3);
  padding-left: 1rem;
}

.footer-disclaimer strong {
  color: #ff9a9a;
}

.footer-bottom {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===================== PAGE HEADER ===================== */
.page-header {
  padding: 3rem 0 2rem;
  text-align: center;
  background: radial-gradient(ellipse at top, #1a1a3a 0%, var(--bg) 70%);
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ===================== UTILITIES ===================== */
.text-center { text-align: center; }
.text-gold   { color: var(--gold); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

/* ===================== RESPONSIVE ===================== */
@media (min-width: 480px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  section { padding: 4rem 0; }
  .hero   { padding: 6rem 0 5rem; }
}

@media (max-width: 479px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 359px) {
  .games-grid {
    grid-template-columns: 1fr;
  }
}
