/*
Theme Name: Radiodetal
Theme URI: https://yoursite.com
Author: Your Name
Version: 1.0
Text Domain: radiodetal
*/

:root {
    --bg-primary: #141414;
    --bg-secondary: #181818;
    --bg-card: #1f1f1f;
    --bg-hover: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent: #e50914;
    --accent-hover: #f40612;
    --success: #46d369;
    --border: #333333;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
a:hover { color: var(--accent); }

.container { max-width: 1400px; margin: 0 auto; padding: 0 4%; }

/* === HEADER === */
.site-header {
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    padding: 20px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.3s;
}
.site-header.scrolled { background: rgba(0,0,0,0.95); }

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo { font-size: 28px; font-weight: bold; color: var(--accent); letter-spacing: 2px; }
.site-logo img { max-height: 40px; }

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 25px;
}
.main-navigation a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}
.main-navigation a:hover { color: var(--text-primary); }

.header-search input {
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border);
    padding: 8px 15px;
    border-radius: 4px;
    color: var(--text-primary);
    width: 200px;
    transition: width 0.3s;
}
.header-search input:focus {
    width: 300px;
    border-color: var(--accent);
    outline: none;
}

/* === HERO BANNER === */
.hero-banner {
    position: relative;
    height: 80vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay; /* Важно для наложения градиента */
    display: flex;
    align-items: center;
    margin-top: 0;
}

/* Убираем псевдо-элемент, так как теперь градиент в HTML */
.hero-banner::before {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding-left: 4%;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* Тень для текста */
}

.hero-content p {
    font-size: 18px;
    color: #e0e0e0; /* Чуть светлее для контраста */
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, opacity 0.2s;
}
.btn:hover { transform: scale(1.05); opacity: 0.9; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-whatsapp { background: var(--success); color: #fff; }
.btn-outline { background: rgba(255,255,255,0.2); color: #fff; border: 1px solid #fff; }

.contact-buttons { display: flex; gap: 15px; flex-wrap: wrap; }

/* === NETFLIX ROWS (Horizontal Scroll) === */
.section-row {
    margin: 40px 0;
    position: relative;
}
.section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
    padding-left: 4%;
}

.row-scroller {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 4%;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.row-scroller::-webkit-scrollbar { display: none; }

.row-card {
    flex: 0 0 200px;
    background: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s, z-index 0.3s;
    cursor: pointer;
    position: relative;
}
.row-card:hover {
    transform: scale(1.1);
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.row-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}
.row-card-info {
    padding: 12px;
}
.row-card-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.row-card-meta {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* === ADVANCED FILTER === */
.advanced-filter {
    background: var(--bg-secondary);
    padding: 30px 4%;
    margin: 20px 0;
    border-radius: 8px;
}
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}
.filter-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.filter-group select,
.filter-group input {
    width: 100%;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 14px;
}
.filter-group select:focus,
.filter-group input:focus {
    border-color: var(--accent);
    outline: none;
}
.filter-submit {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 10px;
}

/* === DETAIL PAGE (Poster Left, Info Right) === */
.detail-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 8px;
    margin: 30px 0;
}
.detail-poster {
    flex: 0 0 300px;
    max-width: 300px;
}
.detail-poster img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.detail-info {
    flex: 1;
    min-width: 300px;
}
.detail-info h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}
.detail-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}
.detail-slogan {
    font-size: 16px;
    color: var(--accent);
    font-style: italic;
    margin-bottom: 20px;
}
.detail-meta {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.8;
}
.detail-price {
    font-size: 28px;
    color: var(--success);
    font-weight: 700;
    margin: 20px 0;
}

/* === CONTENT BLOCKS === */
.content-block {
    margin: 50px 0;
    padding: 0 4%;
}
.content-block h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 4px solid var(--accent);
    color: var(--text-primary);
}
.content-block p,
.content-block div {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 16px;
}

/* === METAL TABLE === */
.metal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
}
.metal-table th,
.metal-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}
.metal-table th {
    background: var(--bg-hover);
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}
.metal-table tr:hover { background: var(--bg-hover); }
.price-exchange { color: var(--text-secondary); }
.price-buyer { color: var(--success); font-weight: 700; font-size: 18px; }

