/* ===================================================
   Fatar Kalender – CSS
   =================================================== */

.fatar-kal-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    width: 100%;
}

/* ---- Pealkiri ---- */
.fatar-kal-main-title {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 28px 0;
    letter-spacing: -0.3px;
}

.fatar-kal-main-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: #2d7a2d;
    margin: 8px auto 0;
    border-radius: 2px;
}

/* ---- Kaks tulpa ---- */
.fatar-kal-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

/* ---- Tulba pealkiri ---- */
.fatar-kal-col-heading {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 14px 0;
    padding-bottom: 8px;
    border-bottom: 3px solid #2d7a2d;
}

/* ---- Kaart ---- */
.fatar-kal-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 8px;
    border-left: 4px solid #2d7a2d;
}

.fatar-kal-card--past {
    border-left-color: #aaa;
}

/* Peidetud kaardid */
.fatar-kal-hidden {
    display: none;
}

/* Ilmumisanimatsioon */
.fatar-kal-revealing {
    animation: fk-fadein 0.35s ease;
}

@keyframes fk-fadein {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Meta rida ---- */
.fatar-kal-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    font-size: 12px;
}

.fatar-kal-date {
    font-weight: 600;
    color: #333;
}

.fatar-kal-competition {
    background: #f0f0f0;
    color: #666;
    padding: 1px 7px;
    border-radius: 20px;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.fatar-kal-location {
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
}

.fatar-kal-home {
    background: #e8f5e9;
    color: #2d7a2d;
}

.fatar-kal-away {
    background: #f5f5f5;
    color: #777;
}

/* ---- Meeskonnad ---- */
.fatar-kal-teams {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fatar-kal-team {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #111;
    min-width: 0;
    overflow: hidden;
}

.fatar-kal-team span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fatar-kal-team--us {
    justify-content: flex-end;
    text-align: right;
    flex-direction: row-reverse;
}

.fatar-kal-team--opp {
    justify-content: flex-start;
}

.fatar-kal-logo {
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex-shrink: 0;
}

.fatar-kal-score-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    flex-shrink: 0;
    min-width: 54px;
}

/* Skoor */
.fatar-kal-score {
    font-size: 16px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 4px;
    min-width: 50px;
    text-align: center;
    display: inline-block;
}

.fatar-kal-score--win  { background: #e8f5e9; color: #2d7a2d; }
.fatar-kal-score--loss { background: #fdecea; color: #c62828; }
.fatar-kal-score--draw { background: #fff8e1; color: #f57f17; }

/* Kellaaeg */
.fatar-kal-time-badge {
    font-size: 15px;
    font-weight: 700;
    color: #2d7a2d;
    background: #e8f5e9;
    padding: 3px 10px;
    border-radius: 4px;
    min-width: 50px;
    text-align: center;
    display: inline-block;
}

.fatar-kal-vs {
    font-size: 10px;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ---- Staadion + link ---- */
.fatar-kal-venue {
    margin-top: 6px;
    font-size: 11px;
    color: #888;
}

.fatar-kal-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 11px;
    color: #2d7a2d;
    text-decoration: none;
}

.fatar-kal-link:hover { text-decoration: underline; }

/* ---- Lae rohkem nupp ---- */
.fatar-kal-more-btn {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #2d7a2d;
    border-radius: 5px;
    color: #2d7a2d;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, color .2s;
    text-align: center;
}

.fatar-kal-more-btn:hover {
    background: #2d7a2d;
    color: #fff;
}

.fatar-kal-more-count {
    font-weight: 400;
    opacity: .75;
}

/* ---- Tühi / viga ---- */
.fatar-kal-empty,
.fatar-kal-error {
    padding: 16px;
    background: #f9f9f9;
    border: 1px dashed #ddd;
    border-radius: 4px;
    color: #777;
    font-size: 13px;
}

/* ---- Responsive ---- */
@media (max-width: 700px) {
    .fatar-kal-columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .fatar-kal-main-title {
        font-size: 22px;
    }
}

@media (max-width: 420px) {
    .fatar-kal-teams {
        flex-direction: column;
        gap: 6px;
    }

    .fatar-kal-team--us,
    .fatar-kal-team--opp {
        justify-content: center;
        text-align: center;
        width: 100%;
        flex-direction: row;
    }

    .fatar-kal-score-wrap { width: 100%; }
}

/* ===================================================
   Järgmine mäng – Variant B
   =================================================== */

.fatar-nm-b {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    width: 100%;
}

.fatar-nm-b-header {
    background: #2d7a2d;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.fatar-nm-b-title {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.fatar-nm-b-meta {
    font-size: 11px;
    color: rgba(255,255,255,.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fatar-nm-b-body {
    background: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.fatar-nm-b-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    flex: 1;
    min-width: 0;
}

.fatar-nm-b-team--opp {
    align-items: center;
}

.fatar-nm-b-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.fatar-nm-b-name {
    font-size: 12px;
    font-weight: 600;
    color: #111;
    text-align: center;
    line-height: 1.3;
}

.fatar-nm-b-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.fatar-nm-b-datetime {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.fatar-nm-b-time {
    font-size: 20px;
    font-weight: 800;
    color: #2d7a2d;
    line-height: 1;
}

.fatar-nm-b-date {
    font-size: 11px;
    color: #888;
}

.fatar-nm-b-countdown {
    display: flex;
    align-items: center;
    gap: 3px;
}

.fatar-nm-b-cd {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f5f5f5;
    border-radius: 5px;
    padding: 4px 8px;
    min-width: 40px;
}

.fatar-nm-b-cd-num {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    line-height: 1;
}

.fatar-nm-b-cd-lbl {
    font-size: 9px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-top: 1px;
}

.fatar-nm-b-cd-sep {
    font-size: 14px;
    font-weight: 700;
    color: #ccc;
    padding-bottom: 10px;
}

.fatar-nm-b-footer {
    border-top: 1px solid #f0f0f0;
    padding: 7px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #fafafa;
}

.fatar-nm-b-venue {
    font-size: 11px;
    color: #888;
}

.fatar-nm-b-link {
    font-size: 11px;
    color: #2d7a2d;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.fatar-nm-b-link:hover { text-decoration: underline; }

@media (max-width: 440px) {
    .fatar-nm-b-cd-lbl { display: none; }
    .fatar-nm-b-cd     { min-width: 32px; padding: 3px 6px; }
    .fatar-nm-b-cd-num { font-size: 14px; }
    .fatar-nm-b-logo   { width: 28px; height: 28px; }
}
