/*
Theme Name: dds_playtionz.com
Theme URI: https://playtionz.com/
Author: Ильинский Илья
Author URI: https://playtionz.com/
Description: Тема для сайта «Музыкальные фестивали мира: гид и обзор». Концепция «ритм и пространство» — динамика музыкальных событий и удобная навигация гида.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dds_playtionz
*/

/* ===== СБРОС И БАЗА ===== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 17px;
    line-height: 1.7;
    color: #EFF1F3;
    background-color: #0A1128;
    background-image:
        radial-gradient(circle at 20% 10%, rgba(183, 148, 244, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 107, 107, 0.06) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Trebuchet MS', 'Arial Black', sans-serif;
    font-weight: 700;
    line-height: 1.25;
    margin: 1.4em 0 0.6em;
    color: #EFF1F3;
    letter-spacing: -0.01em;
}

h1 { font-size: 2.4rem; font-stretch: 110%; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a {
    color: #B794F4;
    text-decoration: none;
    transition: color 0.25s ease;
}
a:hover, a:focus { color: #F9D56E; text-decoration: underline; }

img { max-width: 100%; height: auto; }

ul, ol { padding-left: 1.4em; margin: 0 0 1em; }
li { margin-bottom: 0.4em; }

blockquote {
    border-left: 4px solid #B794F4;
    margin: 1.5em 0;
    padding: 0.8em 1.2em;
    background: rgba(42, 59, 92, 0.5);
    border-radius: 0 12px 12px 0;
    font-style: italic;
}

code {
    font-family: 'Consolas', monospace;
    background: #2A3B5C;
    padding: 0.15em 0.45em;
    border-radius: 4px;
    font-size: 0.92em;
    color: #F9D56E;
}

pre {
    background: #14213D;
    color: #EFF1F3;
    padding: 1em;
    border-radius: 10px;
    overflow-x: auto;
    border: 1px solid #2A3B5C;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
    border: 1px solid #2A3B5C;
}
th, td {
    padding: 0.7em 1em;
    border: 1px solid #2A3B5C;
    text-align: left;
}
th {
    background: #2A3B5C;
    font-weight: 700;
}
tr:nth-child(even) td {
    background: rgba(42, 59, 92, 0.3);
}

hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #B794F4, transparent);
    margin: 2em 0;
}

/* ===== СЛУЖЕБНЫЕ ===== */
.screen-reader-only {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.cookie-banner[hidden] { display: none !important; }
.site-search[hidden] { display: none !important; }

.wrap {
    width: 92%;
    max-width: 1240px;
    margin: 0 auto;
}

/* ===== ШАПКА ===== */
.site-head {
    background: linear-gradient(180deg, #0A1128 0%, #14213D 100%);
    border-bottom: 1px solid #2A3B5C;
    position: relative;
    overflow: hidden;
}

.head-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 36px;
    pointer-events: none;
    opacity: 0.7;
}

.head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5em;
    padding: 1.4em 0;
    position: relative;
    z-index: 2;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9em;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}
.brand:hover { text-decoration: none; }

.brand-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    flex-shrink: 0;
    background: #2A3B5C;
    padding: 6px;
}

.brand-text { min-width: 0; }

.brand-name {
    display: block;
    font-family: 'Trebuchet MS', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #EFF1F3;
    line-height: 1.2;
    margin: 0;
}

.brand-desc {
    display: block;
    font-size: 0.85rem;
    color: #B794F4;
    margin-top: 0.2em;
    line-height: 1.3;
}

/* ===== НАВИГАЦИЯ ===== */
.nav-toggle {
    display: none;
    background: transparent;
    border: 2px solid #B794F4;
    color: #EFF1F3;
    padding: 0.5em 0.9em;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: inherit;
}
.nav-toggle:hover { background: #B794F4; color: #0A1128; }

.head-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.5em;
    flex-wrap: wrap;
}

.head-nav li { margin: 0; }

.head-nav a {
    display: inline-block;
    padding: 0.55em 1.1em;
    color: #EFF1F3;
    border-radius: 30px;
    font-size: 0.98rem;
    transition: all 0.25s ease;
}

.head-nav a:hover,
.head-nav .current-menu-item > a,
.head-nav .current_page_item > a {
    background: #B794F4;
    color: #0A1128;
    text-decoration: none;
}

