/**
 * Dairy Queen Theme CSS
 * All classes use s26e- prefix for namespace isolation
 * Color palette: #3A3A3A | #BBBBBB | #26A69A
 */

/* CSS Variables */
:root {
  --s26e-primary: #26A69A;
  --s26e-primary-dark: #1E8478;
  --s26e-bg: #3A3A3A;
  --s26e-bg-dark: #2A2A2A;
  --s26e-bg-light: #4A4A4A;
  --s26e-text: #BBBBBB;
  --s26e-text-dark: #888888;
  --s26e-text-light: #E0E0E0;
  --s26e-white: #FFFFFF;
  --s26e-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, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--s26e-text);
  background-color: var(--s26e-bg);
  min-height: 100vh;
}

/* Container and Layout */
.s26e-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.s26e-wrapper {
  width: 100%;
  overflow-x: hidden;
}

.s26e-grid {
  display: grid;
  gap: 1rem;
}

.s26e-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.s26e-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.s26e-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Header Styles */
.s26e-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--s26e-bg-dark);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  padding: 0.8rem 1rem;
}

.s26e-header-container {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.s26e-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--s26e-text-light);
  font-size: 1.4rem;
  font-weight: bold;
}

.s26e-logo-icon {
  width: 28px;
  height: 28px;
}

.s26e-header-actions {
  display: flex;
  gap: 0.5rem;
}

.s26e-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.s26e-btn-primary {
  background-color: var(--s26e-primary);
  color: var(--s26e-white);
}

.s26e-btn-primary:hover {
  background-color: var(--s26e-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(38, 166, 154, 0.3);
}

.s26e-btn-secondary {
  background-color: transparent;
  color: var(--s26e-primary);
  border: 2px solid var(--s26e-primary);
}

.s26e-btn-secondary:hover {
  background-color: var(--s26e-primary);
  color: var(--s26e-white);
}

/* Navigation Menu */
.s26e-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--s26e-text-light);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem;
}

.s26e-nav-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background-color: var(--s26e-bg-dark);
  padding: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  max-width: 430px;
  margin: 0 auto;
}

.s26e-nav-menu a {
  display: block;
  padding: 0.8rem 1rem;
  color: var(--s26e-text);
  text-decoration: none;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.s26e-nav-menu a:hover {
  background-color: var(--s26e-bg-light);
  color: var(--s26e-primary);
}

.s26e-nav-active {
  color: var(--s26e-primary) !important;
  font-weight: bold;
}

/* Main Content */
.s26e-main {
  padding-top: 70px;
  padding-bottom: 80px;
  min-height: 100vh;
}

/* Carousel */
.s26e-carousel {
  position: relative;
  width: 100%;
  margin-bottom: 2rem;
  overflow: hidden;
  border-radius: 8px;
}

.s26e-carousel-slide {
  width: 100%;
  display: block;
}

.s26e-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* Section Styles */
.s26e-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: var(--s26e-bg-dark);
  border-radius: 8px;
}

.s26e-section-title {
  font-size: 2rem;
  color: var(--s26e-primary);
  margin-bottom: 1rem;
  font-weight: bold;
}

