/* ==========================================================
   🌐 PIXTERRA STYLE.CSS (v2025.11.07)
   Главный файл базовых стилей — структура, поиск, кнопки, адаптив
   Совместимо с Bootstrap 5.1.3 и стеклянной навигацией header.php
   ========================================================== */


/* ===============================
   🌈 GLOBAL VARIABLES
   =============================== */
:root {
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --blur-bg: rgba(255, 255, 255, 0.3);
  --blur-border: rgba(255, 255, 255, 0.4);
  --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.08);
  --shadow-strong: 0 10px 30px rgba(0, 0, 0, 0.25);
  --radius: 15px;
}

/* ===============================
   🧭 STRUCTURE & RESET
   =============================== */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #eef3f8 0%, #ffffff 100%);
  color: #2c3e50;
}

.main-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #f8f9fa;
}

/* ===============================
   🔍 HERO SEARCH (Glassmorphism)
   =============================== */
.search-hero {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 60px);
  max-width: 700px;
  padding: 25px 20px;
  text-align: center;
  border-radius: 20px;
  backdrop-filter: blur(15px);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  animation: fadeInUp 0.8s ease;
}

.search-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.search-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 25px;
  color: #e0e0e0;
}

.search-center-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 10px;
}

.search-center-input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.search-center-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-center-input:focus {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.search-center-btn,
.btn-locate-me {
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.search-center-btn:hover,
.btn-locate-me:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

/* ===============================
   👤 USER CONTROLS
   =============================== */
.user-controls {
  position: absolute;
  top: 25px;
  right: 40px;
  display: flex;
  gap: 10px;
  z-index: 1001;
}

.user-controls .btn {
  border: 1px solid var(--blur-border);
  background: rgba(255, 255, 255, 0.25);
  color: #2c3e50;
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.user-controls .btn:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.user-controls .btn-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
}

/* ===============================
   💫 ANIMATIONS
   =============================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===============================
   📱 MOBILE ADAPTATION
   =============================== */
@media (max-width: 768px) {
  .search-hero {
    top: 10px;
    padding: 15px;
    width: calc(100% - 30px);
  }

  .search-title {
    font-size: 1.4rem;
  }

  .search-center-container {
    flex-direction: column;
    gap: 8px;
  }

  .search-center-input,
  .search-center-btn,
  .btn-locate-me {
    width: 100%;
    border-radius: 10px;
  }

  .user-controls {
    top: 15px;
    right: 15px;
    gap: 6px;
  }

  .user-controls .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}
