/* Dota 2 Market - Custom Styles */

/* CSS Variables for Dota 2 Theme */
:root {
  --dota-orange: #ff6b35;
  --dota-orange-dark: #ff4500;
  --dota-green: #39ff14;
  --dota-gold: #ffd700;
  --dota-purple: #9370db;
  --dota-blue: #4169e1;
  --dota-red: #dc2626;
  --dota-pink: #ec4899;
  --bg-dark: #09090b;
  --bg-card: #18181b;
  --bg-card-hover: #27272a;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --border-color: #3f3f46;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--dota-orange);
}

/* Rarity Colors */
.rarity-common { color: #9ca3af; border-color: #9ca3af; }
.rarity-uncommon { color: #60a5fa; border-color: #60a5fa; }
.rarity-rare { color: #3b82f6; border-color: #3b82f6; }
.rarity-mythical { color: #a855f7; border-color: #a855f7; }
.rarity-legendary { color: #ec4899; border-color: #ec4899; }
.rarity-immortal { color: #fbbf24; border-color: #fbbf24; }
.rarity-arcana { color: #ef4444; border-color: #ef4444; }

/* Neon Glow Effects */
.neon-text {
  text-shadow: 0 0 10px rgba(255, 107, 53, 0.5), 0 0 20px rgba(255, 107, 53, 0.3);
}

.neon-border {
  box-shadow: 0 0 10px rgba(255, 107, 53, 0.3), inset 0 0 10px rgba(255, 107, 53, 0.1);
}

.neon-green {
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
}

/* Card Hover Effects */
.skin-card {
  transition: all 0.3s ease;
}

.skin-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(255, 107, 53, 0.2);
}

/* Price Animation */
@keyframes priceUp {
  0% { color: #39ff14; }
  100% { color: inherit; }
}

@keyframes priceDown {
  0% { color: #ef4444; }
  100% { color: inherit; }
}

.price-up { animation: priceUp 2s ease; }
.price-down { animation: priceDown 2s ease; }

/* Pulse Animation for Live Indicator */
@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.live-indicator {
  animation: pulse-live 2s infinite;
}

/* Mobile Menu Animation */
.mobile-menu {
  transition: transform 0.3s ease;
}

.mobile-menu.hidden {
  transform: translateX(100%);
}

/* Modal Backdrop */
.modal-backdrop {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

/* Hero Section Gradient */
.hero-gradient {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
}

/* Button Hover Glow */
.btn-glow:hover {
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
}

/* Search Input Focus */
.search-focus:focus {
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.3);
}

/* Filter Active State */
.filter-active {
  background: var(--dota-orange);
  color: white;
}

/* Loading Skeleton */
.skeleton {
  background: linear-gradient(90deg, #27272a 25%, #3f3f46 50%, #27272a 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Tooltip */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 12px;
  background: var(--bg-card);
  color: var(--text-primary);
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  z-index: 1000;
}

.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
  bottom: calc(100% + 8px);
}

/* Lazy Load Images */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Custom Checkbox */
.custom-checkbox {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.custom-checkbox:checked {
  background: var(--dota-orange);
  border-color: var(--dota-orange);
}

/* Range Slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--dota-orange);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
  transform: scale(1.1);
}

/* Animations on Scroll */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Animation for Cards */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* Price Tag */
.price-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.price-tag::before {
  content: '₽';
  font-size: 0.8em;
  color: var(--dota-orange);
}

/* Badge Styles */
.badge-new {
  background: linear-gradient(135deg, #39ff14, #22c55e);
}

.badge-hot {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.badge-discount {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

/* Grid Layouts */
.skins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

@media (max-width: 640px) {
  .skins-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* Table Styles */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  font-weight: 600;
  color: var(--dota-orange);
  background: var(--bg-card);
}

.data-table tr:hover td {
  background: var(--bg-card-hover);
}

/* Chart Container */
.chart-container {
  position: relative;
  height: 300px;
  width: 100%;
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-question {
  cursor: pointer;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--dota-orange);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.open {
  max-height: 500px;
  padding-bottom: 16px;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

/* Contact Form */
.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.form-input:focus {
  border-color: var(--dota-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
  outline: none;
}

.form-input::placeholder {
  color: var(--text-secondary);
}

/* Notification Toast */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 16px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  transform: translateX(150%);
  transition: transform 0.3s ease;
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  border-left: 4px solid var(--dota-green);
}

.toast.error {
  border-left: 4px solid #ef4444;
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
}