/* === БАЗОВА ТЪМНА ТЕМА === */
:root{
  --container-pad: 16px;
  --auth-radius: 22px;
  --primary-color: #3b82f6;
  --primary-hover: #2563eb;
  --secondary-color: #8b5cf6;
  --accent-color: #06b6d4;
  --success-color: #10b981;
  --card-bg: #1a1f2e;
  --card-border: rgba(255,255,255,.1);
  --text-primary: #e6edf3;
  --text-secondary: #8b92a8;
}

* { box-sizing: border-box; }
html, body { width:100%; max-width:100%; overflow-x:hidden; }
body { 
  background-color:#0d1117; 
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.bg-dark-opaque { 
  background: rgba(13,17,23,0.95) !important; 
  backdrop-filter: blur(10px);
}

.card, .bg-body-tertiary { 
  background-color: var(--card-bg) !important; 
  border-color: var(--card-border) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,.3);
}

/* === ГРАДИЕНТИ === */
.hero-gradient { 
  position: relative; 
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.hero-gradient::before{
  content:""; 
  position:absolute; 
  inset:-40% -10%;
  border-radius:50%; 
  opacity:.4;
  background: conic-gradient(from 0deg, var(--primary-color), var(--accent-color), var(--success-color), #eab308, #ec4899, var(--primary-color));
  animation: spin 60s linear infinite; 
  filter: blur(60px);
}

@keyframes spin { to { transform: rotate(360deg); } }

/* === НАВИГАЦИЯ === */
.navbar {
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-link {
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

/* === БУТОНИ === */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
  font-weight: 600;
  padding: 12px 28px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, var(--primary-hover), #7c3aed);
}

.btn-outline-light {
  border: 2px solid rgba(255,255,255,.3);
  font-weight: 600;
  padding: 12px 28px;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.5);
  transform: translateY(-2px);
}

/* === КАТЕГОРИИ ИКОНИ === */
.category-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

.category-card:hover .category-icon {
  transform: scale(1.1) rotate(5deg);
}

.category-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.category-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.2);
}

.category-card h5 {
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 8px;
}

.category-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* === КАРТИ ЗА ОБЯВИ === */
.listing-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  transition: all 0.3s ease;
}

.listing-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-color);
  box-shadow: 0 12px 32px rgba(0,0,0,.3);
}

.listing-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.2);
  color: var(--primary-color);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.listing-price {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === ТЪРСЕНЕ === */
.search-section {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

.search-input {
  background: #0d1117;
  border: 2px solid var(--card-border);
  color: var(--text-primary);
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.search-input:focus {
  background: #0d1117;
  border-color: var(--primary-color);
  color: var(--text-primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

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

/* === TLD BADGES === */
.tld-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.tld-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  color: white;
  border-color: rgba(255,255,255,.3);
}

/* === СТАТИСТИКИ === */
.stats-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.stats-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 8px;
}

.stats-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* === КАК РАБОТИ === */
.how-it-works-step {
  text-align: center;
  padding: 24px;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 16px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* === AUTH СТРАНИЦИ === */
.page-auth, .has-hero-bg { position: relative; min-height: 100vh; }
.page-auth::before, .has-hero-bg::before{
  content:""; position: fixed; inset:-35% -25%;
  border-radius:50%; opacity:.45;
  background: conic-gradient(from 0deg, var(--primary-color), var(--accent-color), var(--success-color), #eab308, #ec4899, var(--primary-color));
  filter: blur(70px); animation: spin 60s linear infinite;
  z-index:0; pointer-events:none;
}

nav, main, footer, section, .container, .auth-card { position: relative; z-index:1; }

.auth-hero{
  min-height: calc(100vh - 72px);
  display: grid; place-items: center;
  padding: 48px var(--container-pad) 64px;
}

.auth-card{
  width: 100%;
  max-width: 720px;
  border-radius: var(--auth-radius);
  background: rgba(15,20,27,.96);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
}

.input-icon{
  width: 48px; min-width:48px; display:grid; place-items:center;
  background:#0d131b; color:#9fb0c9;
  border:1px solid #2b3442; border-right:0;
  border-radius:.5rem 0 0 .5rem; font-size:20px;
}

.auth-card .form-control{
  background-color:#121821; color:#e6edf3; border-color:#2b3442;
  min-height: 48px;
}

.auth-card .form-control::placeholder{ color:#8892a5; }
.auth-title{ font-weight: 800; letter-spacing:.3px; color:#60a5fa; }

/* === FOOTER === */
footer {
  background: rgba(13,17,23,0.95);
  border-top: 1px solid var(--card-border);
  padding: 48px 0 24px;
  margin-top: 80px;
}

footer h6 {
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 16px;
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--primary-color);
}

/* === МОБИЛНИ ПОДОБРЕНИЯ === */
@media (max-width: 992px){
  .auth-card{ max-width: 640px; }
  .category-icon { width: 56px; height: 56px; font-size: 28px; }
}

@media (max-width: 768px){
  .auth-hero{ padding: 32px var(--container-pad) 48px; }
  .auth-card{ max-width: 560px; }
  .hero-gradient h1 { font-size: 2rem; }
  .stats-number { font-size: 2rem; }
}

@media (max-width: 576px){
  :root{ --container-pad: 12px; --auth-radius: 18px; }
  .navbar-brand{ font-size: 1.1rem; }
  .auth-title{ font-size: 1.9rem; }
  .input-icon{ width: 44px; min-width:44px; font-size:18px; }
  .auth-card .form-control{ min-height: 46px; font-size: 1rem; }
  .btn{ min-height: 48px; font-size: 1rem; }
}

@media (max-width: 420px){
  .auth-title{ font-size: 1.6rem; }
  .auth-card{ border-radius: 16px; }
  .btn{ min-height: 46px; }
}

/* Footer статистики */
.footer-stat {
  padding: 0.5rem;
}

.footer-stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.footer-stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

@media (max-width: 768px) {
  .footer-stat-number {
    font-size: 1.2rem;
  }
  .footer-stat-label {
    font-size: 0.75rem;
  }
}

/* Стилове за търсачката в hero */
.search-form-hero select option {
  background: #1a1d29;
  color: #fff;
}

.search-form-hero input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-form-hero select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
