/* 
Theme Name: MovieTheme
Theme URI: 
Author: Ваше имя
Author URI: 
Description: Тема для киносайта
Version: 1.0
Text Domain: movietheme
*/

/* Импорт всех CSS-модулей */
@import url('css/base.css'); /*Базовые стили (тело, ссыки, контейнеры)*/
@import url('css/header.css'); /*Стили шапки сайта*/
@import url('css/movie-grid.css'); /*Стили сетки фильмов и карточек*/
@import url('css/comments.css'); /*Стили системы комментариев*/
@import url('css/auth.css'); /*Стили форм авторизации/регистрации*/
@import url('css/slider.css'); /*Стили слайдера фильмов*/
@import url('css/responsive.css'); /*Адаптивные стили для всех устройств*/

/* =============== ОСНОВНЫЕ СТИЛИ =============== */

/* Блоки информации */
.movie-info-column, .movie-trailer, 
.movie-actors-box, .movie-extra-info,
.movie-gallery-box, .movie-player-box {
  background: #2d2d2d;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  border: 1px solid #3a3a3a;
}

/* Заголовки блоков */
.section-title {
  color: #e74c3c;
  font-size: 24px;
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #444;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100px;
  height: 2px;
  background: #e74c3c;
}

/* =============== СТИЛИ КАТЕГОРИЙ =============== */
.movie-categories {
  background: #2d2d2d;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  border: 1px solid #3a3a3a;
  position: relative;
  overflow: hidden;
}

.categories-title {
  color: #e74c3c !important;
  text-shadow: 
    0 0 8px rgba(231, 76, 60, 0.5),
    0 0 15px rgba(231, 76, 60, 0.3);
  font-size: 24px !important;
  text-align: center;
  margin: 0 0 25px 0 !important;
  position: relative;
  padding-bottom: 15px;
  letter-spacing: 0.5px;
  font-weight: 700;
  line-height: 1.3;
  animation: pulseGlow 2s infinite alternate;
}

.categories-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #e74c3c, transparent);
}

.categories-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-item {
  margin-bottom: 0;
  perspective: 1000px;
}

.category-link {
  display: block;
  background: linear-gradient(135deg, #3a3a3a, #2d2d2d);
  color: #e0e0e0;
  padding: 15px;
  border-radius: 8px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  border: 1px solid #444;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.category-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 0;
}

.category-link:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 8px 15px rgba(231, 76, 60, 0.3);
  color: #fff;
  border-color: #e74c3c;
  animation: hoverGlow 1.5s infinite alternate;
}

.category-link:hover::before {
  opacity: 1;
}

.category-link:hover .category-count {
  background: rgba(231, 76, 60, 0.3);
  color: #fff;
}

.category-item.active .category-link {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  border-color: #e74c3c;
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
  transform: translateY(-3px);
}

.category-item.active .category-link .category-count {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.category-count {
  background: rgba(231, 76, 60, 0.2);
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 12px;
  margin-left: 8px;
  transition: all 0.3s;
  display: inline-block;
}

@keyframes pulseGlow {
  0% {
    text-shadow: 0 0 8px rgba(231, 76, 60, 0.5),
                 0 0 15px rgba(231, 76, 60, 0.3);
  }
  100% {
    text-shadow: 0 0 12px rgba(231, 76, 60, 0.8),
                 0 0 20px rgba(231, 76, 60, 0.5),
                 0 0 25px rgba(231, 76, 60, 0.2);
  }
}

@keyframes hoverGlow {
  0% {
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
  }
  100% {
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.6),
                0 0 30px rgba(231, 76, 60, 0.2);
  }
}

/* Описание фильма */
.description-content {
  text-align: justify;
  line-height: 1.8;
  font-size: 16px;
  color: #d0d0d0;
}

.description-content p {
  margin-bottom: 25px;
  hyphens: auto;
  text-align: justify;
}

/* Улучшение читаемости */
.description-content strong {
  color: #e0e0e0;
}

.description-content a {
  color: #e74c3c;
  text-decoration: underline;
}

.description-content ul, 
.description-content ol {
  padding-left: 25px;
  margin-bottom: 25px;
}

.description-content li {
  margin-bottom: 8px;
}

/* =============== ТАБЛИЧНЫЙ СТИЛЬ С ВЕРТИКАЛЬНЫМИ ЛИНИЯМИ =============== */
.movie-meta-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 20px 0;
  border: 1px solid #444;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.movie-meta-table .meta-row {
  transition: all 0.3s ease;
  background: #333;
}

.movie-meta-table .meta-row:nth-child(even) {
  background: #2d2d2d;
}

.movie-meta-table .meta-row:hover {
  background: rgba(255, 107, 91, 0.1);
}

.movie-meta-table .meta-label {
  color: #ff6b5b;
  text-shadow: 0 0 6px rgba(255, 107, 91, 0.5);
  font-weight: bold;
  font-size: 18px;
  padding: 12px 15px;
  text-align: left;
  vertical-align: middle;
  width: 40%;
  border-right: 1px solid #444;
  border-bottom: 1px solid #444;
}

