/**
 * EAFCSHOP Site-Specific Styles
 * Styles unique to eafcshop.com
 */

/* Currency Dropdown Styles */
.currency-dropdown {
  position: relative;
  display: inline-block;
}

#currency-toggle {
  cursor: pointer;
}

.currency-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  min-width: 180px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.currency-menu.active {
  display: block;
}

.currency-option {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 0.95rem;
}

.currency-option:hover {
  background: var(--bg-secondary);
}

/* Language Dropdown Styles */
.lang-dropdown {
  position: relative;
  display: inline-block;
}

#lang-toggle {
  cursor: pointer;
}

.lang-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  min-width: 180px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.lang-menu.active {
  display: block;
}

.lang-option {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 0.95rem;
}

.lang-option:hover {
  background: var(--bg-secondary);
}

/* Mobile Language Dropdown */
.lang-dropdown-mobile {
  position: relative;
  display: block;
}

.lang-menu-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  min-width: 200px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.lang-menu-mobile.active {
  display: block;
}

.lang-option-mobile {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 0.95rem;
}

.lang-option-mobile:hover {
  background: var(--bg-secondary);
}

/* Platform Section - Reduced spacing for EAFCSHOP */
#platform-section {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Platform Grid - 2 columns for EAFCSHOP */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

@media (max-width: 768px) {
  .platform-grid {
    grid-template-columns: 1fr;
  }
}

/* EAFCSHOP Brand Colors - EA FC 26 Inspired */
:root {
  --eafcshop-black: #000000;
  --eafcshop-near-black: #0a0a0a;
  --eafcshop-dark-grey: #1a1a1a;
  --eafcshop-mid-grey: #2a2a2a;
  --eafcshop-light-grey: #3a3a3a;
  --eafcshop-border-grey: #2d2d2d;
  --eafcshop-text-white: #ffffff;
  --eafcshop-text-grey: #cccccc;
  --eafcshop-text-muted: #999999;
  --eafcshop-accent: #f0f0f0;
  --eafcshop-success: #00ff88;
  --eafcshop-error: #ff4444;
}

/* EAFCSHOP Theme Override */
body {
  --bg: var(--eafcshop-near-black);
  --card: var(--eafcshop-dark-grey);
  --card-bg: var(--eafcshop-dark-grey);
  --text-primary: var(--eafcshop-text-white);
  --text-secondary: var(--eafcshop-text-grey);
  --border-color: var(--eafcshop-border-grey);
  --primary: var(--eafcshop-text-white);
  --primary-600: var(--eafcshop-light-grey);
  --primary-color: #3b82f6; /* Use blue for chat messages, not white */
  --success-color: var(--eafcshop-success);
  --error-color: var(--eafcshop-error);
  --text: var(--eafcshop-text-white);
  --muted: var(--eafcshop-text-muted);
  --border: var(--eafcshop-border-grey);
  --accent: var(--eafcshop-accent);
}

/* EAFCSHOP Header */
.site-header {
  background: var(--eafcshop-dark-grey) !important;
}

/* EAFCSHOP Footer */
.site-footer {
  background: var(--eafcshop-black) !important;
  border-top: 1px solid var(--eafcshop-border-grey);
  color: var(--eafcshop-text-grey);
}

/* Delivery Badge on Platform Cards */
.delivery-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--eafcshop-success);
  color: var(--eafcshop-black);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 255, 136, 0.4);
}

/* EAFCSHOP Platform Cards */
.platform-card {
  background: transparent !important;
  border: none !important;
}

.platform-card:hover {
  border: none !important;
  background: transparent !important;
}

