/**
 * legendlink CSS Stylesheet
 * Mobile-first responsive design for gaming website
 */

/* CSS Variables */
:root {
  --pg6f-primary: #FFB3FF;
  --pg6f-secondary: #6495ED;
  --pg6f-accent: #FF69B4;
  --pg6f-highlight: #FF1493;
  --pg6f-dark: #1A1A1A;
  --pg6f-darker: #0d0d0d;
  --pg6f-light: #ffffff;
  --pg6f-gray: #cccccc;
  --pg6f-text-dark: #333333;
  --pg6f-text-light: #f5f5f5;
}

/* 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;
  background-color: var(--pg6f-dark);
  color: var(--pg6f-text-light);
  min-height: 100vh;
  padding-bottom: 80px;
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

/* Container */
.pg6f-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

.pg6f-wrapper {
  background: linear-gradient(135deg, var(--pg6f-dark) 0%, #2a2a2a 100%);
  min-height: 100vh;
}

/* Header */
.pg6f-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--pg6f-darker) 0%, var(--pg6f-dark) 100%);
  border-bottom: 2px solid var(--pg6f-accent);
  z-index: 1000;
  padding: 0.8rem 0;
  box-shadow: 0 4px 12px rgba(255, 105, 180, 0.3);
}

.pg6f-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.pg6f-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--pg6f-primary);
  font-size: 1.8rem;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 179, 255, 0.5);
}

.pg6f-logo img {
  width: 28px;
  height: 28px;
  margin-right: 0.5rem;
  border-radius: 4px;
}

.pg6f-header-buttons {
  display: flex;
  gap: 0.8rem;
}

.pg6f-btn {
  padding: 0.6rem 1.2rem;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
}

.pg6f-btn-primary {
  background: linear-gradient(135deg, var(--pg6f-accent) 0%, var(--pg6f-highlight) 100%);
  color: var(--pg6f-light);
  box-shadow: 0 4px 12px rgba(255, 20, 147, 0.4);
}

.pg6f-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 20, 147, 0.6);
}

.pg6f-btn-secondary {
  background: linear-gradient(135deg, var(--pg6f-secondary) 0%, var(--pg6f-primary) 100%);
  color: var(--pg6f-light);
  box-shadow: 0 4px 12px rgba(100, 149, 237, 0.4);
}

.pg6f-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(100, 149, 237, 0.6);
}

.pg6f-touch-active {
  transform: scale(0.95);
}

/* Menu Toggle */
.pg6f-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 24px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.pg6f-menu-toggle span {
  width: 100%;
  height: 3px;
  background: var(--pg6f-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Menu */
.pg6f-mobile-menu {
  position: fixed;
  top: 60px;
  left: -100%;
  width: 80%;
  max-width: 300px;
  height: calc(100vh - 60px);
  background: linear-gradient(180deg, var(--pg6f-darker) 0%, var(--pg6f-dark) 100%);
  z-index: 9999;
  transition: left 0.3s ease;
  overflow-y: auto;
  padding: 1rem 0;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.5);
}

.pg6f-mobile-menu.pg6f-menu-open {
  left: 0;
}

.pg6f-menu-overlay {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  display: none;
}

.pg6f-menu-overlay.pg6f-menu-open {
  display: block;
}

.pg6f-menu-item {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--pg6f-text-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 179, 255, 0.1);
  transition: all 0.3s ease;
  font-size: 1.5rem;
}

.pg6f-menu-item:hover {
  background: rgba(255, 105, 180, 0.2);
  padding-left: 2rem;
  color: var(--pg6f-primary);
}

/* Main Content */
.pg6f-main {
  padding-top: 60px;
  min-height: calc(100vh - 140px);
}

.pg6f-section {
  padding: 2rem 0;
}

.pg6f-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--pg6f-primary);
  margin-bottom: 1.5rem;
  text-align: center;
  text-shadow: 0 0 10px rgba(255, 179, 255, 0.5);
}

/* Carousel */
.pg6f-carousel {
  position: relative;
  margin-bottom: 2rem;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(255, 105, 180, 0.3);
}