.s26e-section-subtitle {
  font-size: 1.6rem;
  color: var(--s26e-text-light);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

/* Card Styles */
.s26e-card {
  background-color: var(--s26e-bg-light);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.s26e-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Game Grid */
.s26e-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.s26e-game-item {
  background-color: var(--s26e-bg-light);
  border-radius: 6px;
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
}

.s26e-game-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(38, 166, 154, 0.3);
}

.s26e-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.s26e-game-name {
  font-size: 1rem;
  color: var(--s26e-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Category Header */
.s26e-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 0.8rem;
  background: linear-gradient(135deg, var(--s26e-bg-light) 0%, var(--s26e-bg) 100%);
  border-radius: 6px;
  border-left: 4px solid var(--s26e-primary);
}

.s26e-category-title {
  font-size: 1.8rem;
  color: var(--s26e-primary);
  font-weight: bold;
}

.s26e-category-count {
  font-size: 1.2rem;
  color: var(--s26e-text-dark);
}

/* Text Styles */
.s26e-h1 {
  font-size: 2.4rem;
  color: var(--s26e-primary);
  margin-bottom: 1rem;
  font-weight: bold;
  line-height: 1.3;
}

.s26e-h2 {
  font-size: 2rem;
  color: var(--s26e-text-light);
  margin-bottom: 1rem;
  font-weight: bold;
}

.s26e-h3 {
  font-size: 1.8rem;
  color: var(--s26e-text);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.s26e-p {
  margin-bottom: 1rem;
  color: var(--s26e-text);
}

.s26e-text-center {
  text-align: center;
}

.s26e-text-primary {
  color: var(--s26e-primary);
}

.s26e-text-bold {
  font-weight: bold;
}

/* Link Styles */
.s26e-link {
  color: var(--s26e-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.s26e-link:hover {
  color: var(--s26e-primary-dark);
  text-decoration: underline;
}

/* Footer */
.s26e-footer {
  background-color: var(--s26e-bg-dark);
  padding: 2rem 1rem;
  margin-top: 2rem;
}

.s26e-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.s26e-footer-link {
  color: var(--s26e-text);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.s26e-footer-link:hover {
  color: var(--s26e-primary);
  background-color: var(--s26e-bg-light);
}

.s26e-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.s26e-partner-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.s26e-partner-icon:hover {
  opacity: 1;
}

.s26e-copyright {
  text-align: center;
  color: var(--s26e-text-dark);
  font-size: 1.1rem;
}

/* Bottom Navigation */
.s26e-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--s26e-bg-dark);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  height: 60px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
}

.s26e-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--s26e-text);
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 8px;
  margin: 4px;
}

.s26e-bottom-nav-item:hover {
  background-color: var(--s26e-bg-light);
  transform: scale(1.05);
}

.s26e-bottom-nav-item.s26e-nav-active {
  color: var(--s26e-primary);
}

.s26e-bottom-nav-icon {
  font-size: 24px;
  margin-bottom: 2px;
}

.s26e-bottom-nav-text {
  font-size: 10px;
  font-weight: 500;
}

/* Utility Classes */
.s26e-mt-1 { margin-top: 1rem; }
.s26e-mt-2 { margin-top: 2rem; }
.s26e-mb-1 { margin-bottom: 1rem; }
.s26e-mb-2 { margin-bottom: 2rem; }
.s26e-p-1 { padding: 1rem; }
.s26e-p-2 { padding: 2rem; }

.s26e-hidden { display: none; }

/* Responsive Design */
@media (max-width: 768px) {
  .s26e-menu-toggle {
    display: block;
  }

  .s26e-main {
    padding-bottom: 80px;
  }
}

@media (min-width: 769px) {
  .s26e-bottom-nav {
    display: none;
  }

  .s26e-main {
    padding-bottom: 2rem;
  }
}

/* Loading Animation */
.s26e-loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--s26e-bg-light);
  border-radius: 50%;
  border-top-color: var(--s26e-primary);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* FAQ Accordion */
.s26e-faq-item {
  margin-bottom: 1rem;
  border-radius: 6px;
  overflow: hidden;
}

.s26e-faq-question {
  background-color: var(--s26e-bg-light);
  padding: 1rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--s26e-text-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.s26e-faq-answer {
  background-color: var(--s26e-bg);
  padding: 1rem;
  display: none;
  color: var(--s26e-text);
}

.s26e-faq-item.active .s26e-faq-answer {
  display: block;
}

/* Promo Box */
.s26e-promo-box {
  background: linear-gradient(135deg, var(--s26e-primary-dark) 0%, var(--s26e-primary) 100%);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--s26e-white);
}

.s26e-promo-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.s26e-promo-desc {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}
