/**
 * 666phl Website Styles
 * Mobile-first responsive design with color palette:
 * - Primary: #FF1493 (Deep Pink)
 * - Secondary: #FFB3BA (Light Pink)
 * - Background: #1E1E1E (Dark Gray)
 * - Text: #D3D3D3 (Light Gray)
 */

/* ===== CSS Reset & Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --w7fe3-primary: #FF1493;
  --w7fe3-secondary: #FFB3BA;
  --w7fe3-bg: #1E1E1E;
  --w7fe3-bg-dark: #0a0a0a;
  --w7fe3-bg-card: #2a2a2a;
  --w7fe3-text: #D3D3D3;
  --w7fe3-text-light: #ffffff;
  --w7fe3-text-dark: #666666;
  --w7fe3-border: #FF1493;
  --w7fe3-shadow: rgba(255, 20, 147, 0.3);
  --w7fe3-gradient: linear-gradient(135deg, #FF1493 0%, #FFB3BA 100%);
}

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(--w7fe3-text);
  background-color: var(--w7fe3-bg);
  min-width: 320px;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

body.w7fe3-loaded {
  animation: w7fe3-fadeIn 0.3s ease-in;
}

@keyframes w7fe3-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== Header Navigation ===== */
.w7fe3-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 60px;
  background: var(--w7fe3-bg-dark);
  border-bottom: 2px solid var(--w7fe3-primary);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  box-shadow: 0 2px 10px var(--w7fe3-shadow);
}

.w7fe3-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--w7fe3-text-light);
  font-weight: bold;
  font-size: 1.8rem;
}

.w7fe3-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.w7fe3-header-buttons {
  display: flex;
  gap: 0.8rem;
}

.w7fe3-btn {
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.w7fe3-btn-primary {
  background: var(--w7fe3-primary);
  color: var(--w7fe3-text-light);
}

.w7fe3-btn-primary:hover {
  background: #ff33a8;
  transform: scale(1.05);
  box-shadow: 0 4px 15px var(--w7fe3-shadow);
}

.w7fe3-btn-secondary {
  background: transparent;
  color: var(--w7fe3-primary);
  border: 2px solid var(--w7fe3-primary);
}

.w7fe3-btn-secondary:hover {
  background: var(--w7fe3-primary);
  color: var(--w7fe3-text-light);
}

.w7fe3-menu-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--w7fe3-text-light);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 769px) {
  .w7fe3-menu-toggle {
    display: none;
  }
}

/* ===== Mobile Menu ===== */
.w7fe3-mobile-menu {
  position: fixed;
  top: 60px;
  left: -100%;
  width: 100%;
  max-width: 430px;
  height: calc(100vh - 60px);
  background: var(--w7fe3-bg-dark);
  transition: left 0.3s ease;
  z-index: 9999;
  overflow-y: auto;
  padding: 1rem 0;
}

.w7fe3-mobile-menu.w7fe3-menu-open {
  left: 0;
}

.w7fe3-menu-list {
  list-style: none;
}

.w7fe3-menu-item {
  border-bottom: 1px solid #333;
}

.w7fe3-menu-link {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--w7fe3-text);
  text-decoration: none;
  font-size: 1.6rem;
  transition: all 0.3s ease;
}

.w7fe3-menu-link:hover,
.w7fe3-menu-link.w7fe3-active {
  background: var(--w7fe3-primary);
  color: var(--w7fe3-text-light);
  padding-left: 2rem;
}

/* ===== Main Content ===== */
.w7fe3-main {
  margin-top: 60px;
  padding: 1.5rem;
  min-height: calc(100vh - 200px);
}

@media (max-width: 768px) {
  .w7fe3-main {
    padding-bottom: 80px;
  }
}

/* ===== Carousel ===== */
.w7fe3-carousel {
  position: relative;
  width: 100%;
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--w7fe3-shadow);
}

.w7fe3-carousel-slide {
  width: 100%;
}

.w7fe3-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.w7fe3-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.w7fe3-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.w7fe3-carousel-dot.w7fe3-active {
  background: var(--w7fe3-primary);
  width: 30px;
  border-radius: 5px;
}