.pg6f-carousel-slide {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.pg6f-carousel-slide:hover {
  transform: scale(1.05);
}

/* Grid Layouts */
.pg6f-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.pg6f-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.pg6f-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Game Card */
.pg6f-game-card {
  background: linear-gradient(135deg, rgba(255, 105, 180, 0.1) 0%, rgba(100, 149, 237, 0.1) 100%);
  border: 1px solid rgba(255, 179, 255, 0.2);
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.pg6f-game-card:hover {
  transform: translateY(-4px);
  border-color: var(--pg6f-accent);
  box-shadow: 0 6px 16px rgba(255, 105, 180, 0.4);
}

.pg6f-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.pg6f-game-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--pg6f-text-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Card Component */
.pg6f-card {
  background: linear-gradient(135deg, rgba(255, 105, 180, 0.15) 0%, rgba(100, 149, 237, 0.15) 100%);
  border: 1px solid rgba(255, 179, 255, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pg6f-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pg6f-accent);
  margin-bottom: 1rem;
}

.pg6f-card-text {
  font-size: 1.4rem;
  color: var(--pg6f-text-light);
  line-height: 1.6;
}

.pg6f-card-text a {
  color: var(--pg6f-primary);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--pg6f-accent);
}

.pg6f-card-text a:hover {
  color: var(--pg6f-accent);
  border-bottom-color: var(--pg6f-highlight);
}

/* Bottom Navigation */
.pg6f-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--pg6f-dark) 0%, var(--pg6f-darker) 100%);
  border-top: 2px solid var(--pg6f-accent);
  z-index: 1000;
  height: 60px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -4px 12px rgba(255, 105, 180, 0.3);
}

@media (min-width: 769px) {
  .pg6f-bottom-nav {
    display: none;
  }
}

.pg6f-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--pg6f-gray);
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 8px;
}

.pg6f-nav-item:hover {
  background: rgba(255, 105, 180, 0.2);
  color: var(--pg6f-primary);
}

.pg6f-nav-item.pg6f-nav-active {
  color: var(--pg6f-accent);
}

.pg6f-nav-icon {
  font-size: 22px;
  margin-bottom: 0.3rem;
}

.pg6f-nav-text {
  font-size: 10px;
  font-weight: 500;
}

/* Footer */
.pg6f-footer {
  background: linear-gradient(180deg, var(--pg6f-dark) 0%, var(--pg6f-darker) 100%);
  border-top: 2px solid var(--pg6f-accent);
  padding: 2rem 0;
  margin-top: 2rem;
}

.pg6f-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.pg6f-footer-link {
  color: var(--pg6f-primary);
  text-decoration: none;
  font-size: 1.3rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 105, 180, 0.1);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.pg6f-footer-link:hover {
  background: rgba(255, 105, 180, 0.3);
  color: var(--pg6f-accent);
  transform: translateY(-2px);
}

.pg6f-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.pg6f-partner-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.pg6f-partner-logo:hover {
  opacity: 1;
  transform: scale(1.1);
}

.pg6f-copyright {
  text-align: center;
  color: var(--pg6f-gray);
  font-size: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 179, 255, 0.2);
}

/* Utility Classes */
.pg6f-text-center {
  text-align: center;
}

.pg6f-mb-1 { margin-bottom: 1rem; }
.pg6f-mb-2 { margin-bottom: 2rem; }
.pg6f-mt-1 { margin-top: 1rem; }
.pg6f-mt-2 { margin-top: 2rem; }

.pg6f-highlight {
  color: var(--pg6f-accent);
  font-weight: 600;
}

.pg6f-promo-link {
  color: var(--pg6f-highlight);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--pg6f-accent);
  cursor: pointer;
}

.pg6f-promo-link:hover {
  color: var(--pg6f-primary);
  border-bottom-color: var(--pg6f-highlight);
}

/* Responsive */
@media (max-width: 768px) {
  .pg6f-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pg6f-title {
    font-size: 1.8rem;
  }
}
