/*
Theme Name: NeonRadio
Theme URI: https://yoursite.com
Author: Your Name
Version: 2.0
Text Domain: neon-radio
Description: Неоновая тема для скупки радиодеталей в стиле Cyberpunk.
*/

:root {
    --bg-dark: #050505;
    --bg-card: #111111;
    --bg-input: #1a1a1a;
    --neon-blue: #00f3ff;
    --neon-red: #ff0055;
    --neon-green: #00ff99;
    --text-main: #e0e0e0;
    --text-dim: #888888;
    --border-color: #333333;
    --font-head: 'Rajdhani', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;700&family=Roboto:wght@300;400;500&display=swap');

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
a:hover { color: var(--neon-blue); text-shadow: 0 0 8px var(--neon-blue); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* === HEADER === */
.site-header {
    background: rgba(5, 5, 5, 0.95);
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--neon-red);
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.2);
}

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

.site-logo a {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 700;
    color: var(--neon-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--neon-blue);
}

/* Menu */
.main-navigation ul { list-style: none; display: flex; gap: 20px; }
.main-navigation a {
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
}
.main-navigation a:hover { color: var(--neon-green); }

/* Buttons in Header */
.header-contact-buttons { display: flex; gap: 10px; }
.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid transparent;
}
.btn-phone {
    background: rgba(0, 243, 255, 0.1);
    color: var(--neon-blue);
    border-color: var(--neon-blue);
}
.btn-whatsapp {
    background: rgba(0, 255, 153, 0.1);
    color: var(--neon-green);
    border-color: var(--neon-green);
}
.btn-contact:hover {
    box-shadow: 0 0 10px currentColor;
    transform: translateY(-2px);
}

/* Mobile Menu */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; }
.menu-toggle span { display: block; width: 25px; height: 3px; background: var(--neon-red); margin: 5px 0; }
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .main-navigation {
        position: fixed; top: 0; right: -100%; width: 300px; height: 100vh;
        background: var(--bg-dark); border-left: 1px solid var(--neon-red);
        padding: 80px 20px; transition: 0.3s;
    }
    .main-navigation.active { right: 0; }
    .main-navigation ul { flex-direction: column; }
    .header-contact-buttons { flex-direction: column; margin-top: 20px; }
}

/* === HERO SECTION === */
.hero-banner {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    margin-top: 60px;
    border-bottom: 1px solid var(--neon-blue);
}
.hero-banner::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, #050505 0%, rgba(5,5,5,0.7) 100%);
}
.hero-content {
    position: relative; z-index: 2;
    max-width: 600px; padding: 0 20px;
}
.hero-content h1 {
    font-family: var(--font-head);
    font-size: 32px; /* Уменьшено */
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 0 10px var(--neon-red);
}
.hero-content p {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 20px;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px; /* Уменьшено */
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px; /* Уменьшено */
    cursor: pointer;
    border: 1px solid transparent;
    transition: 0.3s;
    text-transform: uppercase;
}
.btn-primary {
    background: var(--neon-red);
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.4);
}
.btn-whatsapp {
    background: var(--neon-green);
    color: #000;
    box-shadow: 0 0 10px rgba(0, 255, 153, 0.4);
}
.btn-outline {
    background: transparent;
    color: var(--neon-blue);
    border-color: var(--neon-blue);
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px currentColor;
}

/* === CARDS & GRID === */
.archive-grid, .search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    transition: 0.3s;
    position: relative;
}
.card:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
    transform: translateY(-5px);
}
.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}
.card-content { padding: 15px; }
.card-title {
    font-family: var(--font-head);
    font-size: 18px; /* Уменьшено */
    color: #fff;
    margin-bottom: 10px;
}
.card-excerpt {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 10px;
}
.card-price {
    color: var(--neon-green);
    font-weight: 700;
    font-size: 14px;
    text-shadow: 0 0 5px rgba(0, 255, 153, 0.5);
}

/* === FILTERS === */
.advanced-filter, .modern-filter-section {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin: 30px 0;
}
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}
.filter-group label {
    font-size: 12px;
    color: var(--neon-blue);
    margin-bottom: 5px;
    display: block;
    text-transform: uppercase;
}
.filter-group input, .filter-group select {
    width: 100%;
    padding: 10px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
}
.filter-group input:focus, .filter-group select:focus {
    border-color: var(--neon-green);
    outline: none;
}

