/* AFilm Detective Game - Dark Theme */

:root {
    --bg-dark: #0a0a0a;
    --bg-panel: #1a1a1a;
    --bg-card: #222222;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-red: #ff8c42;
    --accent-red-hover: #ff7a2e;
    --accent-dark: #ff7a2e;
    --border-color: #333333;
    --shadow: rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
.header {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(180deg, var(--bg-panel) 0%, var(--bg-dark) 100%);
}

.logo {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-red);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-red);
    color: var(--text-primary);
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background: var(--accent-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 140, 66, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-red);
    color: var(--accent-red);
}

.btn-secondary:hover {
    background: var(--accent-red);
    color: var(--text-primary);
}

.btn-back {
    background: var(--bg-panel);
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

.btn-back:hover {
    background: var(--bg-card);
}

/* Video Section */
.video-section {
    margin: 3rem 0;
    text-align: center;
}

.video-container {
    max-width: 800px;
    margin: 2rem auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--shadow);
}

.video-container video {
    width: 100%;
    display: block;
}

.video-container iframe {
    max-width: 800px;
    width: 100%;
    height: 480px;
    border-radius: 8px;
}

/* Vision Screens */
.vision-screen {
    display: none;
    min-height: 70vh;
    padding: 4rem 2rem;
    text-align: center;
    animation: fadeInUp 0.5s ease;
}

.vision-screen.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.vision-screen h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-red);
}

.vision-screen p {
    font-size: 1.2rem;
    max-width: 700px;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.vision-screen ul {
    list-style: none;
    font-size: 1.1rem;
    max-width: 600px;
    text-align: left;
    margin: 2rem auto;
}

.vision-screen li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.vision-screen li:before {
    content: "• ";
    color: var(--accent-red);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Progress Dots */
.progress-dots {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--accent-red);
    transform: scale(1.3);
}

/* Episode Header */
.episode-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-panel);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.episode-progress {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Episode Content */
.episode-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-red);
}

.episode-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 800px;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.video-item {
    background: var(--bg-panel);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.video-item:hover {
    border-color: var(--accent-red);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
}

.video-item video {
    width: 100%;
    display: block;
    background: #000;
}

.video-item iframe {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: none;
    display: block;
    background: #000;
}

.video-info {
    padding: 1.5rem;
}

.camera-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.camera-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--accent-red);
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.camera-btn:hover {
    background: var(--accent-red);
    transform: scale(1.05);
}

/* Answer Feedback */
.answer-feedback {
    display: none;
    margin: 3rem auto;
    padding: 2rem;
    max-width: 600px;
    border-radius: 12px;
    text-align: center;
    animation: slideIn 0.4s ease;
}

.answer-feedback.show {
    display: block;
}