/* ===== СТРУКТУРА ===== */
.site-main {
    padding: 2.5em 0 3em;
    min-height: 60vh;
}

.layout-with-aside {
    display: grid;
    grid-template-columns: 67% 27%;
    gap: 6%;
}
.layout-no-aside { width: 85%; margin: 0 auto; }
.layout-full { width: 100%; }

@media (max-width: 960px) {
    .layout-with-aside { grid-template-columns: 1fr; }
    .layout-no-aside { width: 100%; }
}

/* ===== ХЛЕБНЫЕ КРОШКИ ===== */
.crumbs {
    font-size: 0.9rem;
    margin-bottom: 1.5em;
    color: #B794F4;
    background: rgba(42, 59, 92, 0.4);
    padding: 0.7em 1.1em;
    border-radius: 10px;
    border-left: 3px solid #FF6B6B;
}
.crumbs a { color: #EFF1F3; }
.crumbs a:hover { color: #F9D56E; }
.crumbs .sep { margin: 0 0.5em; opacity: 0.6; }
.crumbs .here { color: #F9D56E; }

/* ===== КАРТОЧКИ ЗАПИСЕЙ ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.5em;
    list-style: none;
    padding: 0;
    margin: 0 0 2em;
}

.card {
    display: flex;
    flex-direction: column;
    background: #14213D;
    border: 1px solid #2A3B5C;
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(183, 148, 244, 0.18);
    border-color: #B794F4;
}

.card-thumb-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #2A3B5C;
}
.card-thumb-wrap a { display: block; width: 100%; height: 100%; }
.card-thumb-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.card:hover .card-thumb-wrap img { transform: scale(1.06); }

.card-body {
    flex: 1;
    padding: 1.2em 1.3em 1.4em;
    display: flex;
    flex-direction: column;
}

.card-meta {
    font-size: 0.82rem;
    color: #B794F4;
    margin-bottom: 0.6em;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em 1em;
}
.card-meta a { color: #B794F4; }
.card-meta a:hover { color: #F9D56E; }

.card-title {
    font-size: 1.2rem;
    margin: 0 0 0.5em;
    line-height: 1.3;
}
.card-title a { color: #EFF1F3; }
.card-title a:hover { color: #B794F4; text-decoration: none; }

.card-excerpt {
    flex: 1;
    margin-bottom: 1em;
    color: #C8CCD4;
    font-size: 0.96rem;
}
.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}
.card-excerpt p:last-child { margin-bottom: 0; }

.card-more {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.55em 1.2em;
    background: #2A3B5C;
    color: #EFF1F3;
    border-radius: 30px;
    font-size: 0.92rem;
    transition: background 0.25s ease, color 0.25s ease;
    border: 1px solid transparent;
}
.card-more:hover {
    background: #B794F4;
    color: #0A1128;
    text-decoration: none;
}

/* ===== ПАГИНАЦИЯ ===== */
.pages {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em;
    justify-content: center;
    margin: 2em 0 1em;
    list-style: none;
    padding: 0;
}
.pages a, .pages span {
    display: inline-block;
    padding: 0.55em 0.95em;
    background: #14213D;
    color: #EFF1F3;
    border: 1px solid #2A3B5C;
    border-radius: 10px;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
}
.pages a:hover { background: #B794F4; color: #0A1128; border-color: #B794F4; }
.pages .current,
.pages [aria-current="page"] {
    background: #FF6B6B;
    color: #0A1128;
    border-color: #FF6B6B;
    font-weight: 700;
}

/* ===== САЙДБАР ===== */
.aside {
    background: #14213D;
    border: 1px solid #2A3B5C;
    border-radius: 16px;
    padding: 1.4em;
    height: fit-content;
}
.widget { margin-bottom: 1.8em; }
.widget:last-child { margin-bottom: 0; }
.widget-title {
    margin: 0 0 0.8em;
    font-size: 1.15rem;
    color: #F9D56E;
    border-bottom: 2px solid #FF6B6B;
    padding-bottom: 0.4em;
}
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget li {
    padding: 0.4em 0;
    border-bottom: 1px dashed rgba(42, 59, 92, 0.7);
}
.widget li:last-child { border-bottom: none; }
.widget a { color: #EFF1F3; }
.widget a:hover { color: #B794F4; }

/* ===== ФОРМА ПОИСКА ===== */
.search-form {
    display: flex;
    gap: 0.5em;
    margin: 0;
}
.search-form input[type="search"] {
    flex: 1;
    padding: 0.7em 1em;
    background: #0A1128;
    border: 1px solid #2A3B5C;
    border-radius: 30px;
    color: #EFF1F3;
    font-size: 0.95rem;
    font-family: inherit;
}
.search-form input[type="search"]:focus {
    outline: none;
    border-color: #B794F4;
}
.search-form button {
    padding: 0.7em 1.4em;
    background: linear-gradient(135deg, #B794F4, #FF6B6B);
    border: none;
    border-radius: 30px;
    color: #0A1128;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s ease;
}
.search-form button:hover { transform: translateY(-2px); }

/* ===== ГЛАВНАЯ ===== */
.fest-hero {
    padding: 3em 0 2em;
    text-align: center;
}
.fest-hero h1 {
    font-size: 2.8rem;
    margin: 0 0 0.4em;
    background: linear-gradient(90deg, #B794F4, #F9D56E);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.fest-hero p {
    font-size: 1.15rem;
    color: #C8CCD4;
    max-width: 720px;
    margin: 0 auto;
}

.fest-block {
    margin: 3em 0;
    padding: 2em;
    background: linear-gradient(135deg, rgba(42, 59, 92, 0.6), rgba(20, 33, 61, 0.6));
    border: 1px solid #2A3B5C;
    border-radius: 22px;
}
.fest-block h2 {
    margin-top: 0;
    color: #F9D56E;
    border-left: 5px solid #FF6B6B;
    padding-left: 0.7em;
}
.fest-block .lead {
    font-size: 1.08rem;
    color: #C8CCD4;
}

.fest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.4em;
    margin-top: 1.5em;
}
.fest-tile {
    background: #0A1128;
    padding: 1.4em;
    border-radius: 14px;
    border-top: 3px solid #B794F4;
}
.fest-tile h3 { margin-top: 0; color: #B794F4; font-size: 1.15rem; }
.fest-tile p { color: #C8CCD4; font-size: 0.95rem; margin: 0; }

.fest-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2em;
    margin-top: 1.5em;
    list-style: none;
    padding: 0;
    counter-reset: step;
}
.fest-steps li {
    background: #0A1128;
    padding: 1.4em 1.4em 1.4em 3.5em;
    border-radius: 14px;
    position: relative;
    counter-increment: step;
}
.fest-steps li::before {
    content: counter(step);
    position: absolute;
    left: 1em;
    top: 1em;
    width: 1.8em;
    height: 1.8em;
    background: linear-gradient(135deg, #FF6B6B, #B794F4);
    color: #0A1128;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.fest-steps strong { color: #F9D56E; display: block; margin-bottom: 0.3em; }

.section-title {
    margin: 2.5em 0 1.4em;
    font-size: 1.9rem;
    color: #EFF1F3;
    text-align: center;
    position: relative;
}
.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #B794F4, #FF6B6B);
    margin: 0.6em auto 0;
    border-radius: 2px;
}

/* ===== ЗАПИСЬ И СТРАНИЦА ===== */
.entry-head { margin-bottom: 1.5em; }
.entry-title {
    font-size: 2.2rem;
    margin: 0 0 0.4em;
    color: #EFF1F3;
}
.entry-meta {
    font-size: 0.9rem;
    color: #B794F4;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em 1.4em;
}
.entry-meta a { color: #B794F4; }
.entry-meta a:hover { color: #F9D56E; }

.entry-thumb {
    margin: 0 0 1.5em;
    border-radius: 18px;
    overflow: hidden;
}
.entry-thumb img { display: block; width: 100%; height: auto; }

.entry-content {
    font-size: 1.04rem;
}
.entry-content h2 { margin-top: 1.6em; color: #F9D56E; }
.entry-content h3 { margin-top: 1.4em; color: #B794F4; }
.entry-content a { color: #B794F4; border-bottom: 1px dashed; }
.entry-content a:hover { color: #F9D56E; border-bottom-style: solid; }

/* ===== КОММЕНТАРИИ ===== */
.comments-area {
    margin-top: 2.5em;
    padding-top: 2em;
    border-top: 1px solid #2A3B5C;
}
.comments-title {
    color: #F9D56E;
    margin-top: 0;
}
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2em;
}
.comment-body {
    background: #14213D;
    padding: 1.2em;
    border-radius: 14px;
    margin-bottom: 1em;
    border: 1px solid #2A3B5C;
}
.comment-meta {
    font-size: 0.88rem;
    color: #B794F4;
    margin-bottom: 0.6em;
}
.comment-meta a { color: #EFF1F3; }
.comment-author { font-weight: 700; }
.comment-list .children {
    list-style: none;
    padding-left: 1.5em;
    margin-top: 1em;
}
.comment-respond {
    background: #14213D;
    padding: 1.5em;
    border-radius: 16px;
    border: 1px solid #2A3B5C;
}
.comment-respond label {
    display: block;
    margin-bottom: 0.3em;
    font-size: 0.92rem;
    color: #B794F4;
}
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: 0.7em 0.9em;
    background: #0A1128;
    border: 1px solid #2A3B5C;
    border-radius: 10px;
    color: #EFF1F3;
    font-family: inherit;
    font-size: 0.96rem;
    margin-bottom: 1em;
}
.comment-respond input:focus,
.comment-respond textarea:focus {
    outline: none;
    border-color: #B794F4;
}
.comment-respond input[type="submit"] {
    padding: 0.7em 1.6em;
    background: linear-gradient(135deg, #B794F4, #FF6B6B);
    border: none;
    border-radius: 30px;
    color: #0A1128;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}

/* ===== ПОДВАЛ ===== */
.site-foot {
    background: #14213D;
    border-top: 1px solid #2A3B5C;
    padding: 2.5em 0 1.5em;
    margin-top: 2em;
}

.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2em;
    margin-bottom: 2em;
}

.foot-col h2,
.foot-col .widget-title {
    color: #F9D56E;
    font-size: 1.1rem;
    margin: 0 0 0.8em;
    border-bottom: 2px solid #FF6B6B;
    padding-bottom: 0.4em;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { padding: 0.3em 0; }
.foot-col a { color: #EFF1F3; }
.foot-col a:hover { color: #B794F4; }

.foot-bottom {
    border-top: 1px solid #2A3B5C;
    padding-top: 1.4em;
    text-align: center;
    color: #B794F4;
    font-size: 0.9rem;
}

/* ===== COOKIE-БАННЕР ===== */
.cookie-banner {
    position: fixed;
    left: 1em;
    right: 1em;
    bottom: 1em;
    z-index: 9999;
    background: #14213D;
    border: 1px solid #B794F4;
    border-radius: 16px;
    padding: 1em 1.4em;
    display: flex;
    align-items: center;
    gap: 1em;
    flex-wrap: wrap;
    justify-content: space-between;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.cookie-banner p {
    margin: 0;
    flex: 1;
    min-width: 240px;
    font-size: 0.92rem;
    color: #EFF1F3;
}
.cookie-banner button {
    padding: 0.55em 1.3em;
    background: linear-gradient(135deg, #B794F4, #FF6B6B);
    border: none;
    border-radius: 30px;
    color: #0A1128;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
}
.cookie-banner button:hover { transform: translateY(-2px); transition: transform 0.2s ease; }

/* ===== СТРАНИЦА 404 ===== */
.fourofour {
    text-align: center;
    padding: 3em 0;
}
.fourofour h1 {
    font-size: 5rem;
    margin: 0;
    background: linear-gradient(135deg, #B794F4, #FF6B6B);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.fourofour p { color: #C8CCD4; }

/* ===== АДАПТИВ ===== */
@media (max-width: 960px) {
    .foot-cols { grid-template-columns: 1fr; gap: 1.5em; }
    h1 { font-size: 2rem; }
    .fest-hero h1 { font-size: 2.2rem; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .head-row { flex-wrap: wrap; }
    .nav-toggle { display: inline-block; }
    .head-nav {
        flex-basis: 100%;
        display: none;
        margin-top: 0.8em;
    }
    .head-nav.is-open { display: block; }
    .head-nav ul { flex-direction: column; gap: 0.3em; }
    .head-nav a { display: block; }

    .cards { grid-template-columns: 1fr; }

    .card-more {
        display: block;
        text-align: center;
        align-self: stretch;
    }

    .search-form { flex-direction: column; }
    .search-form button { width: 100%; }

    .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
    .cookie-banner button { width: 100%; }

    .fest-block { padding: 1.4em; }
    .entry-title { font-size: 1.6rem; }
    .fest-hero h1 { font-size: 1.8rem; }
}
