/**
 * Arion Horse - Theme Stylesheet
 * Prefix: v428-
 * Colors: #333333 (dark), #FF9500 (accent), #E65100 (accent-dark), #FF6347 (secondary), #999999 (light)
 * Mobile-first, max-width 430px, rem units
 */

/* === Root & Reset === */
:root {
  --v428-dark: #333333;
  --v428-accent: #FF9500;
  --v428-accent-dark: #E65100;
  --v428-secondary: #FF6347;
  --v428-light: #999999;
  --v428-bg: #1a1a1a;
  --v428-card-bg: #2a2a2a;
  --v428-white: #ffffff;
  --v428-border: #444444;
  --v428-gold: #FFD700;
  font-size: 62.5%;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--v428-bg);
  color: var(--v428-white);
  font-size: 1.6rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--v428-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--v428-gold);
}

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

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

/* === Header === */
.v428-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--v428-dark) 0%, #1a1a1a 100%);
  border-bottom: 2px solid var(--v428-accent);
  height: 56px;
  display: flex;
  align-items: center;
}

.v428-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.v428-logo-area {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.v428-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--v428-accent);
}

.v428-site-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v428-accent);
  letter-spacing: 0.5px;
}

.v428-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.v428-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.2rem;
  border-radius: 2rem;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.v428-btn-register {
  background: linear-gradient(135deg, var(--v428-accent) 0%, var(--v428-accent-dark) 100%);
  color: var(--v428-white);
  box-shadow: 0 2px 8px rgba(255, 149, 0, 0.4);
}

.v428-btn-register:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 149, 0, 0.6);
}

.v428-btn-login {
  background: transparent;
  color: var(--v428-accent);
  border: 1.5px solid var(--v428-accent);
}

.v428-btn-login:hover {
  background: rgba(255, 149, 0, 0.1);
}

.v428-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--v428-accent);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
}

/* === Mobile Menu === */
.v428-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.v428-overlay-active {
  opacity: 1;
  visibility: visible;
}

.v428-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--v428-bg);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 2rem 1.5rem;
  border-left: 2px solid var(--v428-accent);
}

.v428-menu-active {
  right: 0;
}

.v428-menu-close {
  background: none;
  border: none;
  color: var(--v428-accent);
  font-size: 2.8rem;
  cursor: pointer;
  display: block;
  margin-left: auto;
  margin-bottom: 2rem;
  line-height: 1;
}

.v428-menu-link {
  display: block;
  padding: 1.2rem 0;
  color: var(--v428-white);
  font-size: 1.5rem;
  border-bottom: 1px solid var(--v428-border);
  transition: color 0.2s ease;
}

.v428-menu-link:hover {
  color: var(--v428-accent);
}

/* === Main Content === */
.v428-main {
  padding-top: 56px;
  min-height: 100vh;
}

.v428-main-content {
  padding-bottom: 2rem;
}

/* === Carousel === */
.v428-carousel {
  position: relative;
  overflow: hidden;
  margin: 1rem 0;
  border-radius: 1rem;
}

.v428-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.v428-carousel-track::-webkit-scrollbar {
  display: none;
}

.v428-carousel-slide {
  min-width: 100%;
  scroll-snap-align: start;
  cursor: pointer;
}

.v428-carousel-slide img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
}

.v428-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: var(--v428-white);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  z-index: 2;
}

.v428-carousel-btn:hover {
  background: rgba(255, 149, 0, 0.7);
}

.v428-carousel-prev {
  left: 0.8rem;
}

.v428-carousel-next {
  right: 0.8rem;
}

/* === Section Titles === */
.v428-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--v428-accent);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--v428-accent-dark);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.v428-section-title i,
.v428-section-title span.material-icons-outlined {
  font-size: 2.2rem;
}

/* === Game Grid === */
.v428-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.v428-game-card {
  background: var(--v428-card-bg);
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--v428-border);
}

.v428-game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(255, 149, 0, 0.3);
}

.v428-game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.v428-game-name {
  padding: 0.4rem 0.5rem;
  font-size: 1.1rem;
  text-align: center;
  color: var(--v428-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === Promo Modules === */
.v428-promo-banner {
  background: linear-gradient(135deg, var(--v428-accent-dark) 0%, var(--v428-accent) 100%);
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 1.5rem 0;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.v428-promo-banner:hover {
  transform: scale(1.02);
}

.v428-promo-banner h3 {
  font-size: 1.8rem;
  color: var(--v428-white);
  margin-bottom: 0.5rem;
}

.v428-promo-banner p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
}

.v428-promo-banner .v428-btn {
  margin-top: 1rem;
  background: var(--v428-white);
  color: var(--v428-accent-dark);
  font-weight: 700;
}

/* === Info Module === */
.v428-info-module {
  background: var(--v428-card-bg);
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid var(--v428-border);
}

.v428-info-module h3 {
  font-size: 1.7rem;
  color: var(--v428-accent);
  margin-bottom: 1rem;
}

.v428-info-module p {
  font-size: 1.4rem;
  color: var(--v428-light);
  line-height: 1.7;
}

/* === Bottom Navigation === */
.v428-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #2a2a2a 0%, var(--v428-dark) 100%);
  border-top: 2px solid var(--v428-accent);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  padding: 0 0.5rem;
}

.v428-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--v428-light);
  cursor: pointer;
  min-width: 60px;
  min-height: 54px;
  transition: all 0.3s ease;
  position: relative;
}