.answer-feedback.correct {
    background: linear-gradient(135deg, #1a4d2e 0%, #2d5f3f 100%);
    border: 2px solid #4ade80;
}

.answer-feedback.incorrect {
    background: linear-gradient(135deg, #4d1a1a 0%, #5f2d2d 100%);
    border: 2px solid #ff6b6b;
}

.feedback-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feedback-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feedback-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Certificate */
.certificate-container {
    max-width: 800px;
    margin: 4rem auto;
    padding: 4rem;
    background: linear-gradient(135deg, var(--bg-panel) 0%, var(--bg-card) 100%);
    border: 3px solid var(--accent-red);
    border-radius: 20px;
    box-shadow: 0 20px 60px var(--shadow);
    text-align: center;
    position: relative;
}

.certificate-container::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 15px;
}

.certificate-badge {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.certificate-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-red);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.certificate-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.certificate-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.certificate-signature {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-style: italic;
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .logo {
        font-size: 2rem;
    }

    .vision-screen h1 {
        font-size: 1.8rem;
    }

    .vision-screen p {
        font-size: 1rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .video-item iframe {
        height: 200px;
    }

    .episode-header {
        flex-direction: column;
        gap: 1rem;
    }

    .certificate-container {
        padding: 2rem;
        margin: 2rem 1rem;
    }

    .certificate-title {
        font-size: 1.8rem;
    }

    .certificate-subtitle {
        font-size: 1.2rem;
    }

    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav {
        gap: 15px;
        font-size: 14px;
    }

    body {
        padding-top: 100px;
    }

    .camera-content {
        flex-direction: column;
    }

    .camera-content img {
        width: 100%;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 3rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.hidden {
    display: none;
}

/* Navigation Header */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 140, 66, 0.2);
  z-index: 9999;
  padding: 15px 0;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-header .logo {
  font-size: 24px;
  font-weight: bold;
  color: #ff8c42;
  text-decoration: none;
  transition: opacity 0.2s;
}

.main-header .logo:hover {
  opacity: 0.8;
}

.main-nav {
  display: flex;
  gap: 30px;
}

.main-nav a {
  color: #ddd;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: #ff8c42;
}

/* Отступ для контента (чтобы не наезжал на header) */
body {
  padding-top: 70px;
}

/* Cameras Page Styles */
.cameras-page {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.cameras-page h1 {
  text-align: center;
  color: #ff8c42;
  margin-bottom: 10px;
  font-size: 42px;
}

.intro {
  text-align: center;
  color: #888;
  margin-bottom: 50px;
  font-size: 18px;
}

.camera-detail {
  margin-bottom: 50px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border-left: 4px solid #ff8c42;
}

.camera-detail h2 {
  color: #ff8c42;
  margin-bottom: 20px;
  font-size: 28px;
}

.camera-content {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.camera-content img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.camera-text p {
  color: #ddd;
  line-height: 1.8;
  margin-bottom: 15px;
}

.additional-info {
  margin-top: 60px;
  padding: 40px;
  background: rgba(255, 140, 66, 0.05);
  border-radius: 12px;
}

.additional-info h2 {
  color: #ff8c42;
  margin-bottom: 30px;
  text-align: center;
}

.info-block {
  margin-bottom: 30px;
}

.info-block h3 {
  color: #ff8c42;
  margin-bottom: 15px;
  font-size: 20px;
}

.info-block ul {
  list-style: none;
  padding: 0;
}

.info-block li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ddd;
  line-height: 1.6;
}

.back-button-container {
  text-align: center;
  margin-top: 50px;
}

/* About Section Styles */
.about-section {
  max-width: 800px;
  margin: 60px auto;
  padding: 40px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
}

.about-section h2 {
  color: #ff8c42;
  margin-bottom: 20px;
  font-size: 32px;
}

.about-section h3 {
  color: #ff8c42;
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 24px;
}

.about-section p {
  color: #ddd;
  line-height: 1.8;
  margin-bottom: 15px;
  font-size: 16px;
}

/* HERO секция для главной страницы */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url('../images/fon.jpg') center/cover no-repeat;
  text-align: center;
  padding: 100px 20px 50px;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: 72px;
  color: #ff8c42;
  margin-bottom: 10px;
  font-weight: bold;
  text-shadow: 0 0 20px rgba(255, 140, 66, 0.5);
}

.hero-subtitle {
  font-size: 24px;
  color: #ddd;
  margin-bottom: 40px;
  font-style: italic;
}

.hero-section .video-container {
  margin: 40px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(255, 140, 66, 0.3);
}

.hero-section .video-container video {
  width: 100%;
  height: 450px;
  border: none;
  border-radius: 12px;
  background: #000;
}

.btn-start {
  display: inline-block;
  padding: 18px 50px;
  background: #ff8c42;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s;
  box-shadow: 0 5px 20px rgba(255, 140, 66, 0.4);
}

.btn-start:hover {
  background: #ff7a2e;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 140, 66, 0.6);
}

/* Камеры промо блок */
.cameras-promo {
  margin-top: 50px;
  padding: 40px;
  background: rgba(255, 140, 66, 0.05);
  border-radius: 12px;
  border: 2px solid rgba(255, 140, 66, 0.2);
  text-align: center;
}

.cameras-promo h3 {
  margin-top: 0;
  margin-bottom: 15px;
}

.btn-cameras {
  display: inline-block;
  margin-top: 20px;
  padding: 15px 40px;
  background: #ff8c42;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  transition: background 0.2s;
  font-weight: 600;
}

.btn-cameras:hover {
  background: #ff7a2e;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 140, 66, 0.4);
}

/* Команда */
.team-section {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}

.team-section h2 {
  color: #ff8c42;
  font-size: 42px;
  text-align: center;
  margin-bottom: 50px;
}

.team-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.team-photo-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-photo-card:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(255, 140, 66, 0.4);
}

.team-photo-card img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(100%) contrast(1.1);
}

.team-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 0%, transparent 100%);
  padding: 1.5rem 1rem 1rem;
  color: var(--text-primary);
}

