/* ArionPlay CSS - Mobile First Design */
/* All classes use s3df- prefix for namespace isolation */

/* CSS Variables */
:root {
  --s3df-primary: #DDA0DD;
  --s3df-secondary: #E6E6FA;
  --s3df-dark: #2F2F2F;
  --s3df-darker: #212F3D;
  --s3df-gray: #808080;
  --s3df-light: #E6E6FA;
  --s3df-white: #FFFFFF;
  --s3df-text: #E6E6FA;
  --s3df-text-dark: #2F2F2F;
  --s3df-shadow: rgba(0, 0, 0, 0.3);
  --s3df-gradient: linear-gradient(135deg, #DDA0DD 0%, #E6E6FA 100%);
  --s3df-header-height: 60px;
  --s3df-bottom-nav-height: 60px;
}

/* Reset & Base */
* {
  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(--s3df-text);
  background-color: var(--s3df-darker);
  min-width: 320px;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

@media (min-width: 769px) {
  body {
    max-width: 100%;
  }
}

/* Container */
.s3df-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 769px) {
  .s3df-container {
    max-width: 1200px;
  }
}

/* Header */
.s3df-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--s3df-header-height);
  background: var(--s3df-dark);
  box-shadow: 0 2px 10px var(--s3df-shadow);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  max-width: 430px;
  margin: 0 auto;
}

@media (min-width: 769px) {
  .s3df-header {
    max-width: 100%;
  }
}

.s3df-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.s3df-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--s3df-white);
}

.s3df-logo-icon {
  width: 32px;
  height: 32px;
  margin-right: 0.8rem;
}

.s3df-logo-text {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--s3df-primary);
}

.s3df-header-buttons {
  display: flex;
  gap: 0.8rem;
}

