/* ==========================================================================
   JeetSpin Appyn-Style Master Design System
   Domain: https://jeetspinapp.cc/
   Theme: Appyn Native WordPress Theme Equivalent (Dark Gaming Edition)
   Accessibility: WCAG 2.1 AA Compliant / Zero CLS / Mobile-First
   ========================================================================== */

:root {
  --bg-page: #0a0d14;
  --bg-surface: #121824;
  --bg-surface-elevated: #182130;
  --bg-surface-hover: #1f2a3d;
  --border-subtle: #212c3d;
  --border-active: #3b82f6;
  --border-verified: #10b981;
  --border-warning: #b45309;

  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-brand: #60a5fa;

  --accent-blue: #3b82f6;
  --accent-blue-hover: #2563eb;
  --accent-green: #10b981;
  --accent-green-hover: #059669;
  --accent-amber: #f59e0b;
  --accent-amber-bg: #1f1608;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-subtle: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.25);

  --font-stack: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --container-max: 1200px;
  --bottom-nav-height: 64px;
}

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

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-stack);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 0;
}

@media (max-width: 768px) {
  body {
    padding-bottom: var(--bottom-nav-height);
  }
}

/* Accessibility: Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 20px;
  background: var(--accent-blue);
  color: #ffffff;
  padding: 8px 16px;
  z-index: 9999;
  font-weight: 700;
  border-radius: var(--radius-xs);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 15px;
}

/* Focus Ring */
:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

a {
  color: var(--text-brand);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: #93c5fd;
  text-decoration: underline;
}

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

.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   Compliance Notice Banner (18+ & Financial Risk)
   ========================================================================== */
.compliance-bar {
  background: var(--accent-amber-bg);
  border-bottom: 1px solid var(--border-warning);
  padding: 10px 0;
  font-size: 0.85rem;
  color: #fde68a;
}

.compliance-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
}

.compliance-badge {
  background: var(--accent-amber);
  color: #000;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  display: inline-block;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  background: rgba(18, 24, 36, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
  background: var(--bg-surface-elevated);
  text-decoration: none;
}

.header-search {
  position: relative;
  width: 240px;
}

.search-input {
  width: 100%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-main);
  padding: 8px 16px 8px 36px;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  fill: var(--text-muted);
  pointer-events: none;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 8px;
}

/* ==========================================================================
   Sticky Bottom Mobile Navigation (Appyn Style)
   ========================================================================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: rgba(18, 24, 36, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-subtle);
  z-index: 1000;
  justify-content: space-around;
  align-items: center;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 500;
  text-decoration: none;
  flex: 1;
  height: 100%;
}

.bottom-nav-item svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.bottom-nav-item:hover, .bottom-nav-item.active {
  color: var(--accent-blue);
  text-decoration: none;
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
  }
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb-nav {
  padding: 14px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb-nav ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 8px;
  align-items: center;
}

.breadcrumb-nav li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--text-muted);
}

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

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

/* ==========================================================================
   Appyn Hero App Card
   ========================================================================== */
.appyn-hero-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 35px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.appyn-hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #10b981, #f59e0b);
}

.hero-layout {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 32px;
  align-items: center;
}

.app-icon-frame {
  position: relative;
  width: 140px;
  height: 140px;
  background: #0d121c;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-subtle);
  flex-shrink: 0;
}

.app-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.hero-details h1 {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.tag-badge.verified {
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
}

.tag-badge.highlight {
  border-color: rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.1);
}

.tag-badge.warning {
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.1);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 220px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  border: none;
}

.btn-download-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.btn-download-primary:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  color: #ffffff;
  text-decoration: none;
}

.btn-outline-specs {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.btn-outline-specs:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-active);
  color: #ffffff;
  text-decoration: none;
}

/* ==========================================================================
   Two-Column Content Grid
   ========================================================================== */
.content-grid-wrap {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 35px;
  margin-bottom: 50px;
}

.main-column {
  min-width: 0;
}

