/*
 * SpinPro Unified Design System
 * Inspired by EA Sports, Netflix, Liberty
 * Clean, modern, production-ready
 */

/* ============================================
   COLOR SYSTEM
   ============================================ */
:root {
  /* Primary Colors */
  --ea-navy: #0a0e27;
  --liberty-blue: #001f3f;
  --netflix-black: #141414;

  /* Accent Colors */
  --gold-primary: #c9980b;
  --gold-secondary: #b47a21;
  --gold-metallic: linear-gradient(135deg, #c9980b 0%, #b47a21 100%);
  --blue-accent: #0ea5e9;

  /* Status Colors */
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;

  /* Neutral Colors */
  --text-primary: #ffffff;
  --text-secondary: #e5e7eb;
  --text-muted: rgba(255, 255, 255, 0.6);

  /* Glass-morphism */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-bg-hover: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ============================================
   GLOBAL RESETS
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--ea-navy);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
}
h2 {
  font-size: 2.5rem;
}
h3 {
  font-size: 2rem;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1rem;
}

/* ============================================
   LANDING PAGE SPECIFIC
   ============================================ */
.landing-container {
  min-height: 100vh;
  width: 100%;
  background: url("../images/backgrounds/Stylish landing back.png") center
    center/cover no-repeat fixed;
  position: relative;
  overflow: hidden;
}

.landing-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 39, 0.4) 0%,
    rgba(10, 14, 39, 0.8) 100%
  );
  z-index: 1;
}

.landing-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
}

.sp-logo {
  max-width: 200px;
  height: auto;
  margin-bottom: 2rem;
  filter: drop-shadow(0 8px 24px rgba(0, 255, 200, 0.4));
  transition: var(--transition-smooth);
}

.sp-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 12px 36px rgba(0, 255, 200, 0.6));
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
  font-weight: 400;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  background: linear-gradient(
    135deg,
    var(--gold-primary) 0%,
    var(--gold-secondary) 100%
  );
  color: var(--ea-navy);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.6);
  background: linear-gradient(
    135deg,
    var(--gold-secondary) 0%,
    var(--gold-primary) 100%
  );
}

.btn-secondary {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  transform: translateY(-3px);
}

/* Feature Cards Section */
.features-section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: url("/static/images/Vector silhouette of.png") center
    center/contain no-repeat;
  opacity: 0.03;
  transform: rotate(15deg);
  pointer-events: none;
}

.feature-card:hover {
  background: var(--glass-bg-hover);
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.3);
}

.feature-icon {
  font-size: 2.25rem;
  color: var(--gold-primary);
  margin-bottom: 1rem;
  display: block;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.feature-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .sp-logo {
    max-width: 150px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .feature-card {
    padding: 1.5rem;
  }
}

/* ============================================
   SIDEBAR NAVIGATION (EA Sports Style)
   ============================================ */
.sidebar-nav {
  position: fixed;
  left: 0;
  top: 0;
  width: 250px;
  height: calc(100vh - 40px);
  background: var(--netflix-black);
  border-right: 1px solid rgba(255, 215, 0, 0.1);
  z-index: 1001;
  overflow-y: auto;
  padding-top: 80px;
}

.sidebar-nav .nav-item {
  padding: 0.75rem 1.5rem;
  border-left: 3px solid transparent;
  transition: var(--transition-smooth);
}

.sidebar-nav .nav-link {
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  transition: var(--transition-smooth);
}

.sidebar-nav .nav-link:hover {
  color: var(--gold-primary);
}

.sidebar-nav .nav-link i {
  font-size: 1.25rem;
}

.sidebar-nav .dropdown-menu {
  position: static;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0.5rem 0 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out,
    visibility 0.3s;
}

.sidebar-nav .nav-item:hover .dropdown-menu {
  max-height: 500px;
  opacity: 1;
  visibility: visible;
}

.sidebar-nav .dropdown-menu .dropdown-item {
  color: #707072;
  padding: 0.5rem 0;
  font-size: 0.95rem;
}

.sidebar-nav .dropdown-menu .dropdown-item:hover {
  color: var(--gold-primary);
  background: transparent;
}

/* Adjust main content for sidebar */
body {
  margin-left: 250px;
}

/* ============================================
   SEARCH ICON & POPUP MODAL
   ============================================ */
.search-icon-btn {
  position: fixed;
  top: 20px;
  left: 280px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gold-metallic);
  border: none;
  color: var(--ea-navy);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 16px rgba(201, 152, 11, 0.5);
}

.search-icon-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(201, 152, 11, 0.7);
}

.search-popup-slide {
  position: fixed;
  top: 20px;
  left: 340px;
  width: 0;
  height: 50px;
  background: rgba(10, 14, 39, 0.98);
  border: 1px solid rgba(201, 152, 11, 0.3);
  border-radius: 25px;
  overflow: hidden;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 998;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.search-popup-slide.open {
  width: 500px;
}

.search-popup-form {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 1rem;
  gap: 0.5rem;
}

.search-popup-title {
  font-size: 1.5rem;
  color: var(--text-primary);
  font-weight: 700;
}

.search-popup-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.search-popup-close:hover {
  color: var(--gold-primary);
}

.search-popup-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: #333333;
  font-size: 0.95rem;
  outline: none;
}

