﻿/* ========================================
   BLOXGAME.EU - STYLE.CSS
   Roblox-inspired modern design
   ======================================== */

/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Roblox-inspired colors */
  --primary-color: #0074E4;
  --primary-hover: #005bb5;
  --secondary-color: #00A2FF;
  --accent-red: #FF3B30;
  --accent-green: #34C759;
  --dark-bg: #111827;
  --darker-bg: #0A0F1C;
  --card-bg: #1F2937;
  --text-primary: #FFFFFF;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  --border-color: #374151;
  --success-green: #10B981;
  --warning-yellow: #FFC107;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #0A0F1C 0%, #1a1f35 100%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  padding-top: 90px; /* Compensate for fixed navbar */
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 2px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.square-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0, 116, 228, 0.4);
  transition: transform 0.3s ease;
}

.square-logo:hover {
  transform: rotate(5deg) scale(1.05);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(0, 116, 228, 0.1);
}

.search-container {
  flex: 0 1 300px;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 116, 228, 0.1);
}

/* Language Selector */
/* Language Dropdown (Hamburger) */
.lang-dropdown {
  position: relative;
  margin-left: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.hamburger {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hamburger:hover {
  background: var(--border-color);
}

.hamburger span {
  width: 20px;
  height: 2px;
  background: var(--text-secondary);
  position: relative;
  transition: all 0.2s ease;
}

.hamburger span::before,
.hamburger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--text-secondary);
  transition: all 0.2s ease;
}

.hamburger span::before { top: -6px; }
.hamburger span::after { top: 6px; }

.lang-list {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 260px;
  max-height: 360px;
  overflow-y: auto;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: none;
  padding: 0.5rem;
  z-index: 1100;
}

.lang-dropdown.open .lang-list { display: block; }

.lang-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-item:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }

.lang-item.active {
  background: rgba(0, 116, 228, 0.15);
  color: var(--text-primary);
  border: 1px solid var(--primary-color);
}

