/**
 * Beeking - Design Styles
 * Mobile-first responsive design for beeking.sbs
 * All classes use s38f- prefix for namespace isolation
 */

/* CSS Variables */
:root {
  --s38f-primary: #778899;
  --s38f-secondary: #8B4513;
  --s38f-dark: #1A1A2E;
  --s38f-light: #DEB887;
  --s38f-accent: #CD853F;
  --s38f-text: #DEB887;
  --s38f-bg: #1A1A2E;
  --s38f-white: #FFFFFF;
  --s38f-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(--s38f-text);
  background-color: var(--s38f-bg);
  overflow-x: hidden;
}

/* Container */
.s38f-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.6rem;
}

/* Header */
.s38f-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--s38f-dark) 0%, var(--s38f-secondary) 100%);
  padding: 1.2rem 1.6rem;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.s38f-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 430px;
  margin: 0 auto;
}

.s38f-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--s38f-white);
}

.s38f-logo-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.8rem;
}

.s38f-logo-text {
  font-size: 2rem;
  font-weight: 700;
  color: var(--s38f-light);
}

.s38f-header-buttons {
  display: flex;
  gap: 0.8rem;
}

.s38f-btn {
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 0.8rem;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.s38f-btn-primary {
  background: linear-gradient(135deg, var(--s38f-accent) 0%, var(--s38f-secondary) 100%);
  color: var(--s38f-white);
}

.s38f-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(205, 133, 63, 0.4);
}

.s38f-btn-secondary {
  background: transparent;
  color: var(--s38f-light);
  border: 2px solid var(--s38f-light);
}

.s38f-btn-secondary:hover {
  background: var(--s38f-light);
  color: var(--s38f-dark);
}

.s38f-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.4rem;
  color: var(--s38f-light);
  cursor: pointer;
  padding: 0.4rem;
}

/* Mobile Menu */
.s38f-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 26, 46, 0.98);
  z-index: 9999;
  padding: 8rem 2rem 2rem;
  overflow-y: auto;
}

.s38f-mobile-menu.s38f-menu-open {
  display: block;
}

.s38f-mobile-menu-inner {
  max-width: 430px;
  margin: 0 auto;
}

.s38f-menu-close {
  position: absolute;
  top: 1.2rem;
  right: 1.6rem;
  background: none;
  border: none;
  font-size: 3rem;
  color: var(--s38f-light);
  cursor: pointer;
}

.s38f-menu-list {
  list-style: none;
}

.s38f-menu-item {
  margin-bottom: 0.8rem;
}

.s38f-menu-link {
  display: block;
  padding: 1.2rem 1.6rem;
  color: var(--s38f-light);
  text-decoration: none;
  font-size: 1.8rem;
  border-radius: 0.8rem;
  transition: all 0.3s ease;
}

.s38f-menu-link:hover {
  background: var(--s38f-accent);
  color: var(--s38f-white);
}

/* Main Content */
.s38f-main {
  padding-top: 7.2rem;
  padding-bottom: 8rem;
  min-height: 100vh;
}

/* Carousel */
.s38f-carousel {
  position: relative;
  margin-bottom: 2.4rem;
  overflow: hidden;
  border-radius: 1.2rem;
}

.s38f-carousel-inner {
  position: relative;
  height: 200px;
}

.s38f-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.s38f-carousel-slide.s38f-active {
  opacity: 1;
}

.s38f-carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s38f-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
}

.s38f-carousel-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(222, 184, 135, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.s38f-carousel-dot.s38f-active {
  background: var(--s38f-light);
  transform: scale(1.2);
}

/* Title */
.s38f-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--s38f-light);
  margin-bottom: 1.6rem;
  text-align: center;
}

/* Section */
.s38f-section {
  margin-bottom: 3.2rem;
}

.s38f-section-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--s38f-accent);
  margin-bottom: 1.2rem;
  padding-left: 1rem;
  border-left: 4px solid var(--s38f-accent);
}

/* Game Grid */
.s38f-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.s38f-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.s38f-game-item:hover {
  transform: scale(1.05);
}

.s38f-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.8rem;
  margin-bottom: 0.4rem;
}

.s38f-game-name {
  font-size: 1.1rem;
  text-align: center;
  color: var(--s38f-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

/* Card */
.s38f-card {
  background: linear-gradient(135deg, rgba(119, 136, 153, 0.2) 0%, rgba(139, 69, 19, 0.2) 100%);
  border-radius: 1.2rem;
  padding: 2rem;
  margin-bottom: 1.6rem;
  border: 1px solid rgba(222, 184, 135, 0.3);
}

.s38f-card-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--s38f-accent);
  margin-bottom: 1rem;
}

.s38f-card-content {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--s38f-text);
}

/* Footer */
.s38f-footer {
  background: linear-gradient(135deg, var(--s38f-dark) 0%, var(--s38f-secondary) 100%);
  padding: 3.2rem 1.6rem 8rem;
}

.s38f-footer-inner {
  max-width: 430px;
  margin: 0 auto;
}

.s38f-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.s38f-footer-link {
  color: var(--s38f-light);
  text-decoration: none;
  font-size: 1.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 0.4rem;
  transition: all 0.3s ease;
}

.s38f-footer-link:hover {
  background: var(--s38f-accent);
  color: var(--s38f-white);
}

.s38f-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.s38f-partner-logo {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.s38f-partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

.s38f-copyright {
  text-align: center;
  color: var(--s38f-text);
  font-size: 1.2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(222, 184, 135, 0.2);
}

/* Bottom Navigation */
.s38f-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--s38f-dark) 0%, var(--s38f-secondary) 100%);
  padding: 0.8rem 0;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.s38f-bottom-nav-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.s38f-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--s38f-light);
  padding: 0.4rem;
  border-radius: 0.8rem;
  min-width: 60px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.s38f-bottom-nav-item:hover,
.s38f-bottom-nav-item.s38f-active {
  background: rgba(205, 133, 63, 0.2);
  transform: scale(1.1);
}

.s38f-bottom-nav-icon {
  font-size: 2.4rem;
}

.s38f-bottom-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

/* Desktop Styles */
@media (min-width: 769px) {
  .s38f-bottom-nav {
    display: none;
  }

  .s38f-main {
    padding-bottom: 2rem;
  }

  .s38f-footer {
    padding-bottom: 3.2rem;
  }

  .s38f-menu-toggle {
    display: block;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .s38f-menu-toggle {
    display: block;
  }
}

/* Utility Classes */
.s38f-text-center {
  text-align: center;
}

.s38f-mt-1 {
  margin-top: 1rem;
}

.s38f-mt-2 {
  margin-top: 2rem;
}

.s38f-mb-1 {
  margin-bottom: 1rem;
}

.s38f-mb-2 {
  margin-bottom: 2rem;
}

.s38f-promo-link {
  color: var(--s38f-accent);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.s38f-promo-link:hover {
  text-decoration: underline;
}
