/* BK8 Betting Academy - Mobile-First CSS */
/* Theme: Educational Blue/Cyan - Professional Learning Focus */

:root {
  --primary: #0a1a2e;
  --primary-light: #122a42;
  --primary-dark: #051220;
  --accent: #37a0d4;
  --accent-hover: #4db8ec;
  --accent-glow: rgba(55, 160, 212, 0.25);
  --cyan: #00d4ff;
  --white: #ffffff;
  --bg: #06121e;
  --bg-card: #0a1a2e;
  --text-light: #8ab4c8;
  --border: #1e3a52;
  --success: #00c853;
  --danger: #ff5252;
  --warning: #ffd740;
  --info: #37a0d4;
  --edu-gradient: linear-gradient(135deg, #0a1a2e 0%, #122a42 50%, #0a2438 100%);
  --book-shadow: 0 4px 6px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

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

/* Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: var(--primary);
  padding: 8px 16px;
  z-index: 1000;
}

.skip-link:focus {
  top: 0;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.header {
  background: var(--primary);
  color: var(--white);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 2px 10px rgba(55, 160, 212, 0.15);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
}

.logo-img {
  height: 34px;
  width: auto;
}

.logo span {
  color: var(--accent);
  font-weight: 700;
}

.nav-toggle {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 4px;
}

.nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--primary);
  border-top: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav.active {
  display: block;
}

.nav-list {
  list-style: none;
  padding: 8px 16px;
}

.nav-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.nav-list a {
  color: var(--white);
  text-decoration: none;
  display: block;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.nav-list a:hover {
  color: var(--accent);
}

/* Hero Section - Book/Education Style */
.hero {
  background: var(--edu-gradient);
  padding: 48px 16px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, var(--accent-glow) 100%);
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.hero h1 {
  font-size: 1.75rem;
  margin-bottom: 16px;
  line-height: 1.3;
  color: var(--white);
  font-weight: 600;
}

.hero h1 span {
  color: var(--accent);
}

.hero-subtitle {
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-subtitle::before {
  content: '📚';
}

.hero p {
  color: var(--text-light);
  font-size: 1rem;
  max-width: 600px;
  margin-bottom: 20px;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.hero-feature {
  background: rgba(55, 160, 212, 0.15);
  border: 1px solid var(--accent);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Breadcrumb */
.breadcrumb {
  background: var(--primary-light);
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
}

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

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 8px;
}

/* Section Styling */
.section {
  padding: 40px 0;
}

.section-title {
  font-size: 1.35rem;
  margin-bottom: 24px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.section-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--accent);
}

.section-subtitle {
  color: var(--text-light);
  margin-bottom: 24px;
  max-width: 700px;
  line-height: 1.7;
}

/* Course/Guide Cards - Book Style */
.course-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.course-card {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border);
  box-shadow: var(--book-shadow);
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--accent-glow);
  border-color: var(--accent);
}

.course-header {
  background: linear-gradient(135deg, var(--primary-light) 0%, #0d2a40 100%);
  padding: 20px;
  position: relative;
  border-bottom: 3px solid var(--accent);
}

.course-level {
  display: inline-block;
  background: rgba(55, 160, 212, 0.2);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.course-level.beginner {
  background: rgba(0, 200, 83, 0.15);
  border-color: var(--success);
  color: var(--success);
}

.course-level.intermediate {
  background: rgba(255, 215, 64, 0.15);
  border-color: var(--warning);
  color: var(--warning);
}

.course-level.advanced {
  background: rgba(255, 82, 82, 0.15);
  border-color: var(--danger);
  color: var(--danger);
}

.course-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.course-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

.course-title a {
  color: inherit;
  text-decoration: none;
}

.course-title a:hover {
  color: var(--accent);
}

.course-body {
  padding: 20px;
}

.course-description {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-light);
}

.course-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.course-meta-icon {
  color: var(--accent);
}

/* Topic Cards */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.topic-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  color: var(--white);
  transition: all 0.3s ease;
}

.topic-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.topic-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.topic-name {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 4px;
}

.topic-count {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* Learning Path */
.learning-path {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.path-step {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  position: relative;
}

.path-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 20px;
  top: 60px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.path-number {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.path-content {
  flex: 1;
}

.path-title {
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--white);
}

.path-desc {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* Article Styles */
.article {
  max-width: 800px;
  margin: 0 auto;
}

.article h1 {
  font-size: 1.75rem;
  line-height: 1.3;
  margin-bottom: 16px;
}

.article h2 {
  font-size: 1.375rem;
  margin: 32px 0 16px;
  color: var(--accent);
}

.article h3 {
  font-size: 1.125rem;
  margin: 24px 0 12px;
  color: var(--white);
}

.article p {
  margin-bottom: 16px;
  color: var(--text-light);
}

.article ul, .article ol {
  margin-bottom: 16px;
  padding-left: 24px;
  color: var(--text-light);
}

.article li {
  margin-bottom: 8px;
}

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

.article a:hover {
  text-decoration: underline;
}

.article-meta {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* Definition Box */
.definition-box {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 20px;
  margin: 24px 0;
}

.definition-term {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.definition-text {
  color: var(--text-light);
  margin: 0;
}

/* Example Box */
.example-box {
  background: rgba(23, 162, 184, 0.1);
  border-left: 4px solid var(--info);
  padding: 16px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
}

.example-box h4 {
  color: var(--info);
  margin-bottom: 8px;
}

.example-box p {
  margin: 0;
  color: var(--text-light);
}

/* Tip Box */
.tip-box {
  background: rgba(212, 175, 55, 0.1);
  border-left: 4px solid var(--accent);
  padding: 16px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
}

.tip-box h4 {
  color: var(--accent);
  margin-bottom: 8px;
}

.tip-box p {
  margin: 0;
  color: var(--text-light);
}

/* Warning Box */
.warning-box {
  background: rgba(220, 53, 69, 0.1);
  border-left: 4px solid var(--danger);
  padding: 16px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
}

.warning-box h4 {
  color: var(--danger);
  margin-bottom: 8px;
}

.warning-box p {
  margin: 0;
  color: var(--text-light);
}

/* Quiz Box */
.quiz-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin: 24px 0;
}

.quiz-question {
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--white);
}

.quiz-options {
  list-style: none;
  padding: 0;
}

.quiz-option {
  background: var(--primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-light);
}

.quiz-option:hover {
  border-color: var(--accent);
  color: var(--white);
}

/* FAQ Section */
.faq-section {
  margin: 32px 0;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 16px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: var(--primary-light);
}

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--accent);
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  display: none;
  padding: 0 16px 16px;
  color: var(--text-light);
}

.faq-item.active .faq-answer {
  display: block;
}

/* Responsible Gambling Notice */
.responsible-notice {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid var(--danger);
  border-radius: 8px;
  padding: 16px;
  margin: 24px 0;
  font-size: 0.875rem;
  color: var(--text-light);
}

.responsible-notice strong {
  color: var(--danger);
  display: block;
  margin-bottom: 8px;
}

.responsible-notice a {
  color: var(--accent);
}

/* CTA Button */
.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent) 0%, #e5c547 100%);
  color: var(--primary);
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  text-align: center;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
}

/* Footer */
.footer {
  background: var(--primary);
  padding: 40px 0 20px;
  margin-top: 40px;
  border-top: 1px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-section h4 {
  color: var(--accent);
  margin-bottom: 12px;
  font-size: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 8px;
}

.footer-section a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.875rem;
}

.footer-disclaimer {
  margin-top: 12px;
  font-size: 0.75rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Tablet Styles */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav {
    display: block;
    position: static;
    background: none;
    border: none;
  }

  .nav-list {
    display: flex;
    gap: 24px;
    padding: 0;
  }

  .nav-list li {
    padding: 0;
    border: none;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .section {
    padding: 48px 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .topic-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop Styles */
@media (min-width: 1024px) {
  .hero {
    padding: 60px 16px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .course-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .topic-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Lazy Loading Images */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded,
img[loading="lazy"][src] {
  opacity: 1;
}

/* Contextual Link Styling */
.contextual-link {
  color: var(--accent);
  font-weight: 500;
}

.contextual-link:hover {
  text-decoration: underline;
}