.sidebar-column {
  min-width: 0;
}

.section-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-subtle);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.section-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
}

/* ==========================================================================
   Appyn Screenshots Carousel / Gallery
   ========================================================================== */
.screenshots-scroll-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 10px 0 20px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border-subtle) transparent;
}

.screenshot-item {
  flex: 0 0 220px;
  background: #0d121c;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.screenshot-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent-blue);
}

.screenshot-img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

/* ==========================================================================
   Technical Specifications Table
   ========================================================================== */
.specs-table-wrapper {
  overflow-x: auto;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.specs-table th, .specs-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}

.specs-table th {
  color: var(--text-muted);
  font-weight: 600;
  width: 38%;
  background: #101622;
}

.specs-table td {
  color: var(--text-main);
}

.specs-table tr:last-child th,
.specs-table tr:last-child td {
  border-bottom: none;
}

.status-pill {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  font-weight: 600;
  margin-left: 8px;
}

.status-pill.verified {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.status-pill.unverified {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

/* ==========================================================================
   Games Grid
   ========================================================================== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
  margin-top: 15px;
}

.game-item-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-item-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-blue);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.game-icon-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  object-fit: cover;
}

.game-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

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

/* ==========================================================================
   Feature Cards Grid (6 Items)
   ========================================================================== */
.features-grid-6 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.feature-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-box:hover {
  transform: translateY(-3px);
  border-color: var(--accent-blue);
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: #0f1521;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border: 1px solid var(--border-subtle);
}

.feature-icon-wrap img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.feature-box h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

.feature-box p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Blog Cards Grid (Appyn Style)
   ========================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.blog-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-blue);
}

.blog-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0e131d;
  overflow: hidden;
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent-blue);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.blog-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card-title a {
  color: var(--text-main);
}

.blog-card-title a:hover {
  color: var(--text-brand);
}

.blog-card-excerpt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
}

/* ==========================================================================
   Accordion / FAQs
   ========================================================================== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.faq-question {
  width: 100%;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
}

.faq-question:hover {
  color: var(--text-brand);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
  fill: var(--text-muted);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  fill: var(--text-brand);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-out, padding 0.25s ease;
  padding: 0 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

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

/* ==========================================================================
   Hash & Checksum Box
   ========================================================================== */
.verification-card {
  background: #0f1622;
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 25px 0;
}

.hash-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #090d14;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-family: monospace;
  font-size: 0.85rem;
  color: #38bdf8;
  word-break: break-all;
  margin-top: 10px;
}

.copy-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.copy-btn:hover {
  background: var(--bg-surface-hover);
}

/* ==========================================================================
   Sidebar Widgets
   ========================================================================== */
.sidebar-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 25px;
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 6px 0;
  transition: color 0.15s ease;
}

.sidebar-links a:hover {
  color: var(--text-brand);
  text-decoration: none;
}

.payments-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.payment-badge {
  background: #0f141f;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
}

.payment-badge img {
  max-height: 22px;
  width: auto;
  object-fit: contain;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #080b10;
  border-top: 1px solid var(--border-subtle);
  padding: 50px 0 25px 0;
  margin-top: 60px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.footer-brand p {
  margin-top: 14px;
  line-height: 1.6;
  font-size: 0.88rem;
}

.footer-col h4 {
  color: var(--text-main);
  font-size: 0.95rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.footer-links a:hover {
  color: var(--text-main);
}

.footer-legal-notice {
  padding-top: 25px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  line-height: 1.6;
  text-align: center;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 992px) {
  .hero-layout {
    grid-template-columns: 110px 1fr;
  }
  .hero-actions {
    grid-column: 1 / -1;
    flex-direction: row;
  }
  .content-grid-wrap {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .site-nav, .header-search {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .site-nav.mobile-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 20px;
  }
  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .app-icon-frame {
    margin: 0 auto;
  }
  .hero-meta-row {
    justify-content: center;
  }
  .hero-actions {
    flex-direction: column;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
