/* ============================================================
   MAIAK AFISHA — STYLES
   ============================================================ */

.ma-page { padding-bottom: 60px; }

/* ─── HEADER КАТЕГОРІЇ ─── */
.ma-cat-header {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 22px 28px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    margin-bottom: 24px;
}
.ma-cat-header-icon { font-size: 56px; line-height: 1; flex-shrink: 0; }
.ma-cat-header h1 {
    font-family: var(--serif);
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 4px;
    letter-spacing: -0.5px;
}
.ma-cat-header h1 em { font-style: italic; color: var(--gold); }

/* ─── 8 КАТЕГОРІЙ — СІТКА ─── */
.ma-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 24px 0 36px;
}
.ma-cat-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 22px 18px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.ma-cat-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}
.ma-cat-icon { font-size: 36px; }
.ma-cat-name {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}
.ma-cat-count {
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ─── СЕКЦІЇ ─── */
.ma-events-section, .ma-cat-intro, .ma-cat-faq, .ma-cat-related, .ma-seo-block {
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid var(--line);
}
.ma-events-section h2, .ma-cat-faq h2, .ma-cat-related h2, .ma-seo-block h2 {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 14px;
    letter-spacing: -0.4px;
}
.ma-events-section h2 em, .ma-seo-block h2 em { font-style: italic; color: var(--gold); }

/* ─── СІТКА ПОДІЙ ─── */
.ma-events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 18px;
}

/* ─── КАРТКА ПОДІЇ ─── */
.ma-event-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}
.ma-event-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}
.ma-event-img {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-elev);
}
.ma-event-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ma-event-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: rgba(10, 26, 46, 0.85);
    border: 1px solid var(--gold);
    border-radius: 999px;
    font-size: 11px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(4px);
}
.ma-event-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.ma-event-title {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    letter-spacing: -0.3px;
}
.ma-event-title a {
    color: var(--text);
    text-decoration: none;
}
.ma-event-title a:hover { color: var(--gold); }
.ma-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 12px;
    color: var(--text-mute);
}
.ma-event-date { color: var(--gold); font-weight: 600; }
.ma-event-price { color: var(--turq); }
.ma-event-desc {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.5;
    margin: 4px 0 0;
}
.ma-event-cta {
    margin-top: auto;
    padding-top: 12px;
    color: var(--gold);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-top: 1px solid var(--line);
    padding: 10px 0 0;
    text-align: center;
}
.ma-event-cta:hover { color: var(--gold-bright); }

/* ─── EMPTY STATE ─── */
.ma-empty {
    padding: 40px;
    text-align: center;
    background: var(--bg-card);
    border: 1px dashed var(--line);
    border-radius: var(--r-md);
    color: var(--text-mute);
}

/* ─── INTRO ─── */
.ma-cat-intro {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 24px 28px;
    margin-top: 0;
    border-top: none;
    padding-top: 24px;
}
.ma-cat-intro p {
    font-size: 15px;
    color: var(--text-mute);
    line-height: 1.7;
    margin-bottom: 12px;
}
.ma-cat-intro ul { margin: 14px 0 14px 22px; color: var(--text-mute); }
.ma-cat-intro li { line-height: 1.7; margin-bottom: 6px; }
.ma-cat-intro strong { color: var(--text); }

/* ─── FAQ ─── */
.ma-faq { margin-top: 18px; }
.ma-faq details {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    margin-bottom: 8px;
    overflow: hidden;
}
.ma-faq summary {
    cursor: pointer;
    padding: 14px 18px;
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    list-style: none;
    position: relative;
    padding-right: 44px;
}
.ma-faq summary::-webkit-details-marker { display: none; }
.ma-faq summary::after {
    content: '+';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: var(--gold);
    line-height: 1;
}
.ma-faq details[open] summary::after { content: '−'; }
.ma-faq .ma-faq-a {
    padding: 0 18px 16px;
    font-size: 14px;
    color: var(--text-mute);
    line-height: 1.7;
}
.ma-faq .ma-faq-a strong { color: var(--text); }

/* ─── SEO BLOCK ─── */
.ma-seo-block {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 24px 28px;
}
.ma-seo-block p {
    font-size: 14px;
    color: var(--text-mute);
    line-height: 1.7;
    margin-bottom: 12px;
}
.ma-seo-block strong { color: var(--text); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
    .ma-categories { grid-template-columns: repeat(3, 1fr); }
    .ma-events-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .ma-categories { grid-template-columns: repeat(2, 1fr); }
    .ma-events-grid { grid-template-columns: 1fr; }
    .ma-cat-header { flex-direction: column; gap: 12px; text-align: center; }
    .ma-cat-header-icon { font-size: 44px; }
    .ma-cat-header h1 { font-size: 24px; }
}

/* ─── PAGINATION ─── */
.ma-pagination {
    margin-top: 40px;
    padding: 24px 0 16px;
    border-top: 1px solid var(--line);
}
.ma-pagination ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}
.ma-pagination li a,
.ma-pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-sm, 6px);
    color: var(--text-mute);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all .15s ease;
}
.ma-pagination li a:hover {
    border-color: var(--gold, #D4AF60);
    color: var(--gold, #D4AF60);
    transform: translateY(-1px);
}
.ma-pagination li.active span {
    background: var(--gold, #D4AF60);
    border-color: var(--gold, #D4AF60);
    color: var(--bg-deeper, #061224);
    font-weight: 600;
}
.ma-pagination li.dots span {
    border: none;
    background: transparent;
    color: var(--text-mute);
    cursor: default;
}
@media (max-width: 480px) {
    .ma-pagination li a,
    .ma-pagination li span { min-width: 36px; height: 36px; padding: 0 8px; font-size: 13px; }
}
