/**
 * PPSSPP Games - Theme Stylesheet
 * File: css/theme-e577.css
 * Prefix: v79e-
 * Colors: #E65100 | #FF8000 | #BBBBBB | #FFBF00 | #0C0C0C | #E8F5E8
 */

/* Root variables */
:root {
  --v79e-primary: #E65100;
  --v79e-accent: #FF8000;
  --v79e-gold: #FFBF00;
  --v79e-text: #BBBBBB;
  --v79e-bg: #0C0C0C;
  --v79e-light: #E8F5E8;
  --v79e-dark: #0C0C0C;
  --v79e-card-bg: #1A1A1A;
  --v79e-border: #2A2A2A;
  --v79e-font: 62.5%;
}

html { font-size: var(--v79e-font); }

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

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--v79e-bg);
  color: var(--v79e-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--v79e-gold); text-decoration: none; }
a:hover { color: var(--v79e-accent); }

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

/* Container */
.v79e-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
  width: 100%;
}

.v79e-wrapper {
  max-width: 430px;
  margin: 0 auto;
  width: 100%;
}

/* Grid system */
.v79e-grid {
  display: grid;
  gap: 1rem;
}
.v79e-grid-2 { grid-template-columns: repeat(2, 1fr); }
.v79e-grid-3 { grid-template-columns: repeat(3, 1fr); }
.v79e-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== HEADER ===== */
.v79e-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #0C0C0C 0%, #1A1A1A 100%);
  border-bottom: 2px solid var(--v79e-primary);
  padding: 0 1rem;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.v79e-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.v79e-logo {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.v79e-site-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--v79e-gold);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.v79e-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.v79e-btn-register {
  background: linear-gradient(135deg, var(--v79e-primary), var(--v79e-accent));
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.v79e-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(230, 81, 0, 0.5);
}

.v79e-btn-login {
  background: transparent;
  color: var(--v79e-gold);
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.5rem 0.8rem;
  border: 1.5px solid var(--v79e-gold);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.v79e-btn-login:hover {
  background: var(--v79e-gold);
  color: var(--v79e-dark);
}

.v79e-menu-toggle {
  background: none;
  border: none;
  color: var(--v79e-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
}

/* Mobile menu */
.v79e-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, #111 0%, #0C0C0C 100%);
  z-index: 9999;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
  padding: 2rem 1.5rem;
  border-right: 2px solid var(--v79e-primary);
}

.v79e-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9998;
  display: none;
}

.v79e-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--v79e-border);
}

.v79e-menu-close {
  background: none;
  border: none;
  color: var(--v79e-text);
  font-size: 2.2rem;
  cursor: pointer;
}

.v79e-menu-links {
  list-style: none;
}

.v79e-menu-links li {
  margin-bottom: 0.5rem;
}

.v79e-menu-links a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  color: var(--v79e-text);
  font-size: 1.4rem;
  border-radius: 8px;
  transition: all 0.2s;
}

.v79e-menu-links a:hover,
.v79e-menu-links a:active {
  background: rgba(230, 81, 0, 0.15);
  color: var(--v79e-accent);
}

.v79e-menu-links .material-icons {
  font-size: 2rem;
  color: var(--v79e-accent);
}

/* ===== MAIN CONTENT ===== */
.v79e-main {
  padding-top: 52px;
  min-height: 100vh;
}

@media (max-width: 768px) {
  .v79e-main { padding-bottom: 80px; }
}

/* Carousel */
.v79e-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16/8;
}

.pro79e-slide {
  display: none;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.pro79e-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v79e-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.pro79e-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s;
}

.pro79e-dot-active {
  background: var(--v79e-gold);
}

/* Sections */
.v79e-section {
  padding: 1.5rem 0;
}

.v79e-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v79e-gold);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--v79e-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.v79e-section-title .material-icons {
  font-size: 2.2rem;
  color: var(--v79e-accent);
}

/* Category tabs */
.v79e-cat-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--v79e-accent);
  margin: 1.5rem 0 0.8rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--v79e-primary);
}

/* Game grid */
.v79e-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.v79e-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: 8px;
  padding: 0.3rem;
}

.v79e-game-item:hover {
  transform: scale(1.05);
  background: rgba(230, 81, 0, 0.1);
}

.v79e-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1.5px solid var(--v79e-border);
}

.v79e-game-name {
  font-size: 1rem;
  color: var(--v79e-text);
  margin-top: 0.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

/* Promo buttons */
.v79e-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--v79e-primary), var(--v79e-accent));
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  border: none;
  width: 100%;
}

.v79e-promo-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(230, 81, 0, 0.4);
}

