/* G2Own Components - Modular Component Styles */

/* ===== BUTTON COMPONENTS ===== */

/* Primary Buttons */
.btn-primary-glow {
  position: relative;
  background: linear-gradient(135deg, #8b0000, #660000);
  border: none;
  border-radius: 0.75rem;
  padding: 0.875rem 2rem;
  color: white;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.btn-primary-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, #8b0000, #a50000, #8b0000);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  filter: blur(8px);
}

.btn-primary-glow:hover::before {
  opacity: 0.7;
}

.btn-primary-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(139, 0, 0, 0.4);
}

/* Ghost Buttons */
.btn-ghost {
  background: transparent;
  border: 2px solid rgba(139, 0, 0, 0.3);
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: #8b0000;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-ghost::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(139, 0, 0, 0.1), transparent);
  transition: left 0.5s ease;
}

.btn-ghost:hover::before {
  left: 100%;
}

.btn-ghost:hover {
  border-color: #8b0000;
  color: white;
  background: rgba(139, 0, 0, 0.1);
  box-shadow: 0 0 20px rgba(139, 0, 0, 0.3);
}

/* ===== UPDATED BUTTON SYSTEM ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Button Sizes */
.btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

/* Button Variants */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
  color: var(--primary-white);
  position: relative;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, var(--primary-red), var(--light-red), var(--primary-red));
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: -1;
  filter: blur(4px);
}

.btn-primary:hover::before {
  opacity: 0.8;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-intense);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-glow);
  color: var(--text-accent);
}

.btn-outline:hover {
  background: rgba(139, 0, 0, 0.1);
  border-color: var(--primary-red);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-accent);
  background: rgba(139, 0, 0, 0.05);
}

/* ===== CARD COMPONENTS ===== */

/* Glass Card */
.glass-card {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(139, 0, 0, 0.2);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 0, 0, 0.5), transparent);
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 0, 0, 0.5);
  box-shadow: 0 20px 40px rgba(139, 0, 0, 0.2);
}

/* Neon Card */
.neon-card {
  background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
  border: 2px solid rgba(139, 0, 0, 0.3);
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.neon-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, #8b0000, transparent, #8b0000);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  filter: blur(10px);
}

.neon-card:hover::before {
  opacity: 0.5;
}

.neon-card:hover {
  border-color: #8b0000;
  box-shadow: 0 0 30px rgba(139, 0, 0, 0.5);
}

/* Product Card */
.product-card {
  background: linear-gradient(135deg, #111827, #0f172a);
  border: 1px solid rgba(139, 0, 0, 0.2);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.product-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(139, 0, 0, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.product-card:hover::after {
  opacity: 1;
}

.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: #8b0000;
  box-shadow: 0 25px 50px rgba(139, 0, 0, 0.3);
}

.product-card-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.1), rgba(255, 255, 255, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-card-content {
  padding: 1.5rem;
}

.product-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.5rem;
}

.product-card-description {
  color: #9ca3af;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.product-card-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #8b0000;
  margin-bottom: 1rem;
}

/* ===== GAME CARD COMPONENT ===== */
.game-card {
  width: 16rem;
  height: 20rem;
  background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
  border: 1px solid var(--border-glow);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
}

.game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.game-card:hover::before {
  opacity: 1;
}

.game-card:hover {
  transform: translateY(-0.5rem);
  border-color: var(--primary-red);
  box-shadow: var(--shadow-intense);
}

.game-card-image {
  height: 12rem;
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.2), rgba(147, 51, 234, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-accent);
  font-weight: 600;
  font-size: 1.125rem;
}

.game-card-content {
  padding: 1rem;
}

.game-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.game-card-genre {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.game-card-price {
  color: var(--text-accent);
  font-weight: 700;
  font-size: 1.25rem;
}

.game-card-button {
  padding: 0.5rem 0.75rem;
  background: var(--primary-red);
  color: var(--primary-white);
  border: none;
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.game-card-button:hover {
  background: var(--dark-red);
}

/* ===== NAVIGATION COMPONENTS ===== */

/* Navbar Brand */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.navbar-logo {
  position: relative;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #8b0000, #000000);
  border: 1px solid rgba(139, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.navbar-logo::before {
  content: '';
  position: absolute;
  inset: 3px;
  background: #111827;
  border-radius: 6px;
  z-index: 1;
}

.navbar-logo-text {
  position: relative;
  z-index: 2;
  font-weight: 700;
  font-size: 1.125rem;
  background: linear-gradient(45deg, #8b0000, white);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.navbar-title {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(45deg, #8b0000, white, #8b0000);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Navigation Links */
.nav-link-enhanced {
  position: relative;
  padding: 0.75rem 1rem;
  color: #d1d5db;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 0.5rem;
}

.nav-link-enhanced::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #8b0000, #a50000);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link-enhanced:hover::before {
  width: 80%;
}

.nav-link-enhanced:hover {
  color: #8b0000;
  background: rgba(139, 0, 0, 0.05);
  text-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
}

/* ===== FORM COMPONENTS ===== */

/* Input Fields */
.input-field {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(139, 0, 0, 0.2);
  border-radius: 0.75rem;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.input-field:focus {
  outline: none;
  border-color: #8b0000;
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 0 20px rgba(139, 0, 0, 0.3);
}

.input-field::placeholder {
  color: #6b7280;
}

/* Search Bar */
.search-bar {
  position: relative;
  max-width: 400px;
}

.search-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(139, 0, 0, 0.2);
  border-radius: 50px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #8b0000;
  box-shadow: 0 0 25px rgba(139, 0, 0, 0.4);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  transition: color 0.3s ease;
}

.search-bar:focus-within .search-icon {
  color: #8b0000;
}

/* ===== BADGE COMPONENTS ===== */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.badge-primary {
  background: linear-gradient(135deg, #8b0000, #660000);
  color: white;
}

.badge-secondary {
  background: rgba(139, 0, 0, 0.1);
  color: #8b0000;
  border: 1px solid rgba(139, 0, 0, 0.3);
}

.badge-success {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

/* ===== MODAL COMPONENTS ===== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: linear-gradient(135deg, #111827, #0f172a);
  border: 1px solid rgba(139, 0, 0, 0.3);
  border-radius: 1rem;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

/* ===== PROGRESS COMPONENTS ===== */

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(139, 0, 0, 0.1);
  border-radius: 50px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8b0000, #a50000);
  border-radius: inherit;
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmer 2s infinite;
}

/* ===== DROPDOWN COMPONENTS ===== */

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(139, 0, 0, 0.2);
  border-radius: 0.75rem;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  color: #d1d5db;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(139, 0, 0, 0.1);
  color: #8b0000;
}

/* ===== TOOLTIP COMPONENTS ===== */

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  margin-bottom: 5px;
}

.tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.tooltip:hover::after,
.tooltip:hover::before {
  opacity: 1;
  visibility: visible;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */

@media (max-width: 768px) {
  .glass-card,
  .neon-card {
    padding: 1.5rem;
  }
  
  .product-card-content {
    padding: 1rem;
  }
  
  .btn-primary-glow,
  .btn-ghost {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }
  
  .navbar-logo {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .navbar-title {
    font-size: 1.25rem;
  }
}
