/* Jiliko Bond - Theme Styles */
/* Prefix: v04f- for all class names to avoid conflicts */
/* Color Palette: Midnight Blue (#191970) + Cyan (#00CED1) + Royal Blue (#4169E1) */

:root {
  --v04f-primary: #00CED1;
  --v04f-primary-dark: #008B8B;
  --v04f-secondary: #4169E1;
  --v04f-accent: #FFB3FF;
  --v04f-bg: #191970;
  --v04f-bg-lighter: #252B7C;
  --v04f-bg-dark: #0C0C0C;
  --v04f-text: #FAFAFA;
  --v04f-text-muted: #B0B0B0;
  --v04f-border: rgba(0, 206, 209, 0.2);
  --v04f-shadow: rgba(0, 0, 0, 0.3);
  font-size: 62.5%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--v04f-text);
  background: linear-gradient(180deg, var(--v04f-bg) 0%, var(--v04f-bg-lighter) 50%, var(--v04f-bg) 100%);
  min-height: 100vh;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

/* Header Styles */
.v04f-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--v04f-bg) 0%, var(--v04f-bg-lighter) 100%);
  box-shadow: 0 2px 15px rgba(0, 206, 209, 0.3);
  z-index: 1000;
  border-bottom: 2px solid var(--v04f-primary);
}

.v04f-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  height: 60px;
}

.v04f-logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.v04f-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.v04f-site-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v04f-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.v04f-nav-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

/* Button Styles */
.v04f-btn {
  padding: 0.8rem 1.6rem;
  font-size: 1.3rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.v04f-btn-primary {
  background: linear-gradient(135deg, var(--v04f-primary) 0%, var(--v04f-primary-dark) 100%);
  color: var(--v04f-bg);
  box-shadow: 0 4px 12px rgba(0, 206, 209, 0.4);
}

.v04f-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 206, 209, 0.5);
}

.v04f-btn-secondary {
  background: linear-gradient(135deg, var(--v04f-secondary) 0%, var(--v04f-primary) 100%);
  color: var(--v04f-text);
  box-shadow: 0 4px 12px rgba(65, 105, 225, 0.4);
}

.v04f-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(65, 105, 225, 0.5);
}

.v04f-menu-toggle {
  background: transparent;
  border: 2px solid var(--v04f-primary);
  color: var(--v04f-primary);
  padding: 0.6rem;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.v04f-menu-toggle:hover {
  background: var(--v04f-primary);
  color: var(--v04f-bg);
}

/* Mobile Navigation */
.v04f-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1001;
  max-width: 430px;
  margin: 0 auto;
}

.v04f-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.v04f-mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  max-width: 80%;
  height: 100vh;
  background: linear-gradient(180deg, var(--v04f-bg) 0%, var(--v04f-bg-lighter) 100%);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
  transition: right 0.3s ease;
  z-index: 1002;
  overflow-y: auto;
  padding: 8rem 2rem 2rem;
}

.v04f-mobile-nav.active {
  right: 0;
}

.v04f-mobile-nav ul {
  list-style: none;
}

.v04f-mobile-nav li {
  margin-bottom: 1rem;
}

.v04f-mobile-nav a {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem;
  color: var(--v04f-text);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.v04f-mobile-nav a:hover,
.v04f-mobile-nav a.active {
  background: rgba(0, 206, 209, 0.1);
  border-left-color: var(--v04f-primary);
  transform: translateX(5px);
}

.v04f-mobile-nav i {
  font-size: 2rem;
  color: var(--v04f-primary);
  width: 24px;
  text-align: center;
}

/* Main Container */
.v04f-container {
  padding: 8rem 1.5rem 8rem;
  max-width: 430px;
  margin: 0 auto;
}

/* Card Styles */
.v04f-card {
  background: rgba(37, 43, 124, 0.5);
  border: 1px solid var(--v04f-border);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px var(--v04f-shadow);
  backdrop-filter: blur(10px);
}

.v04f-card h2 {
  color: var(--v04f-primary);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.v04f-card h3 {
  color: var(--v04f-secondary);
  font-size: 1.6rem;
  margin: 1.5rem 0 1rem;
  font-weight: 600;
}

.v04f-card p {
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--v04f-text-muted);
}

.v04f-card ul, .v04f-card ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.v04f-card li {
  margin-bottom: 0.8rem;
  color: var(--v04f-text-muted);
  line-height: 1.5;
}

.v04f-card strong {
  color: var(--v04f-primary);
  font-weight: 600;
}

/* Carousel Styles */
.v04f-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 16px rgba(0, 206, 209, 0.2);
}

.v04f-carousel-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}

.v04f-carousel-slide.active {
  display: block;
}

.v04f-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.v04f-carousel-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 10;
}

.v04f-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid var(--v04f-primary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.v04f-carousel-dot.active {
  background: var(--v04f-primary);
  transform: scale(1.3);
}

/* Game Grid */
.v04f-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0;
}