/* ===== Section Styles ===== */
.w7fe3-section {
  margin-bottom: 2.5rem;
}

.w7fe3-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--w7fe3-primary);
  margin-bottom: 1.5rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.w7fe3-section-title span {
  color: var(--w7fe3-text-light);
}

/* ===== Game Grid ===== */
.w7fe3-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.w7fe3-game-item {
  background: var(--w7fe3-bg-card);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.w7fe3-game-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 15px var(--w7fe3-shadow);
}

.w7fe3-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.w7fe3-game-name {
  padding: 0.5rem;
  font-size: 1.1rem;
  text-align: center;
  color: var(--w7fe3-text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Card Styles ===== */
.w7fe3-card {
  background: var(--w7fe3-bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #333;
  transition: all 0.3s ease;
}

.w7fe3-card:hover {
  border-color: var(--w7fe3-primary);
  box-shadow: 0 4px 20px var(--w7fe3-shadow);
}

.w7fe3-card-title {
  font-size: 1.8rem;
  color: var(--w7fe3-primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.w7fe3-card-content {
  color: var(--w7fe3-text);
  line-height: 1.6;
}

/* ===== Featured Games ===== */
.w7fe3-category {
  margin-bottom: 2.5rem;
}

.w7fe3-category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--w7fe3-primary);
}

.w7fe3-category-icon {
  font-size: 2rem;
  color: var(--w7fe3-primary);
}

.w7fe3-category-title {
  font-size: 1.8rem;
  color: var(--w7fe3-text-light);
  font-weight: 700;
  text-transform: uppercase;
}

/* ===== Footer ===== */
.w7fe3-footer {
  background: var(--w7fe3-bg-dark);
  border-top: 2px solid var(--w7fe3-primary);
  padding: 2rem 1.5rem;
  margin-top: 2rem;
}

.w7fe3-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.w7fe3-footer-link {
  color: var(--w7fe3-text);
  text-decoration: none;
  font-size: 1.3rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.w7fe3-footer-link:hover {
  background: var(--w7fe3-primary);
  color: var(--w7fe3-text-light);
}

.w7fe3-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.w7fe3-partner-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 4px;
}

.w7fe3-copyright {
  text-align: center;
  color: var(--w7fe3-text-dark);
  font-size: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid #333;
}

/* ===== Bottom Navigation (Mobile) ===== */
.w7fe3-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 60px;
  background: var(--w7fe3-bg-dark);
  border-top: 2px solid var(--w7fe3-primary);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  box-shadow: 0 -2px 10px var(--w7fe3-shadow);
}

@media (min-width: 769px) {
  .w7fe3-bottom-nav {
    display: none;
  }
}

.w7fe3-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--w7fe3-text);
  transition: all 0.3s ease;
  padding: 0.3rem;
}

.w7fe3-nav-item.w7fe3-active {
  color: var(--w7fe3-primary);
  background: rgba(255, 20, 147, 0.1);
}

.w7fe3-nav-item:hover {
  color: var(--w7fe3-primary);
  transform: scale(1.1);
}

.w7fe3-nav-icon {
  font-size: 2.2rem;
  margin-bottom: 0.2rem;
}

.w7fe3-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

/* ===== Utility Classes ===== */
.w7fe3-text-center {
  text-align: center;
}

.w7fe3-text-primary {
  color: var(--w7fe3-primary);
}

.w7fe3-mt-1 { margin-top: 1rem; }
.w7fe3-mt-2 { margin-top: 2rem; }
.w7fe3-mb-1 { margin-bottom: 1rem; }
.w7fe3-mb-2 { margin-bottom: 2rem; }

/* ===== Link Styles ===== */
.w7fe3-link {
  color: var(--w7fe3-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.w7fe3-link:hover {
  color: var(--w7fe3-secondary);
  text-decoration: underline;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 380px) {
  .w7fe3-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .w7fe3-section-title {
    font-size: 1.7rem;
  }
}
