/* ========================================
   7Games APK — Page Home Styles
   APK Download Landing Page
   ======================================== */

/* === Layout: Sidebar + Main === */
.page-layout {
  display: flex;
  padding-top: var(--header-h);
  min-height: 100vh;
}

/* --- Sidebar --- */
.sidebar {
  position: fixed;
  top: var(--header-h);
  left: 0;
  width: var(--sidebar-w);
  height: calc(100vh - var(--header-h));
  background: var(--color-dark);
  border-right: 1px solid var(--color-border);
  overflow-y: auto;
  z-index: var(--z-sidebar);
  padding: 1rem 0;
  transition: transform var(--transition-base);
}

.sidebar-nav-group {
  margin-bottom: 1.25rem;
}
.sidebar-nav-group-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
}
.sidebar-nav-group-title .nav-icon {
  color: var(--color-primary);
  font-size: 0.9rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1rem 0.55rem 1.5rem;
  color: var(--color-muted);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
}
.sidebar-link:hover {
  background: var(--color-surface);
  color: var(--color-text);
}
.sidebar-link.active {
  color: var(--color-primary);
  border-left-color: var(--color-primary);
  background: rgba(34,197,94,0.08);
}

.sidebar-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0.75rem 1rem;
}

/* Main content */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
}

@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    top: 0;
    height: 100vh;
    z-index: calc(var(--z-header) + 2);
  }
  .sidebar.active {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
  }
}

/* === Hero Section === */
.hero {
  position: relative;
  padding: 4rem 0 3rem;
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-bg) 50%, rgba(34,197,94,0.08) 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(34,197,94,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero-content h1 .text-accent {
  color: var(--color-accent);
}
.hero-content .hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-trust-item .check {
  color: var(--color-primary);
  font-weight: 700;
}

/* Phone mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone-mockup {
  position: relative;
  width: 260px;
  height: 520px;
  background: var(--color-surface);
  border-radius: 32px;
  border: 3px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(34,197,94,0.15);
}
.phone-mockup .phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--color-dark) 0%, var(--color-bg) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}
.phone-screen .app-logo {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1rem;
}
.phone-screen .app-logo .seven { color: var(--color-accent); }
.phone-screen .app-logo .games { color: #fff; }
.phone-screen .app-text {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}
.phone-screen .app-btn {
  background: var(--color-primary);
  color: #000;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.85rem;
}

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-ctas { justify-content: center; }
  .hero-badges { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-visual { order: -1; }
  .phone-mockup { width: 200px; height: 400px; }
}

@media (max-width: 600px) {
  .hero { padding: 2.5rem 0 2rem; }
  .phone-mockup { width: 170px; height: 340px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
}

/* === APK Steps Section === */
.apk-steps {
  padding: 3rem 0;
  background: var(--color-bg);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.step-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  transition: all var(--transition-base);
}
.step-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #000;
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 1rem;
}
.step-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}
.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}
.step-card p {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 0;
}
.step-arrow {
  display: none;
  position: absolute;
  right: -24px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-primary);
  font-size: 1.5rem;
  z-index: 1;
}

@media (min-width: 1025px) {
  .step-arrow { display: block; }
}
.step-card:last-child .step-arrow { display: none; }

@media (max-width: 1024px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .step-card {
    display: grid;
    grid-template-columns: auto 1fr;
    text-align: left;
    gap: 1rem;
    align-items: center;
  }
  .step-number { margin-bottom: 0; }
  .step-arrow { display: none; }
}

/* === Promo Bar === */
.promo-bar {
  padding: 2.5rem 0;
  background: var(--color-dark);
}
.promo-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.promo-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition-base);
}
.promo-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}
.promo-card .promo-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.promo-card h3 {
  color: var(--color-accent);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.promo-card p {
  color: var(--color-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.promo-card .btn {
  font-size: 0.8rem;
}

@media (max-width: 600px) {
  .promo-cards {
    grid-template-columns: 1fr;
  }
}

/* === Popular Games === */
.games-section {
  padding: 3rem 0;
}
.games-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.games-scroll::-webkit-scrollbar { height: 6px; }
.games-scroll::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 3px; }

.game-card {
  flex: 0 0 180px;
  scroll-snap-align: start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}
.game-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
}
.game-card-img {
  width: 100%;
  height: 140px;
  background: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.game-card-info {
  padding: 0.75rem;
}
.game-card-info h4 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-card-info .game-payout {
  font-size: 0.8rem;
  color: var(--color-accent);
  font-weight: 700;
}
.game-card-info .game-label {
  font-size: 0.7rem;
  color: var(--color-muted);
}

/* === Content Sections === */
.content-section {
  padding: 3rem 0;
  border-top: 1px solid var(--color-border);
}
.content-section:first-of-type {
  border-top: none;
}

.content-section .section-intro {
  font-size: 1rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.content-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 768px) {
  .content-columns { grid-template-columns: 1fr; }
}

/* === Feature List === */
.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
.feature-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(34,197,94,0.1);
}
.feature-item h4 {
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}
.feature-item p {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .feature-list { grid-template-columns: 1fr; }
}

/* === Screenshot Gallery === */
.screenshot-gallery {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.screenshot-gallery::-webkit-scrollbar { height: 6px; }
.screenshot-gallery::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 3px; }

.screenshot-item {
  flex: 0 0 220px;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.screenshot-item img {
  width: 100%;
  height: auto;
}
.screenshot-placeholder {
  width: 220px;
  height: 400px;
  background: linear-gradient(180deg, var(--color-dark), var(--color-surface));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--color-muted);
  font-size: 0.8rem;
}

/* === FAQ Section === */
.faq-section {
  padding: 3rem 0;
  border-top: 1px solid var(--color-border);
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--color-surface);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  background: none;
  width: 100%;
  text-align: left;
  transition: all var(--transition-fast);
}
.faq-question:hover {
  background: rgba(34,197,94,0.05);
}
.faq-question .faq-toggle {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--color-dark);
  color: var(--color-primary);
  font-size: 0.9rem;
  transition: transform var(--transition-base);
}
.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}
.faq-answer-inner {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.7;
}

