/*
Theme Name: Rock n Roll Racing
Theme URI: https://rocknrollracing.ru/
Author: Rock n Roll Racing Team
Author URI: https://rocknrollracing.ru/
Description: Тема для сайта Rock n Roll Racing
Version: 1.0
License: GPL v2 or later
Text Domain: rnr-racing
*/

/* ================================================================
   БАЗОВЫЕ СТИЛИ
   ================================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #050505;
    color: #fff;
    font-family: 'Oswald', sans-serif;
}

.container {
    width: 1400px;
    max-width: 95%;
    margin: auto;
}

/* ================================================================
   ШАПКА
   ================================================================ */
header {
    padding: 20px 0;
    border-bottom: 1px solid #222;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.logo a {
    display: block;
    text-decoration: none;
}

.site-logo {
    display: block;
    height: 95px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(255,120,0,.7)) drop-shadow(0 0 20px rgba(255,120,0,.5));
    transition: .3s;
}

.site-logo:hover {
    transform: scale(1.03);
}

/* ===== МЕНЮ ===== */
nav ul,
.primary-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav ul li,
.primary-menu li {
    list-style: none;
}

nav a,
.primary-menu a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    transition: .3s;
}

nav a:hover,
.primary-menu a:hover {
    color: #a855ff;
}

/* ================================================================
   HERO БЛОК
   ================================================================ */
.hero {
    margin-top: 20px;
    min-height: 600px;
    border: 1px solid #222;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    background: url('/wp-content/uploads/2026/06/main.webp') center/cover;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0) 50%, rgba(0,0,0,.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 80px;
    width: 40%;
}

.hero h1 {
    font-size: 64px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 24px;
    color: #ccc;
    margin-bottom: 30px;
}

.buttons {
    display: flex;
    gap: 20px;
}

/* ===== КНОПКИ ===== */
.btn {
    padding: 18px 40px;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    display: inline-block;
    transition: .3s;
}

.btn-purple {
    background: #6828ff;
    color: #fff;
    box-shadow: 0 0 20px #6828ff;
}
.btn-purple:hover {
    background: #7a3fff;
    box-shadow: 0 0 30px #6828ff;
}

.btn-orange {
    background: #ff7a00;
    color: #fff;
    box-shadow: 0 0 20px #ff7a00;
}
.btn-orange:hover {
    background: #ff8f20;
    box-shadow: 0 0 30px #ff7a00;
}

/* ================================================================
   СЕТКА ГЛАВНОЙ
   ================================================================ */
.grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: #090909;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 20px;
}

.card-title {
    margin-bottom: 15px;
    font-size: 24px;
}

.gallery img {
    width: 100%;
    border-radius: 8px;
}

.news {
    list-style: none;
}
.news li {
    padding: 10px 0;
    border-bottom: 1px solid #1b1b1b;
}
.news li:last-child {
    border: none;
}
.news a {
    color: #fff;
    text-decoration: none;
    transition: .3s;
}
.news a:hover {
    color: #a855ff;
}

/* ================================================================
   БЛОК FEATURES (4 КАРТОЧКИ)
   ================================================================ */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.feature-card {
    background: #090909;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 20px;
    transition: .3s;
}
.feature-card:hover {
    transform: translateY(-5px);
    border-color: #6828ff;
    box-shadow: 0 0 20px rgba(104,40,255,.4);
}
.feature-card img {
    width: 100%;
    border-radius: 8px;
}
.feature-card h3 {
    margin: 15px 0;
}

/* ================================================================
   КОМПАКТНАЯ КАРТОЧКА С МАШИНАМИ
   ================================================================ */
.car-feature {
    position: relative;
    overflow: hidden;
}

.car-feature-image {
    width: 100%;
    height: 120px;
    object-fit: contain;
    image-rendering: pixelated;
    transition: .3s;
}

.car-feature-info h3 {
    margin: 10px 0 5px;
    font-size: 20px;
    color: #ff7a00;
}

.car-feature-specs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.car-spec {
    background: #1a1a1a;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: #aaa;
    border: 1px solid #333;
}

.car-feature-thumbs {
    display: flex;
    gap: 6px;
    margin: 10px 0;
}

.car-thumb-small {
    width: 40px;
    height: 28px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid #333;
    cursor: pointer;
    transition: .3s;
    image-rendering: pixelated;
}
.car-thumb-small:hover {
    border-color: #6828ff;
    transform: scale(1.05);
}
.car-thumb-small.active {
    border-color: #ff7a00;
    box-shadow: 0 0 10px rgba(255,122,0,.4);
}