.movie-meta-table .meta-value {
  color: #e0e0e0;
  font-size: 18px;
  padding: 12px 15px;
  text-align: left;
  vertical-align: middle;
  width: 60%;
  border-bottom: 1px solid #444;
}

.movie-meta-table .meta-row:last-child .meta-label,
.movie-meta-table .meta-row:last-child .meta-value {
  border-bottom: none;
}

.movie-meta-table .meta-row:hover .meta-label {
  text-shadow: 0 0 10px rgba(255, 107, 91, 0.8);
  color: #ff8a7a;
}

.movie-meta-table .meta-row:hover .meta-value {
  color: #ffffff;
}

/* Адаптивность таблицы */
@media (max-width: 768px) {
  .movie-meta-table {
    border: none;
    box-shadow: none;
  }
  
  .movie-meta-table,
  .movie-meta-table tbody,
  .movie-meta-table .meta-row,
  .movie-meta-table .meta-label,
  .movie-meta-table .meta-value {
    display: block;
    width: 100%;
  }
  
  .movie-meta-table .meta-row {
    margin-bottom: 10px;
    padding-bottom: 0;
    border-bottom: 1px dashed #444;
    background: #2d2d2d;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  }
  
  .movie-meta-table .meta-label {
    padding: 12px 15px;
    border-bottom: 1px solid #444;
    border-right: none;
    font-size: 17px;
    width: 100%;
  }
  
  .movie-meta-table .meta-value {
    padding: 12px 15px;
    border-bottom: none;
    font-size: 16px;
    width: 100%;
  }
  
  .movie-meta-table .meta-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }
}

/* =============== СТИЛИ ДЛЯ НАЗВАНИЯ ФИЛЬМА =============== */
.movie-single-title {
  color: #2ecc71 !important;
  text-shadow: 
    0 0 8px rgba(46, 204, 113, 0.5),
    0 0 15px rgba(46, 204, 113, 0.3);
  font-size: 30px !important;
  text-align: center;
  margin: 0 0 25px 0 !important;
  position: relative;
  padding-bottom: 15px;
  letter-spacing: 0.5px;
  font-weight: 700;
  line-height: 1.3;
}

.movie-single-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #2ecc71, transparent);
}

/* Адаптивность */
@media (max-width: 992px) {
  .movie-single-title {
    font-size: 26px !important;
    padding-bottom: 12px;
  }
}

@media (max-width: 768px) {
  .movie-single-title {
    font-size: 22px !important;
    padding-bottom: 10px;
    margin-bottom: 20px !important;
  }
  
  .movie-single-title:after {
    width: 120px;
  }
}

@media (max-width: 576px) {
  .movie-single-title {
    font-size: 20px !important;
    padding-bottom: 8px;
  }
  
  .movie-single-title:after {
    width: 100px;
    height: 2px;
  }
}


/* Стили для логотипа */
.logo .site-title {
    font-size: 27px; /* Было 32px, уменьшили на 5 пунктов */
    font-weight: 700;
    letter-spacing: 3px;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    text-shadow: 
        0 0 8px rgba(231, 76, 60, 0.5),
        0 0 15px rgba(231, 76, 60, 0.3);
    position: relative;
    display: inline-block;
    animation: pulseGlow 2s infinite alternate;
    transition: all 0.3s ease;
}

.logo .site-title:hover {
    color: #e74c3c;
    text-shadow: 
        0 0 12px rgba(231, 76, 60, 0.8),
        0 0 20px rgba(231, 76, 60, 0.5),
        0 0 25px rgba(231, 76, 60, 0.2);
    transform: scale(1.05);
}

/* Стили для основного меню */
.primary-menu {
    display: flex;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.primary-menu li {
    margin: 0;
    perspective: 1000px;
}

.primary-menu a {
    display: block;
    background: linear-gradient(135deg, #3a3a3a, #2d2d2d);
    color: #e0e0e0;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #444;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.primary-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.primary-menu a:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 15px rgba(231, 76, 60, 0.3);
    color: #fff;
    border-color: #e74c3c;
    animation: hoverGlow 1.5s infinite alternate;
}

.primary-menu a:hover::before {
    opacity: 1;
}

.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border-color: #e74c3c;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
    transform: translateY(-3px);
}

/* Анимации (добавить если их нет) */
@keyframes pulseGlow {
    0% {
        text-shadow: 0 0 8px rgba(231, 76, 60, 0.5),
                     0 0 15px rgba(231, 76, 60, 0.3);
    }
    100% {
        text-shadow: 0 0 12px rgba(231, 76, 60, 0.8),
                     0 0 20px rgba(231, 76, 60, 0.5),
                     0 0 25px rgba(231, 76, 60, 0.2);
    }
}

@keyframes hoverGlow {
    0% {
        box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
    }
    100% {
        box-shadow: 0 5px 20px rgba(231, 76, 60, 0.6),
                    0 0 30px rgba(231, 76, 60, 0.2);
    }
}