/* ========================================
   Wagerwheel.Shop - Casino Education CSS
   ======================================== */

/* ========================================
   1. ROOT & GLOBAL STYLES
   ======================================== */

:root {
  --primary: #0a0e27;
  --secondary: #1a1f3a;
  --accent: #aa8c2c;
  --background: #f8f7f3;
  --text: #1a1a1a;
  --text-light: #4a4a4a;
  --text-lighter: #6a6a6a;
  --border-light: #e8e7e3;
  --success: #2d8659;
  --warning: #d4a574;
  --shadow-sm: 0 2px 8px rgba(10, 14, 39, 0.08);
  --shadow-md: 0 4px 16px rgba(10, 14, 39, 0.12);
  --shadow-lg: 0 8px 32px rgba(10, 14, 39, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

/* ========================================
   2. TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -1px;
}

h2 {
  font-size: 2.75rem;
  letter-spacing: -0.5px;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
  line-height: 1.8;
}

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

a:hover {
  color: var(--primary);
}

strong {
  color: var(--primary);
  font-weight: 700;
}

em {
  font-style: italic;
  color: var(--text-light);
}

/* ========================================
   3. BUTTONS & INTERACTIVE ELEMENTS
   ======================================== */

.btn {
  display: inline-block;
  padding: 12px 32px;
  border: 2px solid var(--accent);
  background-color: var(--accent);
  color: var(--primary);
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.5px;
}

.btn:hover {
  background-color: var(--primary);
  color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-secondary:hover {
  background-color: var(--accent);
  color: var(--primary);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--accent);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}

.btn-block {
  display: block;
  width: 100%;
}

button {
  border: none;
  font-family: inherit;
}

/* ========================================
   4. ICONS
   ======================================== */

.casino-icon {
  width: 48px;
  height: 48px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  fill: var(--accent);
  transition: var(--transition);
}

.casino-icon:hover {
  fill: var(--primary);
}

.hero .casino-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
}

/* ========================================
   5. HEADER & NAVIGATION
   ======================================== */

.header {
  background-color: var(--primary);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text {
  color: var(--accent);
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.tagline {
  color: var(--accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1;
  margin-top: 4px;
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--background);
  font-weight: 500;
  font-size: 0.95rem;
  padding-bottom: 8px;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-link.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.mobile-menu-toggle {
  display: none;
  background-color: transparent;
  color: var(--accent);
  font-size: 1.5rem;
  cursor: pointer;
  border: none;
  padding: 0;
}

/* ========================================
   6. HERO SECTION
   ======================================== */

.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--background);
  padding: 80px 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background-color: rgba(170, 140, 44, 0.05);
  border-radius: 50%;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  background-color: rgba(170, 140, 44, 0.03);
  border-radius: 50%;
  z-index: 0;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--background);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero p {
  color: rgba(248, 247, 243, 0.85);
  font-size: 1.3rem;
  margin-bottom: 2rem;
}

.hero .casino-icon {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   7. MAIN CONTENT & SECTIONS
   ======================================== */

.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section.alternate {
  background-color: var(--secondary);
  color: var(--background);
  padding: 80px 1rem;
  margin-left: -1rem;
  margin-right: -1rem;
}

.section.alternate h2,
.section.alternate h3,
.section.alternate h4 {
  color: var(--background);
}

.section.alternate p {
  color: rgba(248, 247, 243, 0.85);
}

.section-divider {
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 50%, var(--primary) 100%);
  margin: 60px 0;
  border: none;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
}

.section.alternate .section-subtitle {
  color: rgba(248, 247, 243, 0.8);
}

/* ========================================
   8. CARD LAYOUTS
   ======================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background-color: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-top: 4px solid var(--accent);
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid var
