/**
 * 365 Login - Core CSS Stylesheet
 * Prefix: sa80-
 * Color Palette: #BA55D3 (orchid), #DDA0DD (plum), #333333 (charcoal),
 *                #EE82EE (violet), #FF4500 (orange-red)
 */

/* CSS Variables */
:root {
  --sa80-primary: #BA55D3;
  --sa80-secondary: #DDA0DD;
  --sa80-bg-dark: #1a1a2e;
  --sa80-bg-darker: #0f0f1e;
  --sa80-bg-card: #16213e;
  --sa80-accent: #FF4500;
  --sa80-violet: #EE82EE;
  --sa80-text-light: #f0e6ff;
  --sa80-text-muted: #b8a9c9;
  --sa80-border: rgba(186, 85, 211, 0.25);
  --sa80-gradient: linear-gradient(135deg, #BA55D3 0%, #EE82EE 50%, #FF4500 100%);
  --sa80-shadow: 0 4px 20px rgba(186, 85, 211, 0.3);
  --sa80-radius: 12px;
  --sa80-radius-sm: 8px;
  --sa80-header-h: 56px;
  --sa80-bottom-nav-h: 60px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--sa80-bg-dark);
  color: var(--sa80-text-light);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}

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

/* ===== HEADER ===== */
.sa80-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--sa80-header-h);
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  border-bottom: 1px solid var(--sa80-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1000;
}
.sa80-logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.sa80-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.sa80-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  background: var(--sa80-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}
.sa80-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sa80-btn-register {
  background: linear-gradient(135deg, #FF4500, #FF6B35);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.sa80-btn-register:hover { transform: scale(1.05); box-shadow: 0 2px 12px rgba(255,69,0,0.5); }
.sa80-btn-login {
  background: transparent;
  color: var(--sa80-primary);
  border: 1.5px solid var(--sa80-primary);
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.sa80-btn-login:hover { background: rgba(186,85,211,0.15); }
.sa80-hamburger {
  background: none;
  border: none;
  color: var(--sa80-text-light);
  font-size: 2rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
}
.sa80-hamburger:hover { color: var(--sa80-primary); }

/* ===== MOBILE MENU ===== */
.sa80-mobile-menu {
  position: fixed;
  top: var(--sa80-header-h);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: #16213e;
  border-bottom: 2px solid var(--sa80-primary);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  z-index: 9999;
}
.sa80-menu-active { max-height: 500px; padding: 1rem 0; }
.sa80-menu-link {
  display: block;
  padding: 1rem 2rem;
  color: var(--sa80-text-light);
  text-decoration: none;
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(186,85,211,0.1);
  transition: all 0.2s;
}
.sa80-menu-link:hover {
  background: rgba(186,85,211,0.1);
  color: var(--sa80-primary);
  padding-left: 2.5rem;
}

/* ===== CAROUSEL ===== */
.sa80-carousel {
  position: relative;
  width: 100%;
  margin-top: var(--sa80-header-h);
  overflow: hidden;
  border-radius: 0 0 var(--sa80-radius) var(--sa80-radius);
}
.sa80-carousel-inner { position: relative; width: 100%; aspect-ratio: 16/9; }
.sa80-carousel-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  cursor: pointer;
}
.sa80-slide-active { opacity: 1; }
.sa80-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.sa80-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}
.sa80-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.sa80-dot-active { background: var(--sa80-accent); transform: scale(1.3); }

/* ===== SECTION STYLES ===== */
.sa80-section {
  padding: 2rem 0;
}
.sa80-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  padding: 0 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sa80-section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--sa80-gradient);
  border-radius: 2px;
}

/* ===== GAME GRID ===== */
.sa80-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0 1.2rem;
}
.sa80-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
  text-decoration: none;
}
.sa80-game-card:hover { transform: translateY(-3px); }
.sa80-game-img {
  width: 72px;
  height: 72px;
  border-radius: var(--sa80-radius-sm);
  object-fit: cover;
  border: 2px solid var(--sa80-border);
  transition: border-color 0.3s;
}
.sa80-game-card:hover .sa80-game-img { border-color: var(--sa80-primary); }
.sa80-game-name {
  font-size: 1.05rem;
  color: var(--sa80-text-muted);
  text-align: center;
  margin-top: 4px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 80px;
}

/* ===== BUTTONS ===== */
.sa80-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 25px;
  font-size: 1.4rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}