.team-photo-title {
  font-size: 14px;
  font-weight: 700;
  color: #ff8c42;
  margin-bottom: 0.25rem;
}

.team-photo-subtitle {
  font-size: 12px;
  color: #b0b0b0;
}

.team-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.team-member {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

.team-member-name {
  font-weight: 700;
  color: #ff8c42;
  margin-bottom: 0.25rem;
}

.team-member-role {
  font-size: 12px;
  color: #b0b0b0;
}

/* Футер благодарности */
.footer-section {
  background: rgba(255, 255, 255, 0.02);
  padding: 60px 20px;
  text-align: center;
  margin-top: 80px;
}

.footer-section h3 {
  color: #ff8c42;
  font-size: 28px;
  margin-bottom: 20px;
}

.footer-section p {
  color: #888;
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Content Wrapper - универсальный контейнер для секций */
.content-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Концепция */
.concept-section {
  padding: 80px 20px;
  background: rgba(255, 255, 255, 0.02);
}

.concept-section h2 {
  color: #ff8c42;
  font-size: 36px;
  text-align: center;
  margin-bottom: 30px;
}

.concept-section p {
  color: #ddd;
  font-size: 18px;
  line-height: 1.8;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* Секция камер */
.cameras-section {
  padding: 80px 20px;
  background: var(--bg-dark);
}

.cameras-section h2 {
  color: #ff8c42;
  font-size: 36px;
  text-align: center;
  margin-bottom: 20px;
}

.cameras-section p {
  color: #ddd;
  font-size: 18px;
  text-align: center;
  margin-bottom: 30px;
}

/* Список команды */
.team-list-section {
  padding: 80px 20px;
  background: rgba(255, 255, 255, 0.02);
}

.team-list-section h2 {
  color: #ff8c42;
  font-size: 36px;
  text-align: center;
  margin-bottom: 40px;
}

/* Благодарности */
.thanks-section {
  padding: 80px 20px;
  background: var(--bg-dark);
}

.thanks-section h2 {
  color: #ff8c42;
  font-size: 36px;
  text-align: center;
  margin-bottom: 30px;
}

.thanks-section p {
  color: #ddd;
  font-size: 18px;
  line-height: 1.8;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

/* Футер */
.main-footer {
  background: rgba(0, 0, 0, 0.5);
  padding: 30px 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 140, 66, 0.2);
}

.main-footer p {
  color: #888;
  font-size: 14px;
  margin: 0;
}

/* Characters Section */
.characters-list {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}

.character {
    background: rgba(255, 140, 66, 0.1);
    padding: 15px 20px;
    border-left: 4px solid #FF8C42;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.character:hover {
    background: rgba(255, 140, 66, 0.2);
    transform: translateX(5px);
}

.character strong {
    color: #FF8C42;
    font-size: 1.1em;
}

.hint {
    text-align: center;
    color: #999;
    font-style: italic;
    margin: 30px 0 40px;
    font-size: 1.1em;
}

/* Мобильная версия для hero */
@media (max-width: 768px) {
  .hero-title {
    font-size: 48px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-section .video-container video {
    height: 250px;
  }

  .btn-start {
    padding: 15px 40px;
    font-size: 18px;
  }

  .team-section h2 {
    font-size: 32px;
  }

  .footer-section h3 {
    font-size: 22px;
  }

  .concept-section h2,
  .cameras-section h2,
  .team-list-section h2,
  .thanks-section h2 {
    font-size: 28px;
  }

  .concept-section p,
  .cameras-section p,
  .thanks-section p {
    font-size: 16px;
  }
}