.s3df-btn {
  padding: 0.6rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.s3df-btn-register {
  background: var(--s3df-primary);
  color: var(--s3df-darker);
}

.s3df-btn-register:hover {
  background: var(--s3df-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--s3df-shadow);
}

.s3df-btn-login {
  background: transparent;
  color: var(--s3df-primary);
  border: 2px solid var(--s3df-primary);
}

.s3df-btn-login:hover {
  background: var(--s3df-primary);
  color: var(--s3df-darker);
}

.s3df-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 24px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.s3df-menu-toggle span {
  width: 100%;
  height: 3px;
  background: var(--s3df-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.s3df-menu-toggle:hover span {
  background: var(--s3df-secondary);
}

/* Mobile Menu */
.s3df-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  max-width: 430px;
  margin: 0 auto;
}

@media (min-width: 769px) {
  .s3df-mobile-menu {
    max-width: 100%;
  }
}

.s3df-mobile-menu.s3df-menu-open {
  opacity: 1;
  visibility: visible;
}

.s3df-mobile-menu a {
  display: block;
  padding: 1.2rem 2rem;
  font-size: 1.8rem;
  color: var(--s3df-white);
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
}

.s3df-mobile-menu a:hover {
  color: var(--s3df-primary);
  background: rgba(221, 160, 221, 0.1);
  transform: translateX(10px);
}

.s3df-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 3rem;
  color: var(--s3df-white);
  cursor: pointer;
  background: none;
  border: none;
}

/* Main Content */
.s3df-main {
  margin-top: var(--s3df-header-height);
  min-height: calc(100vh - var(--s3df-header-height) - var(--s3df-bottom-nav-height));
  padding-bottom: 80px;
}

@media (min-width: 769px) {
  .s3df-main {
    padding-bottom: 40px;
  }
}

/* Carousel */
.s3df-carousel {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  overflow: hidden;
}

.s3df-carousel-slide {
  width: 100%;
  display: none;
}

.s3df-carousel-slide:first-child {
  display: block;
}

.s3df-carousel-image {
  width: 100%;
  height: auto;
  display: block;
}

.s3df-carousel-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.s3df-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.s3df-carousel-dot.s3df-active {
  background: var(--s3df-primary);
  transform: scale(1.3);
}

/* Section */
.s3df-section {
  padding: 2rem 0;
}

.s3df-section-title {
  font-size: 2rem;
  font-weight: bold;
  color: var(--s3df-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Game Grid */
.s3df-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.s3df-game-item {
  display: block;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.s3df-game-item:hover {
  transform: scale(1.05);
}

.s3df-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: var(--s3df-dark);
  margin-bottom: 0.5rem;
}

.s3df-game-name {
  font-size: 1.1rem;
  color: var(--s3df-text);
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

/* Card */
.s3df-card {
  background: var(--s3df-dark);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px var(--s3df-shadow);
}

.s3df-card-title {
  font-size: 1.6rem;
  color: var(--s3df-primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.s3df-card-content {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--s3df-text);
}

.s3df-card-content p {
  margin-bottom: 1rem;
}

.s3df-card-content a {
  color: var(--s3df-primary);
  text-decoration: none;
  font-weight: 600;
}

.s3df-card-content a:hover {
  text-decoration: underline;
}

/* CTA Button */
.s3df-cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--s3df-gradient);
  color: var(--s3df-darker);
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px var(--s3df-shadow);
  margin: 1rem 0;
}

.s3df-cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px var(--s3df-shadow);
}

/* FAQ Item */
.s3df-faq-item {
  margin-bottom: 1rem;
}

.s3df-faq-question {
  font-size: 1.5rem;
  color: var(--s3df-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.s3df-faq-answer {
  font-size: 1.4rem;
  color: var(--s3df-text);
  line-height: 1.6;
  padding-left: 1rem;
}

/* Bottom Navigation */
.s3df-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--s3df-bottom-nav-height);
  background: var(--s3df-dark);
  box-shadow: 0 -2px 10px var(--s3df-shadow);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
  border-top: 2px solid var(--s3df-primary);
}

@media (min-width: 769px) {
  .s3df-bottom-nav {
    display: none;
  }
}

.s3df-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--s3df-gray);
  min-width: 60px;
  min-height: 60px;
  transition: all 0.3s ease;
  position: relative;
}

.s3df-nav-item:hover {
  color: var(--s3df-primary);
  transform: scale(1.1);
}

.s3df-nav-item.s3df-active {
  color: var(--s3df-primary);
}

.s3df-nav-item.s3df-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--s3df-primary);
  border-radius: 2px;
}

.s3df-nav-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.s3df-nav-text {
  font-size: 10px;
  font-weight: 500;
}

/* Footer */
.s3df-footer {
  background: var(--s3df-dark);
  padding: 2rem 1rem;
  margin-top: 3rem;
}

.s3df-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.s3df-footer-link {
  color: var(--s3df-gray);
  text-decoration: none;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.s3df-footer-link:hover {
  color: var(--s3df-primary);
}

.s3df-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.s3df-partner-logo {
  width: 50px;
  height: 30px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.s3df-partner-logo:hover {
  opacity: 1;
}

.s3df-footer-bottom {
  text-align: center;
  color: var(--s3df-gray);
  font-size: 1.2rem;
  line-height: 1.6;
}

.s3df-copyright {
  margin-top: 1rem;
}

/* Utility Classes */
.s3df-text-center {
  text-align: center;
}

.s3df-mt-1 { margin-top: 1rem; }
.s3df-mt-2 { margin-top: 2rem; }
.s3df-mt-3 { margin-top: 3rem; }
.s3df-mb-1 { margin-bottom: 1rem; }
.s3df-mb-2 { margin-bottom: 2rem; }
.s3df-mb-3 { margin-bottom: 3rem; }

/* Responsive */
@media (max-width: 768px) {
  .s3df-game-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
  }

  .s3df-section-title {
    font-size: 1.8rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.s3df-fade-in {
  animation: fadeIn 0.6s ease-out;
}