.v79e-promo-link {
  color: var(--v79e-gold);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.v79e-promo-link:hover {
  color: var(--v79e-accent);
}

/* Cards */
.v79e-card {
  background: var(--v79e-card-bg);
  border: 1px solid var(--v79e-border);
  border-radius: 10px;
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.v79e-card h3 {
  color: var(--v79e-gold);
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.v79e-card p {
  color: var(--v79e-text);
  font-size: 1.3rem;
  line-height: 1.6;
}

/* FAQ styles */
.v79e-faq-item {
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--v79e-card-bg);
  border-radius: 8px;
  border-left: 3px solid var(--v79e-primary);
}

.v79e-faq-q {
  font-weight: 700;
  color: var(--v79e-gold);
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.v79e-faq-a {
  color: var(--v79e-text);
  font-size: 1.2rem;
  line-height: 1.5;
}

/* Testimonials */
.v79e-testimonial {
  background: var(--v79e-card-bg);
  border: 1px solid var(--v79e-border);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.8rem;
}

.v79e-testimonial-name {
  font-weight: 700;
  color: var(--v79e-gold);
  font-size: 1.2rem;
}

.v79e-testimonial-text {
  color: var(--v79e-text);
  font-size: 1.2rem;
  margin-top: 0.4rem;
  line-height: 1.5;
}

/* Winners list */
.v79e-winner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--v79e-border);
}

.v79e-winner:last-child { border-bottom: none; }

.v79e-winner-name {
  font-weight: 600;
  color: var(--v79e-light);
  font-size: 1.2rem;
}

.v79e-winner-game {
  color: var(--v79e-text);
  font-size: 1.1rem;
}

.v79e-winner-amount {
  color: var(--v79e-gold);
  font-weight: 700;
  font-size: 1.2rem;
}

/* Payment methods */
.v79e-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.v79e-payment-item {
  background: var(--v79e-card-bg);
  border: 1px solid var(--v79e-border);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  color: var(--v79e-text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* RTP table */
.v79e-rtp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.v79e-rtp-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.8rem;
  background: var(--v79e-card-bg);
  border-radius: 6px;
  border: 1px solid var(--v79e-border);
}

.v79e-rtp-name {
  font-size: 1.1rem;
  color: var(--v79e-text);
}

.v79e-rtp-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--v79e-gold);
}

/* ===== FOOTER ===== */
.v79e-footer {
  background: linear-gradient(180deg, #0C0C0C, #111);
  border-top: 2px solid var(--v79e-primary);
  padding: 2rem 0 1rem;
}

.v79e-footer-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.v79e-footer-brand p {
  font-size: 1.2rem;
  color: var(--v79e-text);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.v79e-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.v79e-footer-links a {
  background: linear-gradient(135deg, var(--v79e-primary), var(--v79e-accent));
  color: #fff;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.2s;
}

.v79e-footer-links a:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(230, 81, 0, 0.4);
  color: #fff;
}

.v79e-footer-site-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.v79e-footer-site-links a {
  color: var(--v79e-text);
  font-size: 1.1rem;
  text-decoration: underline;
}

.v79e-footer-site-links a:hover {
  color: var(--v79e-accent);
}

.v79e-copyright {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  padding-top: 1rem;
  border-top: 1px solid var(--v79e-border);
}

/* ===== BOTTOM NAV ===== */
.v79e-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1A1A1A, #0C0C0C);
  border-top: 2px solid var(--v79e-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  padding: 0 0.3rem;
}

.v79e-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--v79e-text);
  -webkit-tap-highlight-color: transparent;
}

.v79e-nav-btn:active {
  transform: scale(0.92);
}

.v79e-nav-btn .nav-icon {
  font-size: 2.2rem;
  margin-bottom: 0.2rem;
  transition: color 0.2s;
}

.v79e-nav-btn .nav-label {
  font-size: 1rem;
  line-height: 1;
  transition: color 0.2s;
}

.v79e-nav-btn:hover .nav-icon,
.v79e-nav-btn:hover .nav-label,
.v79e-nav-btn.v79e-nav-active .nav-icon,
.v79e-nav-btn.v79e-nav-active .nav-label {
  color: var(--v79e-gold);
}

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
  .v79e-bottom-nav { display: none; }
  .v79e-main { padding-bottom: 0; }
  .v79e-container { max-width: 768px; }
}

/* Utility classes */
.v79e-text-center { text-align: center; }
.v79e-text-gold { color: var(--v79e-gold); }
.v79e-text-accent { color: var(--v79e-accent); }
.v79e-text-light { color: var(--v79e-light); }
.v79e-mt-1 { margin-top: 0.5rem; }
.v79e-mt-2 { margin-top: 1rem; }
.v79e-mb-1 { margin-bottom: 0.5rem; }
.v79e-mb-2 { margin-bottom: 1rem; }
.v79e-bold { font-weight: 700; }

/* Promotional banner CTA */
.v79e-cta-banner {
  background: linear-gradient(135deg, var(--v79e-primary), var(--v79e-accent));
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
}

.v79e-cta-banner h2 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.v79e-cta-banner p {
  color: rgba(255,255,255,0.9);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.v79e-cta-btn {
  display: inline-block;
  background: #fff;
  color: var(--v79e-primary);
  font-weight: 800;
  font-size: 1.4rem;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.v79e-cta-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* App download section */
.v79e-app-section {
  text-align: center;
  padding: 1.5rem;
  background: var(--v79e-card-bg);
  border-radius: 12px;
  border: 1px solid var(--v79e-border);
}

.v79e-app-section h3 {
  color: var(--v79e-gold);
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

.v79e-app-section p {
  color: var(--v79e-text);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* Highlight badges */
.v79e-badge {
  display: inline-block;
  background: var(--v79e-primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.v79e-badge-gold {
  background: var(--v79e-gold);
  color: var(--v79e-dark);
}

/* Achievement card */
.v79e-achievement {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  background: var(--v79e-card-bg);
  border-radius: 8px;
  margin-bottom: 0.6rem;
  border: 1px solid var(--v79e-border);
}

.v79e-achievement-icon {
  font-size: 2.4rem;
  color: var(--v79e-gold);
}

.v79e-achievement-text h4 {
  color: var(--v79e-gold);
  font-size: 1.3rem;
}

.v79e-achievement-text p {
  color: var(--v79e-text);
  font-size: 1.1rem;
}