.sa80-btn-primary {
  background: var(--sa80-gradient);
  color: #fff;
  box-shadow: 0 4px 15px rgba(186,85,211,0.4);
}
.sa80-btn-primary:hover { transform: scale(1.05); box-shadow: 0 6px 25px rgba(186,85,211,0.6); }
.sa80-btn-accent {
  background: linear-gradient(135deg, #FF4500, #FF6B35);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255,69,0,0.4);
}
.sa80-btn-accent:hover { transform: scale(1.05); }
.sa80-btn-outline {
  background: transparent;
  color: var(--sa80-primary);
  border: 2px solid var(--sa80-primary);
}
.sa80-btn-outline:hover { background: rgba(186,85,211,0.1); }

/* ===== CARDS ===== */
.sa80-card {
  background: var(--sa80-bg-card);
  border: 1px solid var(--sa80-border);
  border-radius: var(--sa80-radius);
  padding: 1.6rem;
  margin-bottom: 1.2rem;
}
.sa80-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--sa80-violet);
}

/* ===== CONTENT BLOCKS ===== */
.sa80-content-block {
  padding: 2rem 1.2rem;
}
.sa80-content-block h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--sa80-violet);
}
.sa80-content-block h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 1.2rem 0 0.8rem;
  color: var(--sa80-primary);
}
.sa80-content-block p {
  color: var(--sa80-text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}
.sa80-content-block ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}
.sa80-content-block li {
  padding: 0.4rem 0 0.4rem 1.6rem;
  position: relative;
  color: var(--sa80-text-muted);
  font-size: 1.3rem;
  line-height: 1.5;
}
.sa80-content-block li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--sa80-primary);
  border-radius: 50%;
}

/* ===== FOOTER ===== */
.sa80-footer {
  background: var(--sa80-bg-darker);
  border-top: 1px solid var(--sa80-border);
  padding: 2.4rem 1.2rem 3rem;
  margin-top: 2rem;
}
.sa80-footer-brand {
  font-size: 1.3rem;
  color: var(--sa80-text-muted);
  line-height: 1.6;
  margin-bottom: 1.6rem;
}
.sa80-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.6rem;
}
.sa80-footer-link {
  padding: 6px 14px;
  background: rgba(186,85,211,0.1);
  border: 1px solid var(--sa80-border);
  border-radius: 20px;
  color: var(--sa80-text-light);
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.2s;
}
.sa80-footer-link:hover {
  background: var(--sa80-primary);
  color: #fff;
}
.sa80-footer-sitename {
  font-weight: 700;
  background: var(--sa80-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sa80-footer-copyright {
  font-size: 1.1rem;
  color: var(--sa80-text-muted);
  text-align: center;
  padding-top: 1.2rem;
  border-top: 1px solid var(--sa80-border);
}

/* ===== BOTTOM NAV ===== */
.sa80-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--sa80-bottom-nav-h);
  background: linear-gradient(180deg, #16213e 0%, #0f0f1e 100%);
  border-top: 1.5px solid var(--sa80-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 4px 0;
}
.sa80-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 50px;
  background: none;
  border: none;
  color: var(--sa80-text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 2px;
  border-radius: 10px;
}
.sa80-bottom-nav-btn:hover {
  color: var(--sa80-primary);
  background: rgba(186,85,211,0.1);
}
.sa80-bottom-nav-btn.sa80-nav-active {
  color: var(--sa80-accent);
}
.sa80-bottom-nav-btn.sa80-nav-active::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--sa80-accent);
  border-radius: 1px;
  margin-top: 2px;
}
.sa80-bottom-nav-icon {
  font-size: 22px;
  margin-bottom: 2px;
}
.sa80-bottom-nav-label {
  font-size: 1rem;
  white-space: nowrap;
}

/* ===== PROMO LINK STYLES ===== */
.sa80-promo-text {
  color: var(--sa80-accent);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}
.sa80-promo-text:hover { color: #FF6B35; text-decoration: underline; }

.sa80-promo-banner {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, rgba(186,85,211,0.2), rgba(255,69,0,0.2));
  border: 1px solid var(--sa80-border);
  border-radius: var(--sa80-radius);
  padding: 1.4rem;
  text-align: center;
  margin: 1.2rem 0;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.sa80-promo-banner:hover {
  border-color: var(--sa80-primary);
  transform: scale(1.02);
}
.sa80-promo-banner-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--sa80-text-light);
}

/* ===== HELPER CLASSES ===== */
.sa80-text-center { text-align: center; }
.sa80-text-gradient {
  background: var(--sa80-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sa80-mt-1 { margin-top: 0.8rem; }
.sa80-mt-2 { margin-top: 1.6rem; }
.sa80-mb-1 { margin-bottom: 0.8rem; }
.sa80-mb-2 { margin-bottom: 1.6rem; }
.sa80-flex-center { display: flex; align-items: center; justify-content: center; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}
@media (min-width: 769px) {
  .sa80-bottom-nav { display: none; }
}
