﻿/* =========================
   EventList - Details (full width responsive)
   ========================= */

/* ===== Page title ===== */
.botc-event-details-title {
    font-weight: 900;
    font-size: clamp(1.25rem, 2.2vw, 2rem);
    line-height: 1.15;
    color: var(--botc-text-main);
}

/* ===== HERO layout ===== */
.botc-event-hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.25rem;
    align-items: start;
}

@media (max-width: 992px) {
    .botc-event-hero {
        grid-template-columns: 1fr;
    }
}

/* ===== Event image ===== */
.botc-event-hero-image {
    width: 100%;
    height: auto;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 1rem;
    background: rgba(255,255,255,0.35);
    box-shadow: 0 0.25rem 0.85rem rgba(0,0,0,0.22);
}

/* ===== Generic white card (headers etc.) ===== */
.botc-card {
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 1rem;
    padding: 0.9rem 1rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.16);
}

/* ===== Section header bar ===== */
.botc-section-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.botc-section-header-title {
    grid-column: 2;
    justify-self: center;
    font-size: 1.35rem;
    font-weight: 950;
    letter-spacing: .06em;
    color: var(--botc-gold-soft, #d6b45a);
}

.botc-section-header > :last-child {
    grid-column: 3;
    justify-self: end;
}

@media (max-width: 768px) {
    .botc-section-header {
        grid-template-columns: 1fr;
        gap: .6rem;
        text-align: center;
    }

    .botc-section-header-title {
        grid-column: 1;
        font-size: 1.25rem;
    }

    .botc-section-header > :last-child {
        grid-column: 1;
        justify-self: center;
    }
}

/* =========================================================
   Venue card (Details) - compact like "All"
   ========================================================= */
.botc-venue-card {
    background: #f6f0ff;
    border: 1px solid var(--botc-border-soft);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.20);
}

.botc-venue-card-top {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: .85rem;
    align-items: start;
}

@media (max-width: 992px) {
    .botc-venue-card-top {
        grid-template-columns: 84px 1fr;
    }
}

.botc-venue-logo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .55rem;
}

.botc-venue-logo-wrap {
    width: 92px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 0;
    background: transparent;
    border-radius: 0;
}

.botc-venue-logo {
    width: 92px;
    height: 92px;
    object-fit: contain;
    padding: 0;
    display: block;
}

.botc-venue-logo-placeholder {
    font-weight: 800;
    color: rgba(0,0,0,0.45);
}

.botc-venue-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .55rem;
    min-width: 0;
}

.botc-venue-name {
    font-weight: 950;
    color: var(--botc-purple);
    font-size: 1.15rem;
    line-height: 1.15;
    text-align: center;
    width: 100%;
}

.botc-venue-datetime {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
}

.botc-venue-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .65rem;
}

    .botc-venue-links img {
        width: 30px;
        height: 30px;
        display: block;
        opacity: .95;
        transition: transform .12s ease, opacity .12s ease;
    }

        .botc-venue-links img:hover {
            opacity: 1;
            transform: scale(1.06);
        }

.botc-venue-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
}

@media (max-width: 768px) {
    .botc-venue-bottom {
        grid-template-columns: 1fr;
    }
}

.botc-venue-pay,
.botc-venue-status {
    display: grid;
    grid-auto-rows: min-content;
    row-gap: .45rem;
}

.botc-venue-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .6rem;
}

.botc-venue-row-right {
    justify-content: flex-end;
}

.botc-venue-label {
    color: var(--botc-text-muted);
    font-weight: 600;
    white-space: nowrap;
}

.botc-venue-value {
    font-weight: 800;
    color: var(--botc-text-main);
    white-space: nowrap;
}

/* =========================================================
   Voting card (FINAL compact layout)
   Requires markup:
   .botc-vote-row > (.botc-vote-left) + (.botc-vote-right)
   .botc-vote-right: .botc-vote-count + .botc-vote-barwrap(.botc-vote-pct + .botc-vote-bar)
   ========================================================= */
.botc-vote-card {
    background: #f6f0ff;
    border: 1px solid var(--botc-border-soft);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.18);
}

/* 2/3 left + 1/3 right */
.botc-vote-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: .75rem;
    align-items: center;
    padding: .48rem .65rem; /* по-ниско */
    border-radius: .85rem;
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(0,0,0,0.08);
    margin-bottom: .5rem;
}

    .botc-vote-row:last-child {
        margin-bottom: 0;
    }

    .botc-vote-row.is-clickable {
        cursor: pointer;
        transition: background .12s ease, box-shadow .12s ease;
    }

        .botc-vote-row.is-clickable:hover {
            background: rgba(255,255,255,0.70);
            box-shadow: 0 .35rem .95rem rgba(0,0,0,0.14);
        }

/* LEFT */
.botc-vote-left {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    min-width: 0;
}

.botc-vote-check {
    margin-top: .12rem;
}

.botc-vote-name {
    font-weight: 850;
    color: var(--botc-text-main);
    font-size: clamp(.92rem, 0.9rem + 0.2vw, 1.02rem);
    line-height: 1.15;
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* максимум 2 реда */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* RIGHT: [COUNT][BAR] */
.botc-vote-right {
    display: grid;
    grid-template-columns: 34px 1fr; /* count вляво, bar широк */
    gap: .55rem;
    align-items: center;
    min-width: 0;
}

/* COUNT: златно + bold */
.botc-vote-count {
    text-align: right;
    font-weight: 950;
    color: var(--botc-gold-soft, #d6b45a);
    line-height: 1;
}

/* BAR + % над него */
.botc-vote-barwrap {
    position: relative;
    min-width: 0;
    padding-top: .95rem; /* място за % над плъзгача */
}

.botc-vote-pct {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    font-weight: 400; /* НЕ bold */
    font-size: .75rem;
    color: var(--botc-purple);
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    opacity: .95;
}

.botc-vote-bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(90,60,136,0.12);
    border: 1px solid rgba(90,60,136,0.18);
    overflow: hidden;
}

.botc-vote-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--botc-purple-soft), var(--botc-gold-soft));
    border-radius: 999px;
    transition: width .18s ease;
}

/* Mobile */
@media (max-width: 768px) {
    .botc-vote-row {
        grid-template-columns: 1fr;
        gap: .45rem;
        align-items: start;
    }

    .botc-vote-right {
        grid-template-columns: 34px 1fr;
    }
}

.botc-vote-scriptlink {
    text-decoration: none;
    color: inherit;
    font-weight: 700; /* или колкото е botc-vote-name */
}

    .botc-vote-scriptlink:hover {
        text-decoration: underline;
    }