/* === TYPOGRAPHY === */
h1, h2, h3 {
    font-family: var(--font-head);
    color: #fff;
    margin-bottom: 15px;
}
h1 { font-size: 28px; } /* Уменьшено */
h2 { font-size: 24px; border-left: 3px solid var(--neon-red); padding-left: 10px; }
h3 { font-size: 20px; }

/* === BREADCRUMBS === */
.breadcrumbs {
    padding: 15px 20px;
    margin-bottom: 20px;
    font-size: 12px;
    color: var(--text-dim);
    background: var(--bg-card);
    border-radius: 4px;
    border: 1px solid var(--border-color);
}
.breadcrumbs a { color: var(--neon-blue); }
.breadcrumbs span { color: var(--neon-red); margin: 0 5px; }

/* === FOOTER === */
.site-footer {
    background: #000;
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid var(--neon-blue);
    text-align: center;
    color: var(--text-dim);
    font-size: 13px;
}
.footer-menu ul { list-style: none; display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; }
.footer-menu a { color: var(--text-dim); }
.footer-menu a:hover { color: var(--neon-green); }

/* === NETFLIX ROWS === */
.row-scroller {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
}
.row-scroller::-webkit-scrollbar { display: none; }
.row-card {
    flex: 0 0 180px;
    background: var(--bg-card);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: 0.3s;
}
.row-card:hover {
    border-color: var(--neon-red);
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.3);
}
.row-card img { width: 100%; height: 240px; object-fit: cover; }
.row-card-info { padding: 10px; }
.row-card-title { font-size: 13px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-card-meta { font-size: 11px; color: var(--neon-green); margin-top: 5px; }

/* === TABLES === */
table { width: 100%; border-collapse: collapse; background: var(--bg-card); margin: 20px 0; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid var(--border-color); color: var(--text-main); font-size: 13px; }
th { color: var(--neon-blue); text-transform: uppercase; font-size: 12px; }
tr:hover { background: rgba(0, 243, 255, 0.05); }

/* === EXTRA BLOCKS === */
.extra-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.extra-block {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.extra-block::before {
    content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%;
    background: var(--neon-green);
}
.extra-block h3 { font-size: 16px; color: var(--neon-green); margin-bottom: 10px; }
.extra-block p { font-size: 13px; color: var(--text-dim); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 24px; }
    .archive-grid, .search-results { grid-template-columns: 1fr; }
    .filter-grid { grid-template-columns: 1fr; }
    h1 { font-size: 24px; }
    h2 { font-size: 20px; }
}

/* === 4 COLUMN CATEGORY GRID (FIXED) === */
.category-grid-section {
    margin: 40px 0;
}
.neon-section-title {
    font-family: var(--font-head);
    color: #fff;
    font-size: 24px;
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 4px solid var(--neon-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}
.category-grid {
    display: grid;
    /* ПРИНУДИТЕЛЬНО 4 КОЛОНКИ */
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}
.category-grid-item {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    /* Постоянная легкая подсветка */
    box-shadow: 0 0 5px rgba(0, 243, 255, 0.1);
}
/* Неоновая подсветка при наведении */
.category-grid-item:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4), inset 0 0 10px rgba(0, 243, 255, 0.1);
    transform: translateY(-5px);
    z-index: 2;
}
.cat-image-box {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}
.cat-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.category-grid-item:hover .cat-image-box img {
    transform: scale(1.1);
}
.cat-placeholder {
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 40px;
}
.cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, #000 100%);
    pointer-events: none;
}
.cat-content {
    padding: 12px;
    background: rgba(10, 10, 10, 0.95);
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cat-name {
    font-family: var(--font-head);
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}
.category-grid-item:hover .cat-name {
    color: var(--neon-blue);
    text-shadow: 0 0 8px var(--neon-blue);
}

/* АДАПТИВНОСТЬ */
@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшете */
    }
}
@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr; /* 1 колонка на телефоне */
    }
}