/* ==========================================================================
   Toca Boca Mod APK - Main Stylesheet
   Theme: Modern Dark Gaming (Purple & Blue Accent)
   Max Width: 1200px Centered Layout (No Sidebar)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Fredoka:wght@500;600;700&display=swap');

:root {
  /* Color Palette */
  --bg-main: #0b0f19;
  --bg-header: rgba(15, 23, 42, 0.85);
  --bg-card: rgba(21, 28, 46, 0.7);
  --bg-card-hover: rgba(30, 41, 59, 0.9);
  --bg-accent: #1e1b4b;
  --bg-glass: rgba(255, 255, 255, 0.03);
  
  --primary: #8b5cf6;
  --primary-glow: #a855f7;
  --primary-dark: #6d28d9;
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-pink: #ec4899;
  --accent-green: #10b981;

  --text-main: #f8fafc;
  --text-sub: #cbd5e1;
  --text-muted: #94a3b8;
  --text-highlight: #c084fc;

  --border-color: rgba(139, 92, 246, 0.2);
  --border-hover: rgba(168, 85, 247, 0.5);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 25px rgba(139, 92, 246, 0.25);
  --shadow-glow-blue: 0 0 25px rgba(59, 130, 246, 0.25);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Fredoka', 'Plus Jakarta Sans', sans-serif;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(139, 92, 246, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(59, 130, 246, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(236, 72, 153, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.main-content {
  flex: 1;
  padding-top: 6rem;
  padding-bottom: 4rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

[id] {
  scroll-margin-top: 90px;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, var(--text-highlight) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  position: relative;
  display: inline-block;
  margin-top: 2rem;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent-blue));
  border-radius: var(--radius-full);
  margin-top: 0.5rem;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  color: #f1f5f9;
  margin-top: 1.5rem;
}

p {
  color: var(--text-sub);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

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

a:hover {
  color: #e9d5ff;
}

ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-sub);
}

li {
  margin-bottom: 0.5rem;
}

strong {
  color: #ffffff;
  font-weight: 700;
}

/* Header & Sticky Nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 75px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
}

.brand-logo img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
  border: 2px solid var(--primary-glow);
}

.brand-title span {
  color: var(--text-highlight);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-sub);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.25rem;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent-blue));
  transition: var(--transition);
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

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

.search-trigger-btn {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--text-sub);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.search-trigger-btn:hover {
  background: var(--primary-dark);
  color: #ffffff;
  border-color: var(--primary-glow);
  box-shadow: var(--shadow-glow);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Glassmorphism Cards */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 3rem 1rem;
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.hero-subtitle {
  font-size: 1.15rem;
  max-width: 800px;
  margin: 1rem auto 2rem;
  color: var(--text-sub);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid var(--border-color);
  color: var(--text-highlight);
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

/* Hero Download Box (As requested for homepage) */
.download-hero-card {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 2px solid var(--primary-glow);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  max-width: 850px;
  margin: 0 auto;
  box-shadow: var(--shadow-glow);
  position: relative;
}

.download-hero-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  align-items: center;
  text-align: left;
}

@media (max-width: 640px) {
  .download-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .download-hero-grid img {
    margin: 0 auto;
  }
}

.download-hero-img {
  width: 140px;
  height: 140px;
  border-radius: 24px;
  object-fit: cover;
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

.download-meta-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
  background: rgba(0, 0, 0, 0.25);
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.meta-item {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.meta-item strong {
  display: block;
  color: #ffffff;
  font-size: 1rem;
}

.btn-download-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-blue) 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-download-main:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(139, 92, 246, 0.6);
  color: #ffffff;
}

/* Feature Grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin: 2rem 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin: 2rem 0;
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition);
}

.feature-box:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow-blue);
}

.feature-icon {
  width: 54px;
  height: 54px;
  background: rgba(139, 92, 246, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-highlight);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-color);
}

/* Table Styling */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.custom-table th {
  background: rgba(30, 27, 75, 0.8);
  color: #ffffff;
  font-family: var(--font-heading);
  padding: 1rem 1.25rem;
  font-size: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.custom-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-sub);
  font-size: 0.95rem;
}

.custom-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: #ffffff;
}

/* FAQ Accordion */
.faq-accordion {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--primary-glow);
  box-shadow: var(--shadow-glow);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 1rem;
}

.faq-toggle-icon {
  font-size: 1.2rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease-out;
  padding: 0 1.5rem;
  color: var(--text-sub);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

/* Search Modal Overlay */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(11, 15, 25, 0.9);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.search-modal.active {
  opacity: 1;
  visibility: visible;
}

.search-box-container {
  width: 90%;
  max-width: 650px;
  background: var(--bg-card);
  border: 2px solid var(--primary-glow);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-glow);
  position: relative;
}

.search-input-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.search-input-group input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 1.15rem;
  font-family: var(--font-main);
}

.search-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.search-close-btn:hover {
  color: #ffffff;
}

.search-results-list {
  margin-top: 1rem;
  max-height: 300px;
  overflow-y: auto;
  list-style: none;
  padding: 0;
}

.search-results-list li a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-sub);
  font-weight: 500;
}

.search-results-list li a:hover {
  background: rgba(139, 92, 246, 0.15);
  color: #ffffff;
}

/* Newsletter Box */
.newsletter-card {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.8) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  margin: 3rem 0;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 520px;
  margin: 1.5rem auto 0;
  flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 260px;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  font-family: var(--font-main);
  outline: none;
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--primary-glow);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}

.btn-submit {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-blue) 100%);
  color: #ffffff;
  border: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--text-highlight);
}

.breadcrumb-separator {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.breadcrumb-item.active {
  color: var(--text-sub);
  font-weight: 600;
}

/* Related Articles Box */
.related-articles {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

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

.related-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.related-card:hover {
  border-color: var(--primary-glow);
  transform: translateY(-3px);
}

.related-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

/* Footer */
.site-footer {
  background-color: rgba(11, 15, 25, 0.95);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.95rem;
  margin-top: 1rem;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--text-sub);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--text-highlight);
  padding-left: 4px;
}

.disclaimer-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Contact Form */
.contact-form {
  display: grid;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 0.9rem 1.25rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-glow);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}

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

/* Responsive Media Queries */
@media (max-width: 900px) {
  .nav-menu {
    position: fixed;
    top: 75px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 75px);
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2.5rem 1.5rem;
    gap: 1.5rem;
    transition: left 0.3s ease;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: block;
  }
}