.v04f-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  background: rgba(37, 43, 124, 0.3);
  border: 1px solid var(--v04f-border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.v04f-game-item:hover {
  transform: translateY(-3px);
  background: rgba(0, 206, 209, 0.15);
  border-color: var(--v04f-primary);
  box-shadow: 0 6px 16px rgba(0, 206, 209, 0.3);
}

.v04f-game-icon {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--v04f-border);
}

.v04f-game-name {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--v04f-text);
  text-align: center;
  line-height: 1.3;
  word-break: break-word;
}

/* Section Titles */
.v04f-section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--v04f-primary);
  margin: 3rem 0 2rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 1rem;
}

.v04f-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--v04f-primary), transparent);
}

/* Table Styles */
.v04f-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 1.3rem;
}

.v04f-table th,
.v04f-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--v04f-border);
}

.v04f-table th {
  background: rgba(0, 206, 209, 0.1);
  color: var(--v04f-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.2rem;
}

.v04f-table td {
  color: var(--v04f-text-muted);
}

.v04f-table tr:hover td {
  background: rgba(0, 206, 209, 0.05);
}

/* Text Center Utility */
.v04f-text-center {
  text-align: center;
}

/* Link Button */
.v04f-link-btn {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  margin: 0.5rem;
  background: linear-gradient(135deg, var(--v04f-primary) 0%, var(--v04f-primary-dark) 100%);
  color: var(--v04f-bg);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 206, 209, 0.3);
  cursor: pointer;
  border: none;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.v04f-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 206, 209, 0.5);
  background: linear-gradient(135deg, var(--v04f-primary-dark) 0%, var(--v04f-primary) 100%);
}

/* Footer */
.v04f-footer {
  background: linear-gradient(180deg, var(--v04f-bg-lighter) 0%, var(--v04f-bg-dark) 100%);
  padding: 3rem 1.5rem 9rem;
  margin-top: 4rem;
  border-top: 2px solid var(--v04f-primary);
  text-align: center;
}

.v04f-footer h3 {
  color: var(--v04f-primary);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.v04f-footer p {
  color: var(--v04f-text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.v04f-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.v04f-footer-link {
  color: var(--v04f-text);
  text-decoration: none;
  font-size: 1.3rem;
  padding: 0.8rem 1.2rem;
  background: rgba(0, 206, 209, 0.1);
  border-radius: 6px;
  border: 1px solid var(--v04f-border);
  transition: all 0.3s ease;
}

.v04f-footer-link:hover {
  background: rgba(0, 206, 209, 0.2);
  border-color: var(--v04f-primary);
  transform: translateY(-2px);
}

.v04f-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--v04f-border);
  border-bottom: 1px solid var(--v04f-border);
}

.v04f-partner-logo {
  width: 60px;
  height: 40px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  filter: brightness(1.2);
}

.v04f-partner-logo:hover {
  opacity: 1;
}

.v04f-copyright {
  color: var(--v04f-text-muted);
  font-size: 1.2rem;
  margin-top: 2rem;
  opacity: 0.8;
}

/* Bottom Navigation */
.v04f-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--v04f-bg-lighter) 0%, var(--v04f-bg) 100%);
  border-top: 2px solid var(--v04f-primary);
  box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.3);
  z-index: 999;
  padding: 0.5rem 0;
}

.v04f-bottom-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
}

.v04f-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem;
  text-decoration: none;
  color: var(--v04f-text-muted);
  transition: all 0.3s ease;
  cursor: pointer;
  min-width: 64px;
  min-height: 56px;
  background: transparent;
  border: none;
  font-family: inherit;
}

.v04f-bottom-nav-item:hover,
.v04f-bottom-nav-item.active {
  color: var(--v04f-primary);
  transform: translateY(-2px);
}

.v04f-bottom-nav-icon {
  font-size: 2.4rem;
  transition: all 0.3s ease;
}

.v04f-bottom-nav-item:hover .v04f-bottom-nav-icon,
.v04f-bottom-nav-item.active .v04f-bottom-nav-icon {
  color: var(--v04f-primary);
  transform: scale(1.1);
}

.v04f-bottom-nav-label {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* Responsive Design */
@media (max-width: 380px) {
  :root {
    font-size: 58%;
  }

  .v04f-game-grid {
    grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
    gap: 1rem;
  }

  .v04f-game-icon {
    width: 60px;
    height: 60px;
  }

  .v04f-btn {
    padding: 0.7rem 1.2rem;
    font-size: 1.2rem;
  }
}

@media (min-width: 431px) {
  body {
    max-width: 100%;
  }

  .v04f-header,
  .v04f-nav-overlay,
  .v04f-bottom-nav {
    max-width: 100%;
  }
}

/* Animations */
@keyframes v04f-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes v04f-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.v04f-animate-fade {
  animation: v04f-fadeIn 0.6s ease-out;
}

/* Accessibility */
.v04f-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus Styles */
a:focus,
button:focus {
  outline: 2px solid var(--v04f-primary);
  outline-offset: 2px;
}

/* Loading State */
.v04f-loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 206, 209, 0.3);
  border-radius: 50%;
  border-top-color: var(--v04f-primary);
  animation: spin 0.8s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
