/* 365 login - Main Stylesheet */
/* All classes use prefix: s3a8- */

/* Root variables */
:root {
  --s3a8-primary: #CD853F;
  --s3a8-secondary: #D2691E;
  --s3a8-dark: #6F4E37;
  --s3a8-darker: #333333;
  --s3a8-gray: #A9A9A9;
  --s3a8-green: #00FF00;
  --s3a8-light: #F5F5F5;
  --s3a8-white: #FFFFFF;
  --s3a8-black: #000000;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--s3a8-white);
  background-color: var(--s3a8-darker);
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
}

/* Header styles */
.s3a8-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--s3a8-dark) 0%, var(--s3a8-darker) 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  padding: 0.8rem 1rem;
}

.s3a8-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
}

.s3a8-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--s3a8-white);
}

.s3a8-logo img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.s3a8-logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--s3a8-primary);
}

.s3a8-header-buttons {
  display: flex;
  gap: 0.5rem;
}

.s3a8-btn {
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.s3a8-btn-register {
  background: var(--s3a8-primary);
  color: var(--s3a8-white);
}

.s3a8-btn-register:hover {
  background: var(--s3a8-secondary);
  transform: scale(1.05);
}

.s3a8-btn-login {
  background: transparent;
  color: var(--s3a8-white);
  border: 2px solid var(--s3a8-primary);
}

.s3a8-btn-login:hover {
  background: var(--s3a8-primary);
  transform: scale(1.05);
}

/* Mobile menu */
.s3a8-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
  z-index: 10001;
}

.s3a8-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--s3a8-white);
  transition: all 0.3s ease;
}

.s3a8-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  max-width: 300px;
  height: 100vh;
  background: var(--s3a8-darker);
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
  transition: right 0.3s ease;
  z-index: 9999;
  padding: 4rem 1rem 1rem;
  overflow-y: auto;
}

.s3a8-mobile-menu.s3a8-menu-open {
  right: 0;
}

.s3a8-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--s3a8-white);
  font-size: 2rem;
  cursor: pointer;
}

.s3a8-menu-items {
  list-style: none;
}

.s3a8-menu-items li {
  margin-bottom: 0.5rem;
}

.s3a8-menu-items a {
  display: block;
  padding: 0.8rem 1rem;
  color: var(--s3a8-white);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s ease;
  font-size: 1.4rem;
}

.s3a8-menu-items a:hover {
  background: var(--s3a8-dark);
}

/* Main content */
.s3a8-main {
  margin-top: 60px;
  padding: 1rem;
  padding-bottom: 80px;
}

.s3a8-container {
  max-width: 430px;
  margin: 0 auto;
}

/* Carousel */
.s3a8-carousel {
  position: relative;
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.s3a8-carousel-slide {
  width: 100%;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.s3a8-carousel-slide:hover {
  transform: scale(1.02);
}

/* Section styles */
.s3a8-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--s3a8-dark) 0%, var(--s3a8-darker) 100%);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.s3a8-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--s3a8-primary);
  margin-bottom: 1rem;
  text-align: center;
}

.s3a8-section-content {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--s3a8-gray);
}

.s3a8-section-content p {
  margin-bottom: 1rem;
}

/* Game grid */
.s3a8-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 1rem;
}

.s3a8-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.s3a8-game-item:hover {
  transform: scale(1.05);
}

.s3a8-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.s3a8-game-name {
  font-size: 1.1rem;
  color: var(--s3a8-white);
  text-align: center;
  line-height: 1.3;
}

/* Promotional links */
.s3a8-promo-link {
  color: var(--s3a8-primary);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.s3a8-promo-link:hover {
  color: var(--s3a8-secondary);
  text-decoration: underline;
}

/* Bottom navigation */
.s3a8-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--s3a8-dark) 0%, var(--s3a8-darker) 100%);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  padding: 0.5rem 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
}

.s3a8-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  color: var(--s3a8-gray);
  min-width: 60px;
  min-height: 60px;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.s3a8-nav-item:hover,
.s3a8-nav-item.s3a8-active {
  color: var(--s3a8-primary);
  transform: scale(1.1);
}

.s3a8-nav-icon {
  font-size: 24px;
}

.s3a8-nav-text {
  font-size: 1rem;
  font-weight: 600;
}

/* Footer */
.s3a8-footer {
  background: var(--s3a8-darker);
  padding: 2rem 1rem;
  margin-top: 2rem;
}

.s3a8-footer-content {
  max-width: 430px;
  margin: 0 auto;
}

.s3a8-footer-description {
  font-size: 1.2rem;
  color: var(--s3a8-gray);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: center;
}

.s3a8-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.s3a8-footer-link {
  color: var(--s3a8-primary);
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.s3a8-footer-link:hover {
  color: var(--s3a8-secondary);
  text-decoration: underline;
}

.s3a8-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.s3a8-partner-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.s3a8-partner-logo:hover {
  opacity: 1;
}

.s3a8-copyright {
  text-align: center;
  font-size: 1rem;
  color: var(--s3a8-gray);
  margin-top: 1rem;
}

/* Responsive */
@media (min-width: 769px) {
  .s3a8-bottom-nav {
    display: none;
  }

  .s3a8-main {
    padding-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .s3a8-main {
    padding-bottom: 80px;
  }
}

/* Utility classes */
.s3a8-text-center {
  text-align: center;
}

.s3a8-mb-1 {
  margin-bottom: 1rem;
}

.s3a8-mb-2 {
  margin-bottom: 2rem;
}

.s3a8-highlight {
  color: var(--s3a8-primary);
  font-weight: 700;
}