.lang-code {
  background: var(--darker-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 2px 6px;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.user-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.username {
  font-weight: 600;
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
}

/* ========================================
   MAIN CONTAINER
   ======================================== */
.main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
  background: linear-gradient(135deg, rgba(0, 116, 228, 0.1) 0%, rgba(0, 162, 255, 0.05) 100%);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  margin-bottom: 3rem;
  border: 2px solid rgba(0, 116, 228, 0.2);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #FFFFFF 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ========================================
   CONTENT SECTIONS
   ======================================== */
.content-section {
  margin-bottom: 4rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.section-description {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.market-trending {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-md);
}

.market-trending h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.market-trending p {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.market-trending ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding: 0;
}

.market-trending li {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  color: var(--text-primary);
}

.market-trending p:last-child {
  margin-bottom: 0;
}

.see-all {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.see-all:hover {
  color: var(--secondary-color);
}

/* ========================================
   GAMES GRID
   ======================================== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.game-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.game-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
  box-shadow: 0 12px 24px rgba(0, 116, 228, 0.3);
}

.game-thumbnail {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background: var(--darker-bg);
}

.game-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.game-card:hover .game-thumbnail img {
  transform: scale(1.1);
}

.game-info {
  padding: 1.25rem;
}

.game-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.game-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.game-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.rating {
  color: var(--success-green);
  font-weight: 600;
}

.players {
  color: var(--text-secondary);
}

/* ========================================
   INFO CARDS
   ======================================== */
.info-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 2px solid var(--border-color);
  margin-bottom: 2rem;
}

.info-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.info-card p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.info-card.warning {
  border-color: var(--accent-red);
  background: rgba(255, 59, 48, 0.05);
}

.info-card.warning h3 {
  color: var(--accent-red);
}

.feature-list {
  margin: 1.5rem 0;
}

.feature-list h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-list ul {
  list-style: none;
  padding: 0;
}

.feature-list ul li {
  padding: 0.75rem 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  line-height: 1.6;
}

.feature-list ul li:last-child {
  border-bottom: none;
}

/* ========================================
   TIP BOX
   ======================================== */
.tip-box {
  background: linear-gradient(135deg, rgba(0, 162, 255, 0.1) 0%, rgba(52, 199, 89, 0.1) 100%);
  border-left: 4px solid var(--secondary-color);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-top: 2rem;
}

.tip-box strong {
  color: var(--secondary-color);
  font-weight: 700;
}

/* ========================================
   AD SLOTS
   ======================================== */
.ad-slot {
  background: rgba(31, 41, 55, 0.5);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 2rem 0;
  position: relative;
}

.ad-slot::after {
  content: 'Ad Space';
  position: absolute;
  font-weight: 600;
  opacity: 0.5;
}

.ad-banner-top,
.ad-banner-bottom {
  height: 90px;
  min-height: 90px;
}

.ad-rectangle {
  height: 250px;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   DISCLAIMER SECTION
   ======================================== */
.disclaimer-section {
  background: rgba(31, 41, 55, 0.5);
  border-top: 2px solid var(--border-color);
  padding: 2rem;
  margin-top: 4rem;
  border-radius: var(--radius-lg);
}

.disclaimer-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.disclaimer-section p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.disclaimer-section .copyright {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--darker-bg);
  padding: 2rem;
  text-align: center;
  border-top: 2px solid var(--border-color);
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-section {
  flex: 1;
  min-width: 280px;
  text-align: left;
}

.footer-section h4 {
  color: var(--primary-color);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
}

.footer-section p {
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.6;
}

.footer-section a {
  text-decoration: none;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: var(--primary-color) !important;
}

.footer > p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0.5rem 0;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-section {
    text-align: center;
  }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1200px) {
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    padding: 1rem;
    gap: 1rem;
  }
  
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-around;
    margin-left: 0;
  }
  
  .search-container {
    order: 2;
    flex: 1;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }
  
  .section-header h2 {
    font-size: 1.5rem;
  }
  
  .main-container {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .games-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .navbar {
    padding: 0.75rem;
  }
  
  .logo-text {
    font-size: 1.25rem;
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-section {
  animation: fadeInUp 0.6s ease-out;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.hidden {
  display: none;
}

/* Improve dropdown on mobile */
@media (max-width: 768px) {
  .lang-list {
    position: fixed;
    right: 1rem;
    left: 1rem;
    top: 64px;
    width: auto;
    max-height: 60vh;
  }
}

/* ========================================
   COOKIE CONSENT BANNER
   ======================================== */

.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-top: 3px solid var(--secondary-color, #00a8ff);
  padding: 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: none; /* Hidden by default, shown via JS */
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-consent-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-consent-text {
  flex: 1;
  min-width: 300px;
}

.cookie-consent-text h3 {
  color: var(--secondary-color, #00a8ff);
  margin: 0 0 8px 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.cookie-consent-text p {
  color: var(--text-secondary, #b0b0b0);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.cookie-consent-text a {
  color: var(--secondary-color, #00a8ff);
  text-decoration: underline;
  font-weight: 500;
}

.cookie-consent-text a:hover {
  color: var(--primary-hover, #0095e8);
}

.cookie-consent-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 12px 25px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.cookie-btn-accept {
  background: var(--secondary-color, #00a8ff);
  color: #000;
}

.cookie-btn-accept:hover {
  background: var(--primary-hover, #0095e8);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 168, 255, 0.4);
}

.cookie-btn-reject {
  background: transparent;
  color: var(--text-secondary, #b0b0b0);
  border: 2px solid #555;
}

.cookie-btn-reject:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #777;
  color: var(--text-primary, #fff);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .cookie-consent-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-consent-buttons {
    width: 100%;
    justify-content: center;
  }
  
  .cookie-btn {
    flex: 1;
    min-width: 140px;
  }
}