.car-more-link {
    display: inline-block;
    color: #6828ff;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    transition: .3s;
}
.car-more-link:hover {
    color: #ff7a00;
}

/* ================================================================
   ОНЛАЙН-БЛОК
   ================================================================ */
.online {
    margin-top: 20px;
    background: #090909;
    border: 1px solid #222;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
}

.online img {
    width: 100%;
    max-width: 800px;
    border-radius: 10px;
    margin: 20px 0;
}

.play-btn {
    background: #6828ff;
    padding: 20px 60px;
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 22px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 0 25px #6828ff;
    transition: .3s;
}
.play-btn:hover {
    background: #7a3fff;
    box-shadow: 0 0 40px #6828ff;
}

/* ================================================================
   ПОДВАЛ
   ================================================================ */
footer {
    margin-top: 50px;
    padding: 30px 0;
    border-top: 1px solid #222;
    text-align: center;
    color: #888;
}

/* ================================================================
   ТРЕК ДНЯ (ПЛЕЕР)
   ================================================================ */
.track-of-the-day {
    background: #090909;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 20px;
}

.track-player {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.track-cover {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}
.track-cover img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.track-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: .3s;
    cursor: pointer;
}
.track-cover:hover .track-overlay {
    opacity: 1;
}

.play-btn-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(104,40,255,.8);
    border: 3px solid #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s;
}
.play-btn-circle:hover {
    transform: scale(1.1);
    background: rgba(104,40,255,1);
}

.track-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.track-name {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}
.track-artist {
    font-size: 14px;
    color: #888;
}

.track-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.track-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #666;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: #2a2a2a;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6828ff, #ff7a00);
    border-radius: 2px;
    width: 0%;
    transition: width .1s linear;
}

.track-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.track-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    transition: .3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.track-btn:hover {
    transform: scale(1.15);
}

.play-btn-main {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #6828ff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(104,40,255,.3);
}
.play-btn-main:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(104,40,255,.5);
}

.track-current,
.track-duration {
    min-width: 35px;
    text-align: center;
    font-size: 12px;
}

/* ================================================================
   СТРАНИЦА ЗАПИСИ (SINGLE POST)
   ================================================================ */
.post-hero {
    height: 420px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    margin-top: 20px;
    background-size: cover;
    background-position: center;
}
.post-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.95) 0%, rgba(0,0,0,.25) 100%);
}

.post-overlay {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 2;
    right: 40px;
}
.post-overlay h1 {
    font-size: 58px;
    margin: 10px 0;
    color: #fff;
}

.breadcrumbs {
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.breadcrumbs a {
    color: #888;
    text-decoration: none;
    transition: .3s;
}
.breadcrumbs a:hover {
    color: #ff7a00;
}
.breadcrumbs span {
    color: #fff;
}

.post-meta {
    color: #aaa;
    font-size: 16px;
}

/* ----- СЕТКА: КОНТЕНТ + САЙДБАР ----- */
.post-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 25px;
    margin-top: 30px;
}

/* ----- КОНТЕНТ ----- */
.post-content {
    background: #090909;
    border: 1px solid #222;
    border-radius: 15px;
    padding: 30px;
    overflow: hidden;
    max-width: 100% !important;
}

.post-content p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 20px;
}
.post-content h2 {
    margin: 30px 0 15px;
    color: #fff;
    font-size: 28px;
}
.post-content h3 {
    margin: 25px 0 10px;
    color: #fff;
    font-size: 22px;
}
.post-content h4 {
    margin: 20px 0 10px;
    color: #fff;
    font-size: 18px;
}
.post-content ul,
.post-content ol {
    margin: 15px 0 20px 20px;
    color: #ccc;
}
.post-content ul li,
.post-content ol li {
    margin-bottom: 8px;
}
.post-content blockquote {
    border-left: 4px solid #6828ff;
    padding-left: 20px;
    color: #fff;
    margin: 30px 0;
    font-size: 22px;
    font-style: italic;
}
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    color: #ccc;
    max-width: 100% !important;
    overflow-x: auto !important;
    display: block !important;
}
.post-content table td,
.post-content table th {
    padding: 10px 15px;
    border: 1px solid #333;
}
.post-content table td:first-child {
    font-weight: 600;
    color: #888;
}
.post-content .wp-block-table {
    overflow-x: auto !important;
}
.post-content .wp-block-image {
    margin: 20px 0;
}
.post-content .wp-block-image img {
    border-radius: 10px;
    max-width: 100% !important;
    height: auto !important;
}
.post-content .wp-block-image figcaption {
    color: #666;
    font-size: 14px;
    text-align: center;
    margin-top: 8px;
}
.post-content img {
    max-width: 100% !important;
    height: auto !important;
}
.post-content * {
    max-width: 100% !important;
}