.v428-bottom-btn i,
.v428-bottom-btn .material-icons,
.v428-bottom-btn ion-icon,
.v428-bottom-btn bi {
  font-size: 22px;
  margin-bottom: 2px;
}

.v428-bottom-btn span {
  font-size: 1rem;
  line-height: 1.2;
}

.v428-bottom-btn:hover,
.v428-bottom-btn.v428-active {
  color: var(--v428-accent);
}

.v428-bottom-btn.v428-active::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--v428-accent);
  border-radius: 0 0 2px 2px;
}

/* === Footer === */
.v428-footer {
  background: var(--v428-dark);
  padding: 2rem 0 1rem;
  border-top: 1px solid var(--v428-border);
}

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

.v428-footer-brand h4 {
  font-size: 1.8rem;
  color: var(--v428-accent);
  margin-bottom: 0.5rem;
}

.v428-footer-brand p {
  font-size: 1.3rem;
  color: var(--v428-light);
  max-width: 360px;
  margin: 0 auto;
}

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

.v428-footer-links a {
  font-size: 1.2rem;
  color: var(--v428-light);
  transition: color 0.2s ease;
}

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

.v428-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: var(--v428-light);
  padding-top: 1rem;
  border-top: 1px solid var(--v428-border);
}

/* === Scroll to Top === */
.v428-scroll-top {
  position: fixed;
  bottom: 72px;
  right: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--v428-accent);
  color: var(--v428-white);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(255, 149, 0, 0.4);
}

.v428-scroll-visible {
  opacity: 1;
  visibility: visible;
}

/* === Help Page Styles === */
.v428-page-hero {
  background: linear-gradient(135deg, var(--v428-accent-dark) 0%, var(--v428-dark) 100%);
  padding: 2rem 0;
  text-align: center;
}

.v428-page-hero h1 {
  font-size: 2.4rem;
  color: var(--v428-white);
  margin-bottom: 0.5rem;
}

.v428-page-hero p {
  font-size: 1.4rem;
  color: var(--v428-light);
}

.v428-content-section {
  background: var(--v428-card-bg);
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid var(--v428-border);
}

.v428-content-section h2 {
  font-size: 1.8rem;
  color: var(--v428-accent);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--v428-border);
}

.v428-content-section h3 {
  font-size: 1.5rem;
  color: var(--v428-accent);
  margin: 1rem 0 0.5rem;
}

.v428-content-section p {
  font-size: 1.4rem;
  color: var(--v428-light);
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

.v428-content-section ul,
.v428-content-section ol {
  padding-left: 2rem;
  margin-bottom: 1rem;
}

.v428-content-section li {
  font-size: 1.4rem;
  color: var(--v428-light);
  line-height: 1.8;
  margin-bottom: 0.4rem;
}

.v428-cta-box {
  background: linear-gradient(135deg, var(--v428-accent-dark) 0%, var(--v428-accent) 100%);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.v428-cta-box:hover {
  transform: scale(1.02);
}

.v428-cta-box h3 {
  color: var(--v428-white);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.v428-cta-box p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.3rem;
}

/* === Breadcrumb === */
.v428-breadcrumb {
  font-size: 1.2rem;
  color: var(--v428-light);
  padding: 1rem 0;
}

.v428-breadcrumb a {
  color: var(--v428-accent);
}

/* === Desktop Media Query === */
@media (min-width: 769px) {
  .v428-bottom-nav {
    display: none;
  }

  .v428-hamburger {
    display: block;
  }

  .v428-main-content {
    padding-bottom: 2rem;
  }
}

/* === Mobile-specific === */
@media (max-width: 768px) {
  .v428-main {
    padding-bottom: 70px;
  }

  .v428-hamburger {
    display: block;
  }

  .v428-game-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
  }

  .v428-game-name {
    font-size: 1rem;
  }
}

@media (max-width: 360px) {
  .v428-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }
}

/* === Category Tabs === */
.v428-cat-tabs {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  padding: 1rem 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.v428-cat-tabs::-webkit-scrollbar {
  display: none;
}

.v428-cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.4rem;
  border-radius: 2rem;
  background: var(--v428-card-bg);
  color: var(--v428-light);
  font-size: 1.3rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid var(--v428-border);
  transition: all 0.3s ease;
}

.v428-cat-tab:hover,
.v428-cat-tab.v428-active {
  background: var(--v428-accent);
  color: var(--v428-white);
  border-color: var(--v428-accent);
}

/* === Trust Badge === */
.v428-trust-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.v428-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--v428-card-bg);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  color: var(--v428-accent);
  border: 1px solid var(--v428-border);
}