/* === Author Card === */
.author-card {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-top: 2rem;
}
.author-photo {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-full);
  background: var(--color-dark);
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--color-primary);
}
.author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.author-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.author-info .author-role {
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.author-info .author-bio {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.author-info .author-updated {
  font-size: 0.8rem;
  color: var(--color-accent);
  font-weight: 600;
}

@media (max-width: 600px) {
  .author-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* === Verdict Box === */
.verdict-box {
  background: linear-gradient(135deg, var(--color-surface) 0%, rgba(34,197,94,0.08) 100%);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2rem;
}
.verdict-box h3 {
  color: var(--color-primary);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.verdict-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.verdict-col h4 {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
.verdict-col.pros h4 { color: var(--color-primary); }
.verdict-col.cons h4 { color: var(--color-live); }
.verdict-col ul {
  list-style: none;
  padding: 0;
}
.verdict-col li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}
.verdict-col.pros li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}
.verdict-col.cons li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: var(--color-live);
  font-weight: 700;
}

@media (max-width: 600px) {
  .verdict-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* === Info Box / Callout === */
.info-box {
  background: rgba(34,197,94,0.08);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}
.info-box strong { color: var(--color-text); }

.warning-box {
  background: rgba(239,68,68,0.08);
  border-left: 4px solid var(--color-live);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}
.warning-box strong { color: var(--color-text); }

.gold-box {
  background: rgba(245,197,24,0.08);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}
.gold-box strong { color: var(--color-accent); }
/* Header scrolled state */
.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

/* Sidebar overlay for tablet */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-overlay);
  z-index: calc(var(--z-sidebar) - 1);
}
.sidebar-overlay.active {
  display: block;
}

/* Extra responsive adjustments */
@media (max-width: 600px) {
  .section {
    padding: 2rem 0;
  }
  .section-title {
    font-size: 1.25rem;
  }
  .card {
    padding: 1rem;
  }
  .step-card {
    padding: 1.25rem;
  }
  .promo-card {
    padding: 1.25rem;
  }
  .feature-item {
    padding: 0.75rem;
  }
  .game-card {
    flex: 0 0 150px;
  }
  .game-card-img {
    height: 110px;
  }
  .screenshot-item {
    flex: 0 0 180px;
  }
  .screenshot-placeholder {
    width: 180px;
    height: 320px;
  }
  .author-card {
    padding: 1.25rem;
  }
  .verdict-box {
    padding: 1.25rem;
  }
  .legal-section {
    padding: 2rem 0;
  }
}

/* Smooth hover transitions for all interactive elements */
a, button, .card, .step-card, .promo-card, .game-card, .feature-item {
  transition: all var(--transition-base);
}

/* Animation for hero elements */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-content {
  animation: fadeInUp 0.6s ease forwards;
}
.hero-visual {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

/* Phone mockup glow effect */
.phone-mockup::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 40px;
  background: radial-gradient(ellipse, rgba(34,197,94,0.3), transparent);
  filter: blur(10px);
  pointer-events: none;
}

/* Accent line on section titles */
.section-title.accent-line::after {
  background: var(--color-accent);
}

/* Content section inner spacing */
.content-section p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--color-muted);
}
.content-section p strong {
  color: var(--color-text);
}
.content-section h3 {
  color: var(--color-text);
  margin-top: 1.5rem;
}
.content-section ul li {
  font-size: 0.95rem;
  line-height: 1.7;
}
.content-section ol li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-muted);
}
.content-section ol li strong {
  color: var(--color-text);
}
.content-section a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.content-section a:hover {
  color: var(--color-accent);
}

/* Bottom bar padding adjustment for cookie banner */
@media (max-width: 1024px) {
  body.cookie-active {
    padding-bottom: calc(var(--bottom-bar-h) + 60px);
  }
}