/**
 * 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 - Logo centered with Partner Sites on either side */
.footer-branding-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 2rem auto 1.5rem;
  max-width: 1200px;
  padding: 0 1rem;
}

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

.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-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;
}

.partner-link:first-child {
  order: 1;
}

.partner-link:last-child {
  order: 3;
}

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

.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;
  }

  .footer-logo-text {
    order: 1;
  }

  .partner-link:first-child {
    order: 2;
  }

  .partner-link:last-child {
    order: 3;
  }
}

@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;
}