/* === GALLERY GRID === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 25px;
}
.gallery-grid img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s;
}
.gallery-grid img:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* === FINAL BANNER === */
.final-banner {
    background: linear-gradient(135deg, var(--accent) 0%, #900 100%);
    padding: 60px 4%;
    text-align: center;
    margin: 60px 0;
    border-radius: 8px;
}
.final-banner h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #fff;
}
.final-banner .contact-buttons {
    justify-content: center;
}

/* === FOOTER === */
.site-footer {
    background: #000;
    padding: 60px 0 30px;
    margin-top: 80px;
    border-top: 1px solid var(--border);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-grid h4 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 16px;
}
.footer-grid ul {
    list-style: none;
}
.footer-grid li {
    margin-bottom: 12px;
}
.footer-grid a {
    color: var(--text-secondary);
    font-size: 14px;
}
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 13px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 32px; }
    .detail-hero { flex-direction: column; }
    .detail-poster { max-width: 100%; }
    .detail-info h1 { font-size: 28px; }
    .row-card { flex: 0 0 150px; }
    .row-card img { height: 210px; }
    .contact-buttons { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .site-header .container { flex-wrap: wrap; gap: 15px; }
    .main-navigation ul { flex-wrap: wrap; justify-content: center; }
}
/* === EXTRA INFO BLOCKS - НЕТФЛИКС СТИЛЬ === */
.extra-info-section {
    margin: 60px 0;
    padding: 0 4%;
}

.extra-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.extra-block {
    background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.extra-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent) 0%, #900 100%);
    transition: width 0.3s ease;
}

.extra-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.2);
    border-color: var(--accent);
}

.extra-block:hover::before {
    width: 6px;
}

.extra-block-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.extra-block-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(229, 9, 20, 0.1);
    border-radius: 8px;
    flex-shrink: 0;
}

.extra-block-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.extra-block-content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 15px;
}

.extra-block-content p {
    margin: 0 0 15px;
}

.extra-block-content p:last-child {
    margin-bottom: 0;
}

.extra-block-content ul,
.extra-block-content ol {
    margin: 10px 0;
    padding-left: 20px;
}

.extra-block-content li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.extra-block-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* === ACCORDION VERSION (Optional) === */
.extra-block.accordion {
    cursor: pointer;
}

.extra-block.accordion .extra-block-content {
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.extra-block.accordion.collapsed .extra-block-content {
    max-height: 0;
}

.extra-block.accordion::after {
    content: '▼';
    position: absolute;
    right: 20px;
    top: 25px;
    color: var(--text-secondary);
    font-size: 12px;
    transition: transform 0.3s ease;
}

.extra-block.accordion.collapsed::after {
    transform: rotate(-90deg);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .extra-info-grid {
        grid-template-columns: 1fr;
    }
    
    .extra-block {
        padding: 20px;
    }
    
    .extra-block-title {
        font-size: 16px;
    }
}

/* === SECTION TITLE === */
.extra-info-section h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    padding-left: 15px;
    border-left: 4px solid var(--accent);
}

.extra-info-section > p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}
/* ============================================================================
   15 БЛОКОВ ДОПОЛНИТЕЛЬНОЙ ИНФОРМАЦИИ - NETFLIX STYLE
   ============================================================================ */

.extra-info-section {
    margin: 60px 0;
    padding: 0 4%;
}

.extra-info-section h2 {
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
    padding-left: 15px;
    border-left: 4px solid #e50914;
}

.extra-info-section > p {
    color: #b3b3b3;
    margin-bottom: 30px;
    font-size: 16px;
}

.extra-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.extra-block {
    background: linear-gradient(145deg, #1f1f1f 0%, #181818 100%);
    border: 1px solid #333333;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.extra-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #e50914 0%, #900 100%);
    transition: width 0.3s ease;
}

.extra-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.2);
    border-color: #e50914;
}

.extra-block:hover::before {
    width: 6px;
}

.extra-block-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333333;
}

.extra-block-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(229, 9, 20, 0.1);
    border-radius: 8px;
    flex-shrink: 0;
}

.extra-block-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
}

