/* ══════════════════════════════════════════════════════════════
   HMNK Utakmice — Frontend Styles
   ══════════════════════════════════════════════════════════════ */

.hmnk-accordion-wrap {
    width: 100%;
    font-family: inherit;
}

.hmnk-empty {
    color: #888;
    font-style: italic;
    padding: 12px 0;
}

/* ── SEZONA ───────────────────────────────────────────────── */

div.hmnk-accordion-wrap .hmnk-sezona {
    background: #fff;
    border: 1px solid #e4f0f8 !important;
    box-shadow: 0 2px 8px rgba(0,115,170,.06);
    border-radius: 20px !important;
    margin-bottom: 12px;
    overflow: hidden;
}

div.hmnk-accordion-wrap .hmnk-mjesec {
    border: none !important;
    margin-bottom: 10px;
    overflow: hidden;
}

/* ── HEADERS ──────────────────────────────────────────────── */

.hmnk-accordion-wrap .hmnk-sezona-header,
.hmnk-accordion-wrap .hmnk-mjesec-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 3px solid #00A7D2 !important;
    border-radius: 20px !important;
    padding-top: 25px !important;
    padding-bottom: 25px !important;
    padding-left: 22px;
    padding-right: 22px;
    background: linear-gradient(110deg, #FFFFFF 50%, #E8F3F9 50%) !important;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: background .2s;
}

.hmnk-accordion-wrap .hmnk-sezona-header span,
.hmnk-accordion-wrap .hmnk-mjesec-header span {
    color: #00A7D2 !important;
    font-size: 50px;
    font-weight: 800;
    line-height: 1.1;
}

.hmnk-accordion-wrap .hmnk-sezona-header:hover span,
.hmnk-accordion-wrap .hmnk-mjesec-header:hover span {
    color: #C99C67 !important;
}

/* ── BODIES ───────────────────────────────────────────────── */

.hmnk-sezona-body,
.hmnk-mjesec-body {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 0.35s linear, padding 0.35s linear;
}

.hmnk-sezona-body.open,
.hmnk-mjesec-body.open {
    max-height: 9999px;
    padding: 10px 16px 16px;
}

div.hmnk-accordion-wrap .hmnk-sezona-body.open,
div.hmnk-accordion-wrap .hmnk-mjesec-body.open {
    border-bottom-left-radius: 20px !important;
    border-bottom-right-radius: 20px !important;
}

/* ── CHEVRON ──────────────────────────────────────────────── */

.hmnk-chevron {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    position: absolute;
    right: 22px;
    transition: transform .3s ease;
    color: #00A7D2;
}

[aria-expanded="true"] .hmnk-chevron {
    transform: rotate(180deg);
}

/* ── UTAKMICA CARD ────────────────────────────────────────── */

.hmnk-utakmica-card {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin: 6px 0;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e4f0f8;
    box-shadow: 0 2px 8px rgba(0,115,170,.06);
}

.hmnk-card-info {
    display: flex;
    flex-direction: column;
}
.hmnk-card-info strong {
    font-size: 12px;
    font-weight: 700;
    color: #1a6f9a;
    text-transform: uppercase;
    line-height: 1.3;
}
.hmnk-card-info span {
    font-size: 12px;
    color: #555;
    line-height: 1.5;
}

.hmnk-card-game {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 12px;
}

.hmnk-team {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.hmnk-team-left {
    justify-content: flex-end;
    text-align: right;
    flex-direction: row;
}
.hmnk-team-right {
    justify-content: flex-start;
    text-align: left;
    flex-direction: row;
}

.hmnk-team img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}
.hmnk-team span {
    font-size: 13px;
    font-weight: 800;
    color: #1a6f9a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.hmnk-score {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hmnk-score > span {
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}

.hmnk-win  > span { color: #28a745; }
.hmnk-loss > span { color: #dc3545; }
.hmnk-draw > span { color: #17a2c9; }
.hmnk-upcoming > span { color: #aaa; font-size: 18px; }

.hmnk-penal {
    display: flex;
    gap: 6px;
    margin-top: 3px;
}
.hmnk-penal span {
    font-size: 11px;
    font-weight: 700;
    color: #555;
    background: #f0f0f0;
    border-radius: 3px;
    padding: 1px 5px;
}

.hmnk-card-action {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.hmnk-izvjestaj-btn {
    display: inline-block;
    padding: 8px 18px;
    background: #17a2c9;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none !important;
    border-radius: 6px;
    text-transform: uppercase;
    transition: background .2s, transform .15s;
    white-space: nowrap;
}
.hmnk-izvjestaj-btn:hover {
    background: #1388a8;
    transform: scale(1.04);
}

/* ── RESPONSIVE ───────────────────────────────────────────── */

@media (max-width: 767px) {
    .hmnk-utakmica-card {
        grid-template-columns: 1fr;
    }
    .hmnk-card-info {
        text-align: center;
    }
    .hmnk-card-game {
        flex-direction: column;
        align-items: center;
    }
    .hmnk-accordion-wrap .hmnk-sezona-header span,
    .hmnk-accordion-wrap .hmnk-mjesec-header span {
        font-size: 28px;
    }
    .hmnk-card-action {
        justify-content: center;
    }
    .hmnk-izvjestaj-btn {
        width: 100%;
        text-align: center;
        display: block;
    }
}
