/*
Theme Name: Sherlock Online
Theme URI: https://sherlock-online.ru/
Author: Quest Room Developer
Author URI: https://sherlock-online.ru/
Description: Темная мистическая тема для квест-комнат в стиле детективных историй. Включает бронирование, галерею и современный дизайн.
Version: 1.0.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sherlock-online
Tags: quest-room, dark-theme, booking, entertainment, mystery
*/

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --sherlock-bg: #0a0a0a;
  --sherlock-card: #1a1a1a;
  --sherlock-text: #e8e8e8;
  --sherlock-muted: #888888;
  --sherlock-accent: #c41e3a;
  --sherlock-gold: #d4af37;
  --sherlock-border: #333333;
  --sherlock-shadow: rgba(0, 0, 0, 0.8);
  --sherlock-radius: 8px;
  --sherlock-maxw: 1200px;
}

html, body {
  background: var(--sherlock-bg);
  color: var(--sherlock-text);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body {
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(196, 30, 58, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
    linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  min-height: 100vh;
}

a {
  color: var(--sherlock-gold);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--sherlock-accent);
  text-shadow: 0 0 8px rgba(196, 30, 58, 0.5);
}

.container {
  max-width: var(--sherlock-maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sherlock-border);
  box-shadow: 0 2px 20px var(--sherlock-shadow);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  color: var(--sherlock-gold);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.brand__logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--sherlock-gold), var(--sherlock-accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--sherlock-bg);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  color: var(--sherlock-text);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--sherlock-radius);
  transition: all 0.3s ease;
}

.primary-nav a:hover {
  background: rgba(196, 30, 58, 0.1);
  color: var(--sherlock-accent);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--sherlock-gold), var(--sherlock-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.hero p {
  font-size: 1.2rem;
  color: var(--sherlock-muted);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--sherlock-accent), #8b0000);
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 10px 30px rgba(196, 30, 58, 0.4);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(196, 30, 58, 0.6);
}

/* Quest Cards */
.quests-section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--sherlock-gold);
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.quests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.quest-card {
  background: var(--sherlock-card);
  border: 1px solid var(--sherlock-border);
  border-radius: var(--sherlock-radius);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px var(--sherlock-shadow);
}

.quest-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px var(--sherlock-shadow);
  border-color: var(--sherlock-gold);
}

.quest-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--sherlock-muted);
}

.quest-content {
  padding: 25px;
}

.quest-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--sherlock-gold);
}

.quest-description {
  color: var(--sherlock-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.quest-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.quest-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sherlock-accent);
}

.quest-duration {
  color: var(--sherlock-muted);
  font-size: 0.9rem;
}

.book-button {
  width: 100%;
  background: linear-gradient(135deg, var(--sherlock-gold), #b8860b);
  color: var(--sherlock-bg);
  border: none;
  padding: 12px;
  border-radius: var(--sherlock-radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.book-button:hover {
  background: linear-gradient(135deg, #b8860b, var(--sherlock-gold));
  transform: translateY(-2px);
}

/* Footer */
.site-footer {
  background: var(--sherlock-card);
  border-top: 1px solid var(--sherlock-border);
  padding: 40px 0;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h3 {
  color: var(--sherlock-gold);
  margin-bottom: 15px;
}

.footer-section p,
.footer-section a {
  color: var(--sherlock-muted);
  margin-bottom: 8px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--sherlock-border);
  color: var(--sherlock-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .primary-nav ul {
    flex-direction: column;
    gap: 10px;
  }
  
  .quests-grid {
    grid-template-columns: 1fr;
  }
  
  .site-header-inner {
    flex-direction: column;
    gap: 15px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quest-card {
  animation: fadeInUp 0.6s ease-out;
}

/* Booking Modal */
.booking-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--sherlock-card);
  border: 1px solid var(--sherlock-border);
  border-radius: var(--sherlock-radius);
  padding: 30px;
  max-width: 500px;
  width: 90%;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: var(--sherlock-muted);
  font-size: 24px;
  cursor: pointer;
}

.modal-title {
  color: var(--sherlock-gold);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: var(--sherlock-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  background: var(--sherlock-bg);
  border: 1px solid var(--sherlock-border);
  border-radius: var(--sherlock-radius);
  color: var(--sherlock-text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sherlock-gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}