.extra-block-content {
    color: #b3b3b3;
    line-height: 1.8;
    font-size: 15px;
}

.extra-block-content p {
    margin: 0 0 15px;
}

.extra-block-content p:last-child {
    margin-bottom: 0;
}

.extra-block-content ul,
.extra-block-content ol {
    margin: 10px 0;
    padding-left: 20px;
}

.extra-block-content li {
    margin-bottom: 8px;
    color: #b3b3b3;
}

.extra-block-content strong {
    color: #ffffff;
    font-weight: 600;
}

@media (max-width: 768px) {
    .extra-info-grid {
        grid-template-columns: 1fr;
    }
    
    .extra-block {
        padding: 20px;
    }
    
    .extra-block-title {
        font-size: 16px;
    }
}

/* ============================================================================
   ХЛЕБНЫЕ КРОШКИ (BREADCRUMBS)
   ============================================================================ */

.breadcrumbs {
    padding: 20px 4%;
    margin-bottom: 20px;
    font-size: 14px;
    color: #b3b3b3;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.breadcrumbs a {
    color: #b3b3b3;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: #e50914;
}

.breadcrumbs span {
    color: #ffffff;
}

.breadcrumbs .separator {
    color: #e50914;
    margin: 0 8px;
}

@media (max-width: 768px) {
    .breadcrumbs {
        padding: 15px 4%;
        font-size: 13px;
    }
}

/* ============================================================================
   НОВАЯ ШАПКА С МЕНЮ-КНОПКОЙ
   ============================================================================ */

.site-header {
    background: rgba(0, 0, 0, 0.95);
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.site-logo a {
    font-size: 24px;
    font-weight: bold;
    color: #e50914;
    text-decoration: none;
    letter-spacing: 2px;
}

/* Кнопка меню (Гамбургер) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    transition: all 0.3s;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Навигация */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-menu {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.main-menu a {
    color: #b3b3b3;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.main-menu a:hover {
    color: #e50914;
}

/* Кнопки связи в шапке */
.header-contact-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-phone {
    background: #e50914;
    color: #fff;
}

.btn-phone:hover {
    background: #f40612;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #46d369;
    color: #fff;
}

.btn-whatsapp:hover {
    background: #3dc45a;
    transform: translateY(-2px);
}

.btn-contact .icon {
    font-size: 16px;
}

/* Адаптивность для шапки */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        border-left: 1px solid #333;
    }
    
    .main-navigation.active {
        right: 0;
    }
    
    .nav-menu-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        width: 100%;
    }
    
    .main-menu {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .header-contact-buttons {
        flex-direction: column;
        width: 100%;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid #333;
    }
    
    .btn-contact {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================================
   СЕТКА КАТЕГОРИЙ (3 КОЛОНКИ)
   ============================================================================ */

.category-grid-section {
    margin: 60px 0;
    padding: 0 4%;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-grid-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s;
    display: block;
}

.category-grid-item:hover {
    transform: scale(1.05);
}

.category-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.category-grid-item:hover img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.9) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.category-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   СОВРЕМЕННЫЙ ФИЛЬТР
   ============================================================================ */

.modern-filter-section {
    margin: 60px 0;
    padding: 40px;
    background: linear-gradient(145deg, #1f1f1f 0%, #181818 100%);
    border-radius: 12px;
    border: 1px solid #333;
}

.filter-header {
    text-align: center;
    margin-bottom: 30px;
}

.modern-filter-form .filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.filter-field label {
    display: block;
    color: #b3b3b3;
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 500;
}

.filter-field input,
.filter-field select {
    width: 100%;
    padding: 14px 16px;
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    transition: border-color 0.3s;
}

.filter-field input:focus,
.filter-field select:focus {
    outline: none;
    border-color: #e50914;
}

.filter-field select {
    cursor: pointer;
}

.filter-submit {
    text-align: center;
}

.btn-search {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 48px;
    background: linear-gradient(135deg, #e50914 0%, #900 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.3);
}

@media (max-width: 576px) {
    .modern-filter-section {
        padding: 25px;
    }
    
    .btn-search {
        width: 100%;
        justify-content: center;
    }
}