/* Legend Link Layout Styles - Mobile First Design */
/* Prefix: s0b3- for all classes to avoid conflicts */

/* CSS Variables with prefix */
:root {
  --s0b3-primary: #00CED1;
  --s0b3-secondary: #34495E;
  --s0b3-accent1: #FFBF00;
  --s0b3-accent2: #FFCC02;
  --s0b3-highlight: #FF4500;
  --s0b3-text: #ffffff;
  --s0b3-text-dark: #333333;
  --s0b3-bg: #1a1a1a;
  --s0b3-bg-light: #f5f5f5;
  --s0b3-border: #444;
  --s0b3-shadow: rgba(0, 0, 0, 0.3);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  font-family: 'Arial', sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--s0b3-text);
  background: linear-gradient(135deg, var(--s0b3-secondary), #2c3e50);
  min-height: 100vh;
}

/* Layout Components */
.s0b3-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.s0b3-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.s0b3-grid {
  display: grid;
  gap: 1rem;
}

.s0b3-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.s0b3-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.s0b3-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Header Styles */
.s0b3-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--s0b3-secondary), #2c3e50);
  box-shadow: 0 2px 10px var(--s0b3-shadow);
}

.s0b3-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  height: 60px;
}

.s0b3-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--s0b3-primary);
  font-weight: bold;
  font-size: 1.8rem;
}

.s0b3-logo img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.s0b3-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.s0b3-nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.s0b3-nav-toggle span {
  width: 24px;
  height: 3px;
  background: var(--s0b3-primary);
  transition: all 0.3s ease;
}

.s0b3-nav-toggle-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.s0b3-nav-toggle-active span:nth-child(2) {
  opacity: 0;
}

.s0b3-nav-toggle-active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.s0b3-nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--s0b3-secondary);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border-top: 1px solid var(--s0b3-border);
}

.s0b3-nav-menu-active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.s0b3-nav-link {
  display: block;
  padding: 1.2rem;
  color: var(--s0b3-text);
  text-decoration: none;
  border-bottom: 1px solid var(--s0b3-border);
  transition: background-color 0.3s ease;
}

.s0b3-nav-link:hover {
  background-color: var(--s0b3-primary);
  color: var(--s0b3-secondary);
}

/* Main Content */
.s0b3-main {
  flex: 1;
  margin-top: 60px;
  margin-bottom: 64px;
  padding: 2rem 0;
}

/* Button Styles */
.s0b3-btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  background: linear-gradient(135deg, var(--s0b3-primary), var(--s0b3-accent1));
  color: var(--s0b3-secondary);
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  font-size: 1.2rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 44px;
  min-height: 44px;
}

.s0b3-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 206, 209, 0.4);
}

.s0b3-btn-outline {
  background: transparent;
  color: var(--s0b3-primary);
  border: 2px solid var(--s0b3-primary);
}

.s0b3-btn-outline:hover {
  background: var(--s0b3-primary);
  color: var(--s0b3-secondary);
}

.s0b3-btn-large {
  padding: 1.2rem 2.4rem;
  font-size: 1.6rem;
}

.s0b3-btn-block {
  width: 100%;
  display: block;
}

/* Card Component */
.s0b3-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.s0b3-card-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--s0b3-primary);
}

.s0b3-card-content {
  color: var(--s0b3-text);
  line-height: 1.6;
}

/* Game Grid */
.s0b3-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.s0b3-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--s0b3-text);
  padding: 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  min-height: 44px;
}

.s0b3-game-item:hover {
  background: rgba(0, 206, 209, 0.2);
  transform: translateY(-2px);
}

.s0b3-game-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.s0b3-game-name {
  font-size: 1.1rem;
  text-align: center;
  font-weight: 500;
}

/* Slider/Carousel */
.s0b3-slider {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  margin-bottom: 2rem;
}

.s0b3-slider-container {
  display: flex;
  transition: transform 0.5s ease;
}

.s0b3-slide {
  min-width: 100%;
  position: relative;
  cursor: pointer;
}

.s0b3-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Footer */
.s0b3-footer {
  background: var(--s0b3-secondary);
  padding: 2rem 0;
  border-top: 1px solid var(--s0b3-border);
}

.s0b3-footer-content {
  display: grid;
  gap: 2rem;
}

.s0b3-footer-section h3 {
  color: var(--s0b3-primary);
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.s0b3-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.s0b3-footer-link {
  color: var(--s0b3-text);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.s0b3-footer-link:hover {
  color: var(--s0b3-primary);
}

.s0b3-partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.s0b3-partner-logo {
  width: 40px;
  height: 40px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.s0b3-partner-logo:hover {
  opacity: 1;
}

.s0b3-copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--s0b3-border);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
}

/* Bottom Navigation */
.s0b3-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--s0b3-secondary);
  border-top: 1px solid var(--s0b3-border);
  display: flex;
  justify-content: space-around;
  padding: 0.8rem 0;
  z-index: 1000;
}

.s0b3-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  min-width: 44px;
  padding: 0.4rem;
}

.s0b3-bottom-nav-item i {
  font-size: 2.2rem;
  margin-bottom: 0.2rem;
}

.s0b3-bottom-nav-item span {
  font-size: 1rem;
  font-weight: 500;
}

.s0b3-bottom-nav-item:hover,
.s0b3-bottom-nav-item.s0b3-active {
  color: var(--s0b3-primary);
  transform: scale(1.1);
}

/* Utility Classes */
.s0b3-text-center {
  text-align: center;
}

.s0b3-text-left {
  text-align: left;
}

.s0b3-text-right {
  text-align: right;
}

.s0b3-mb-1 { margin-bottom: 1rem; }
.s0b3-mb-2 { margin-bottom: 2rem; }
.s0b3-mt-1 { margin-top: 1rem; }
.s0b3-mt-2 { margin-top: 2rem; }

.s0b3-p-1 { padding: 1rem; }
.s0b3-p-2 { padding: 2rem; }

.s0b3-hidden {
  display: none;
}

.s0b3-visible {
  display: block;
}

/* Responsive Design */
@media (max-width: 375px) {
  .s0b3-container {
    padding: 0 0.8rem;
  }
  
  .s0b3-games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .s0b3-game-icon {
    width: 40px;
    height: 40px;
  }
}

@media (min-width: 431px) {
  .s0b3-container {
    max-width: 480px;
  }
  
  .s0b3-games-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}