/* Featured item (platform) visual refresh for EAFCSHOP */
.platform-image {
  position: relative;
  /* Equal padding on all sides around the game case */
  padding: 8px;
  border-radius: 16px;
  /* Dual-layer background to create a gradient border */
  background:
    linear-gradient(var(--eafcshop-dark-grey), var(--eafcshop-dark-grey)) padding-box,
    linear-gradient(135deg, #22c55e, #06b6d4) border-box;
  border: 2px solid transparent;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.platform-image img {
  border-radius: 10px;
  display: block;
  width: 100%;
  height: auto;
  /* Reserve minimal space for the price panel while keeping equal outer padding */
  margin-bottom: 56px;
}

/* Price panel: make it a glassy bottom card and always visible */
.price-overlay {
  inset: auto auto 6px 6px;
  right: 6px;
  left: 6px;
  top: auto;
  background: linear-gradient(180deg, rgba(17,17,17,0.6), rgba(17,17,17,0.45));
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 6px 10px;
  opacity: 1 !important;
  pointer-events: none;
  gap: 4px;
}

.platform-image:hover .price-overlay {
  border-color: rgba(255,255,255,0.12);
}

.platform-heading {
  color: #d1fae5; /* mint tint for platform name */
  letter-spacing: 0.08em;
}

.price-label {
  color: rgba(255,255,255,0.65) !important;
}

.price-value {
  background: linear-gradient(135deg, #22c55e, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(6, 182, 212, 0.25);
}

@media (max-width: 768px) {
  .platform-image { padding: 8px; }
  .platform-image img { margin-bottom: 50px; }
}

/* Delivery badge: pill with darker contrast */
/* Hide delivery badge on EAFCSHOP */
.delivery-badge { display: none !important; }

/* EAFCSHOP Buttons */
.btn-primary {
  background: var(--eafcshop-text-white);
  color: var(--eafcshop-black);
  border: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--eafcshop-text-grey);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

/* EAFCSHOP Form Inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
textarea,
select {
  background: var(--eafcshop-mid-grey) !important;
  border: 1px solid var(--eafcshop-border-grey) !important;
  color: var(--eafcshop-text-white) !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  border-color: var(--eafcshop-light-grey) !important;
  background: var(--eafcshop-light-grey) !important;
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: var(--eafcshop-text-muted) !important;
}

/* EAFCSHOP Quantity Preset Buttons */
.quantity-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.preset-btn {
  background: rgba(0, 255, 136, 0.05);
  color: var(--eafcshop-text-white);
  border: 2px solid rgba(0, 255, 136, 0.2);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 90px;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.05);
  position: relative;
}

.preset-btn:hover {
  background: rgba(0, 255, 136, 0.1);
  border-color: rgba(0, 255, 136, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.2),
              0 0 25px rgba(0, 255, 136, 0.15);
  color: #00ff88;
}

.preset-btn.active {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 255, 136, 0.1));
  color: #00ff88;
  border-color: #00ff88;
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.3),
              inset 0 0 20px rgba(0, 255, 136, 0.1);
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

@media (max-width: 768px) {
  .quantity-presets {
    gap: 0.5rem;
  }

  .preset-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    min-width: 75px;
  }
}

/* Green Neon Slider Effects for EAFCSHOP */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 5px;
  outline: none;
  transition: all 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 0;
  height: 0;
  opacity: 0;
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 0;
  height: 0;
  opacity: 0;
  cursor: pointer;
  border: none;
}

input[type="range"]::-webkit-slider-runnable-track {
  background: linear-gradient(to right,
    #00ff88 0%,
    #00ff88 var(--range-progress, 50%),
    rgba(0, 255, 136, 0.1) var(--range-progress, 50%),
    rgba(0, 255, 136, 0.1) 100%) !important;
  border-radius: 5px;
  height: 8px;
  border: 1px solid rgba(0, 255, 136, 0.2);
  box-shadow: inset 0 0 10px rgba(0, 255, 136, 0.1),
              0 0 15px rgba(0, 255, 136, 0.05);
}

input[type="range"]::-moz-range-track {
  background: rgba(0, 255, 136, 0.1);
  border-radius: 5px;
  height: 8px;
  border: 1px solid rgba(0, 255, 136, 0.2);
  box-shadow: inset 0 0 10px rgba(0, 255, 136, 0.1),
              0 0 15px rgba(0, 255, 136, 0.05);
}

input[type="range"]::-moz-range-progress {
  background: #00ff88;
  height: 8px;
  border-radius: 5px 0 0 5px;
}

/* Footer Branding Row */
.footer-branding-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin: 2rem auto 1.5rem;
  max-width: 1200px;
  padding: 0 1rem;
  flex-wrap: wrap;
}

.footer-logo-text {
  flex-shrink: 0;
}

.footer-brand-name {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

[data-theme="light"] .footer-brand-name {
  background: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.partner-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 180px;
}
.partner-column-left {
  align-items: flex-end;
  text-align: right;
}
.partner-column-right {
  align-items: flex-start;
  text-align: left;
}

.partner-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 160px;
}

[data-theme="light"] .partner-link {
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.partner-column-left .partner-link {
  align-items: flex-end;
  text-align: right;
}
.partner-column-right .partner-link {
  align-items: flex-start;
  text-align: left;
}

.partner-link:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

[data-theme="light"] .partner-link:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.4);
}

.partner-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #3b82f6;
  margin-bottom: 0.25rem;
}

[data-theme="light"] .partner-name {
  color: #2563eb;
}

.partner-desc {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.2;
}

[data-theme="light"] .partner-desc {
  color: rgba(0, 0, 0, 0.6);
}