.featured-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 25px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}
.gallery-grid img {
    width: 100%;
    border-radius: 10px;
}

.post-tags {
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px solid #1b1b1b;
    color: #888;
}
.post-tags a {
    color: #888;
    text-decoration: none;
    transition: .3s;
}
.post-tags a:hover {
    color: #ff7a00;
}

.post-nav {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #1b1b1b;
    border-bottom: 1px solid #1b1b1b;
}
.post-nav a {
    color: #ff7a00;
    text-decoration: none;
    transition: .3s;
}
.post-nav a:hover {
    color: #6828ff;
}

.post-comments {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #1b1b1b;
}
.post-comments .comment-respond {
    margin-top: 20px;
}
.post-comments .comment-respond h3 {
    color: #ff7a00;
    font-size: 24px;
}
.post-comments .comment-form input,
.post-comments .comment-form textarea {
    background: #111;
    border: 1px solid #333;
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    width: 100%;
    font-family: 'Oswald', sans-serif;
}
.post-comments .comment-form textarea {
    min-height: 120px;
}
.post-comments .comment-form .submit {
    background: #6828ff;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 600;
    transition: .3s;
    width: auto;
}
.post-comments .comment-form .submit:hover {
    background: #7a3fff;
    box-shadow: 0 0 20px rgba(104,40,255,.4);
}

/* ----- САЙДБАР ----- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.widget {
    background: #090909;
    border: 1px solid #222;
    border-radius: 15px;
    padding: 20px;
}
.widget h3 {
    margin-bottom: 15px;
    color: #ff7a00;
    font-size: 20px;
}
.widget ul {
    list-style: none;
}
.widget li {
    padding: 10px 0;
    border-bottom: 1px solid #1b1b1b;
}
.widget li:last-child {
    border-bottom: none;
}
.widget a {
    color: #ccc;
    text-decoration: none;
    transition: .3s;
}
.widget a:hover {
    color: #ff7a00;
}

/* ================================================================
   АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ
   ================================================================ */
@media (max-width: 900px) {
    .topbar {
        flex-direction: column;
        gap: 20px;
    }

    .site-logo {
        height: 70px;
    }

    nav ul,
    .primary-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero-content {
        width: 80%;
        padding: 40px;
    }
    .hero h1 {
        font-size: 40px;
    }
    .hero p {
        font-size: 18px;
    }

    .buttons {
        flex-direction: column;
        gap: 10px;
    }
    .btn {
        padding: 14px 30px;
        text-align: center;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .features {
        grid-template-columns: 1fr 1fr;
    }

    .post-layout {
        grid-template-columns: 1fr;
    }

    .post-hero {
        height: 300px;
    }
    .post-overlay h1 {
        font-size: 36px;
    }
    .post-overlay {
        bottom: 20px;
        left: 20px;
        right: 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .post-content {
        padding: 20px;
    }

    .post-nav {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .features {
        grid-template-columns: 1fr;
    }

    .hero-content {
        width: 95%;
        padding: 20px;
    }
    .hero h1 {
        font-size: 28px;
    }
    .hero p {
        font-size: 16px;
    }

    .play-btn {
        padding: 15px 30px;
        font-size: 18px;
    }

    .car-feature-image {
        height: 80px;
    }
    .car-thumb-small {
        width: 32px;
        height: 22px;
    }

    .track-cover img {
        height: 140px;
    }
    .play-btn-circle {
        width: 50px;
        height: 50px;
    }
    .play-btn-circle svg {
        width: 30px;
        height: 30px;
    }
    .play-btn-main {
        width: 40px;
        height: 40px;
    }
    .play-btn-main svg {
        width: 24px;
        height: 24px;
    }

    .post-hero {
        height: 220px;
    }
    .post-overlay h1 {
        font-size: 24px;
    }
    .post-meta {
        font-size: 12px;
    }
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    .breadcrumbs {
        font-size: 11px;
    }
    .post-content {
        padding: 15px;
    }
}