.search-popup-form input::placeholder {
  color: #999999;
}

.search-popup-form button[type="submit"] {
  padding: 0.5rem;
  background: var(--gold-metallic);
  border: none;
  border-radius: 50%;
  color: var(--ea-navy);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.search-popup-form button[type="submit"]:hover {
  transform: scale(1.1);
}

.search-close-btn {
  padding: 0.5rem;
  background: transparent;
  border: none;
  color: #999999;
  cursor: pointer;
  font-size: 1rem;
  flex-shrink: 0;
  transition: color 0.2s;
}

.search-close-btn:hover {
  color: #333333;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ============================================
   AVATAR TOP-RIGHT (Fixed Position)
   ============================================ */
.avatar-fixed {
  position: fixed;
  top: 20px;
  right: 80px;
  width: 50px;
  height: 50px;
  z-index: 999;
}

.avatar-fixed img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 4px 12px rgba(201, 152, 11, 0.4);
}

/* ============================================
   AVATAR DROPDOWN MENU
   ============================================ */
.avatar-fixed {
  cursor: pointer;
  transition: transform 0.2s;
}

.avatar-fixed:hover {
  transform: scale(1.05);
}

.avatar-dropdown-menu {
  position: fixed;
  top: 75px;
  right: 20px;
  width: 280px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.avatar-dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.avatar-dropdown-header {
  padding: 0.5rem 0;
}

.avatar-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #333333;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
  font-size: 0.95rem;
}

.avatar-dropdown-item:hover {
  background: rgba(201, 152, 11, 0.15);
  color: var(--gold-primary);
  transform: translateX(4px);
}

.avatar-dropdown-item i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.avatar-dropdown-item.text-danger {
  color: #dc3545;
}

.avatar-dropdown-item.text-danger:hover {
  background: rgba(220, 53, 69, 0.15);
  color: #ff4d5e;
}

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

.text-gradient {
  background: linear-gradient(
    135deg,
    var(--gold-primary) 0%,
    var(--gold-secondary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
/* ============================================
   RESPONSIVE DESIGN - TABLET (768px)
   ============================================ */
@media (max-width: 991px) {
  h1 {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
  }

  h2 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  h3 {
    font-size: clamp(1.25rem, 5vw, 2rem);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    padding: 11px 20px;
    min-height: 44px;
  }

  .form-control,
  .form-select,
  input[type="text"],
  input[type="email"],
  input[type="password"] {
    height: 44px;
    padding: 0.625rem 0.75rem;
  }
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE (<768px)
   ============================================ */
@media (max-width: 767px) {
  body {
    font-size: 0.95rem;
  }

  h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
    margin-bottom: 0.75rem;
  }

  h2 {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    margin-bottom: 0.75rem;
  }

  h3 {
    font-size: clamp(1.125rem, 5vw, 2rem);
    margin-bottom: 0.75rem;
  }

  h4,
  h5,
  h6 {
    margin-bottom: 0.5rem;
  }

  .container {
    padding: 0 1rem;
  }

  .row {
    --bs-gutter-x: 0.5rem;
  }

  .mb-4 {
    margin-bottom: 1.5rem !important;
  }

  .mb-3 {
    margin-bottom: 1rem !important;
  }

  .p-4 {
    padding: 1.25rem !important;
  }

  /* Touch-friendly buttons */
  .btn {
    padding: 11px 16px;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-group .btn {
    width: 100%;
  }

  /* Form controls */
  .form-label {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }

  .form-control,
  .form-select,
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"] {
    height: 44px;
    padding: 0.625rem 0.75rem;
    font-size: 1rem;
    border-radius: 6px;
  }

  textarea {
    min-height: 120px;
    padding: 0.75rem;
  }

  /* Navigation & menus */
  .nav-link,
  .list-group-item {
    padding: 12px 16px;
    min-height: 44px;
  }

  .nav-link.active {
    font-weight: 700;
  }

  /* Tables */
  .table {
    font-size: 0.9rem;
  }

  .table thead th {
    padding: 0.75rem 0.5rem;
  }

  .table td {
    padding: 0.75rem 0.5rem;
  }

  /* Cards */
  .card {
    margin-bottom: 1rem;
  }

  .section-card {
    padding: 1.25rem;
    margin-bottom: 1rem;
  }

  /* Modals & dropdowns stay same size for visibility */
  .dropdown-menu {
    width: 100% !important;
    right: 0 !important;
    left: auto !important;
  }

  /* Hide horizontal scrollable content indicators on small screens */
  .text-truncate {
    white-space: nowrap;
  }
}

/* ============================================
   SMALL MOBILE DEVICES (<400px)
   ============================================ */
@media (max-width: 374px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .btn {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .container {
    padding: 0 0.75rem;
  }
}