@media (max-width: 968px) {
  .footer-branding-row {
    flex-direction: column;
    gap: 1.5rem;
  }

  .partner-column,
  .partner-column-left,
  .partner-column-right {
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .footer-brand-name {
    font-size: 1.5rem;
  }

  .partner-link {
    width: 100%;
    max-width: 300px;
  }
}

/* Price Comparison Styles */
.price-comparison-box {
  background: rgba(245, 245, 245, 0.5);
  padding: 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}

[data-theme="light"] .price-comparison-box {
  background: rgba(0, 0, 0, 0.03);
}

.price-comparison-title {
  margin: 0 0 6px 0;
  font-size: 13px;
  text-align: center;
  color: #fff;
}

[data-theme="light"] .price-comparison-title {
  color: #333;
}

.price-comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 6px;
}

.price-comparison-our-price {
  background: #4CAF50;
  color: white;
  padding: 6px;
  border-radius: 4px;
  text-align: center;
}

.price-comparison-competitor {
  background: rgba(255, 255, 255, 0.9);
  padding: 6px;
  border-radius: 4px;
  text-align: center;
}

[data-theme="light"] .price-comparison-competitor {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.price-comparison-label {
  font-size: 9px;
  margin-bottom: 2px;
  opacity: 0.9;
  color: inherit;
}

.price-comparison-competitor .price-comparison-label {
  color: #666;
}

.price-comparison-value {
  font-size: 16px;
  font-weight: bold;
  color: inherit;
}

.price-comparison-competitor .price-comparison-value {
  font-size: 15px;
  color: #333;
}

.price-comparison-badge {
  font-size: 8px;
  margin-top: 2px;
  opacity: 0.9;
}

.price-comparison-savings {
  font-size: 8px;
  margin-top: 2px;
  color: #4CAF50;
}

.price-comparison-summary {
  margin-top: 4px;
  text-align: center;
  font-size: 11px;
  color: #4CAF50;
  font-weight: 600;
}

/* ========================================
   BLACK FRIDAY SALE STYLES
   ======================================== */

/* Black Friday Header Text (in rotating text area) */
.bf-header-text {
  color: #FFD700;
  font-weight: 700;
  font-size: 1.05em;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  animation: textGlow 2s ease-in-out infinite;
}

.bf-header-code {
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid #FFD700;
  color: #FFD700;
  padding: 3px 12px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 0.95em;
  letter-spacing: 1px;
  margin-left: 8px;
  display: inline-block;
  animation: codeGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
  0%, 100% { text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
  50% { text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.4); }
}

@keyframes codeGlow {
  0%, 100% {
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
    border-color: #FFD700;
  }
  50% {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    border-color: #FFED4E;
  }
}

/* Mobile responsive for header promo */
@media (max-width: 768px) {
  .bf-header-text {
    font-size: 0.95em;
  }

  .bf-header-code {
    font-size: 0.85em;
    padding: 2px 10px;
    margin-left: 6px;
  }
}

/* ========================================
   FLOATING CORNER BADGE
   ======================================== */

.bf-floating-badge {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  cursor: pointer;
  animation: floatBounce 3s ease-in-out infinite;
}

.bf-floating-badge-inner {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
  border: 2px solid #FFD700;
  border-radius: 12px;
  padding: 15px 20px;
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.2);
  text-align: center;
  transition: all 0.3s ease;
}

.bf-floating-badge:hover .bf-floating-badge-inner {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(255, 215, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.3);
}

.bf-floating-title {
  color: #FFD700;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 5px;
}

.bf-floating-discount {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.bf-floating-code {
  background: #FFD700;
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  margin-top: 8px;
  display: inline-block;
  letter-spacing: 1px;
}

@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Mobile - smaller floating badge */
@media (max-width: 768px) {
  .bf-floating-badge {
    bottom: 15px;
    left: 15px;
  }

  .bf-floating-badge-inner {
    padding: 12px 15px;
  }

  .bf-floating-discount {
    font-size: 1.4rem;
  }

  .bf-floating-title {
    font-size: 0.65rem;
  }
}

/* Product Card Sale Ribbons */
.sale-ribbon {
  position: absolute;
  top: 15px;
  right: -5px;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #000;
  padding: 5px 15px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.sale-ribbon::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 0;
  border-left: 5px solid #CC8400;
  border-bottom: 5px solid transparent;
}

/* Checkout Coupon Highlight */
#coupon-code {
  border: 2px solid #FFD700 !important;
  background: rgba(255, 215, 0, 0.05) !important;
  animation: couponPulse 2s ease-in-out infinite;
}

@keyframes couponPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }
  50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.6); }
}

#apply-coupon {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
  color: #000 !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4) !important;
  transition: all 0.3s ease !important;
}

#apply-coupon:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6) !important;
}

/* Platform card positioning for ribbons */
.platform-card {
  position: relative;
}

