/* classroom247.net - Main Stylesheet */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f3f4f6;
  color: #1f2937;
  line-height: 1.6;
  font-size: 15px;
}
a { color: #6366f1; text-decoration: none; }
a:hover { color: #4f46e5; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

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

/* HEADER */
.site-header {
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  height: 60px;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 22px;
}
.logo-emoji { font-size: 28px; }
.logo-text {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 500;
  color: #4b5563;
}
.nav a:hover { background: #f3f4f6; color: #6366f1; }
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  margin-left: auto;
}
@media (max-width: 768px) {
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; background: white; padding: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
  .nav.open { display: flex; }
  .mobile-menu-btn { display: block; }
}

/* HERO */
.hero {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
}
.hero h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 12px;
}
.text-gradient { background: linear-gradient(90deg, #fbbf24, #f59e0b); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-tagline { font-size: 18px; opacity: 0.95; margin-bottom: 24px; }
.hero-stats { display: flex; gap: 30px; justify-content: center; margin: 24px 0; flex-wrap: wrap; }
.hero-stats .stat { text-align: center; }
.hero-stats .stat strong { font-size: 28px; display: block; }

/* BUTTONS */
.btn-primary {
  display: inline-block;
  padding: 10px 24px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white !important;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 15px;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}
.btn-large { padding: 14px 32px; font-size: 17px; }

/* PAGE HEADER */
.page-header {
  text-align: center;
  padding: 32px 0 16px;
}
.page-header h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}
.page-header p { color: #6b7280; }

/* BREADCRUMBS */
.breadcrumbs {
  margin: 16px 0;
  padding: 10px 14px;
  background: white;
  border-radius: 8px;
  font-size: 13px;
  color: #6b7280;
}

/* SECTIONS */
.game-section { margin: 40px 0; }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: 22px;
  font-weight: 700;
}
.see-all {
  font-size: 14px;
  font-weight: 600;
  color: #6366f1;
}

/* GAMES GRID */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.game-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: block;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(99, 102, 241, 0.15);
}
.game-card-thumb {
  height: 120px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-emoji { font-size: 64px; }
.game-card-body { padding: 14px; }
.game-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.game-card-desc {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.game-card-meta {
  display: flex;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  flex-wrap: wrap;
}
.game-card-meta .rating { color: #f59e0b; }
.game-card-meta .plays { color: #6b7280; }
.difficulty {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}
.difficulty-easy { background: #d1fae5; color: #065f46; }
.difficulty-medium { background: #fef3c7; color: #92400e; }
.difficulty-hard { background: #fee2e2; color: #991b1b; }

/* FILTER BAR */
.filter-bar {
  display: flex;
  gap: 8px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 16px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
}
.filter-btn.active { background: #6366f1; color: white; border-color: #6366f1; }
.filter-btn:hover { border-color: #6366f1; }

/* AD CONTAINERS */
.ad-container {
  background: white;
  border-radius: 8px;
  padding: 12px;
  margin: 24px 0;
  text-align: center;
  min-height: 100px;
}
.ad-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #9ca3af;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* GAME PAGE */
.game-page {
  max-width: 900px;
}
.game-header {
  text-align: center;
  margin: 24px 0;
}
.game-header h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}
.game-meta-bar {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 12px 0;
  font-size: 14px;
  font-weight: 600;
}
.game-meta-bar > * { padding: 4px 12px; background: white; border-radius: 999px; }
.game-tagline {
  font-size: 17px;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
}

.game-play-area {
  background: white;
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.game-controls {
  margin-top: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.score-display {
  font-size: 14px;
  color: #4b5563;
}
.score-display strong { color: #1f2937; }

/* MOBILE D-PAD CONTROLS */
.mobile-controls {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 20px auto 0;
  max-width: 250px;
}
@media (max-width: 768px) {
  .mobile-controls { display: flex; }
}
.dpad-row {
  display: flex;
  gap: 8px;
}
.dpad-btn {
  width: 60px;
  height: 60px;
  font-size: 24px;
  font-weight: bold;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dpad-btn:active { transform: scale(0.95); }

/* GAME INFO */
.game-info { margin: 32px 0; }
.info-block {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.info-block h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e7eb;
}
.info-block p { color: #4b5563; margin-bottom: 8px; }
.info-block p:last-child { margin-bottom: 0; }
.tips-list { padding-left: 20px; }
.tips-list li {
  list-style: disc;
  margin-bottom: 8px;
  color: #4b5563;
}

.related-games { margin: 32px 0; }
.related-games h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* SEO SECTION */
.seo-section {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin: 32px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.seo-section h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}
.seo-section h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 16px 0 8px;
  color: #4b5563;
}
.seo-section p { color: #4b5563; margin-bottom: 12px; }

/* LEGAL CONTENT */
.legal-content {
  background: white;
  border-radius: 12px;
  padding: 32px;
  margin: 24px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.legal-content h1 {
  font-size: 32px;
  margin-bottom: 16px;
  font-weight: 800;
}
.legal-content h2 {
  font-size: 22px;
  margin: 24px 0 8px;
  font-weight: 700;
}
.legal-content h3 {
  font-size: 17px;
  margin: 16px 0 6px;
  font-weight: 700;
}
.legal-content p, .legal-content li {
  color: #4b5563;
  margin-bottom: 10px;
  line-height: 1.7;
}
.legal-content ul, .legal-content ol {
  padding-left: 24px;
  margin-bottom: 12px;
}
.legal-content ul li, .legal-content ol li {
  margin-bottom: 6px;
  list-style: disc;
}

/* CONTACT FORM */
.contact-form {
  background: #f9fafb;
  padding: 20px;
  border-radius: 8px;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-form label {
  font-weight: 600;
  color: #1f2937;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  margin-top: 4px;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #6366f1;
}

/* FOOTER */
.site-footer {
  background: #1f2937;
  color: #d1d5db;
  margin-top: 60px;
  padding: 40px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}
.footer-col h3 {
  color: white;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}
.footer-col p { font-size: 13px; line-height: 1.6; }
.footer-col ul li {
  margin-bottom: 8px;
  font-size: 13px;
}
.footer-col ul li a {
  color: #d1d5db;
  font-size: 13px;
}
.footer-col ul li a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid #374151;
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
}
.footer-bottom a { color: #d1d5db; }
.footer-bottom a:hover { color: white; }
