/* ============================================================
   t3m-home.css – Startsida-specifik styling för tipper.se
   Läggs till som <link> i Default4.aspx utöver t3m.css
   ============================================================ */

/* ── Navbar-färg för startsidan ─────────────────────────────── */

body.home .mainNavbar
{
    background-color: #eeeeee;
}

/* ── Sektionsrubriker ────────────────────────────────────────── */

.home-section-heading
{
    font-size: 1.3rem;
    font-weight: 500;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #dee2e6;
    color: #343a40;
}

/* ── Snippet-grid ────────────────────────────────────────────── */

.home-snippets
{
    gap: 16px;
    margin-bottom: 2rem;
}

/* ── Enskild snippet-artikel ─────────────────────────────────── */

.home-snippet
{
    flex: 1 1 280px;
    max-width: 400px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 1rem 1.25rem;
    background-color: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.home-snippet h3
{
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Produktfärger på vänster kant */

.home-snippet-stryktipset
{
    border-left: 4px solid #00427a;
}

.home-snippet-stryktipset h3
{
    color: rgba(1, 48, 95, 0.85);
}

.home-snippet-europatipset
{
    border-left: 4px solid #008733;
}

.home-snippet-europatipset h3
{
    color: rgba(1, 75, 5, 0.85);
}

.home-snippet-topptipset
{
    border-left: 4px solid #f29400;
}

.home-snippet-topptipset h3
{
    color: rgb(147, 87, 0);
}

/* Resultat-snippets: något dämpad bakgrund */

.home-snippet-resultat
{
    background-color: #f8f9fa;
}

/* ── Spelstopp och jackpot ───────────────────────────────────── */

.home-snippet-spelstopp
{
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 0.35rem;
}

.home-snippet-jackpot
{
    font-size: 0.9rem;
    color: #856404;
    margin-bottom: 0.35rem;
}

.home-snippet-datum
{
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.35rem;
}

/* ── Matchlista ─────────────────────────────────────────────── */

.home-snippet-matcher
{
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0.75rem;
    font-size: 0.85rem;
}

.home-snippet-matcher li
{
    padding: 2px 0;
    color: #343a40;
    border-bottom: 1px solid #f0f0f0;
}

.home-snippet-matcher li:last-child
{
    border-bottom: none;
}

.home-snippet-vs
{
    color: #adb5bd;
}

.home-snippet-fler
{
    color: #6c757d;
    font-style: italic;
}

/* ── Resultat-matchrader ─────────────────────────────────────── */

.home-snippet-matchrad
{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home-snippet-lag
{
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 8px;
}

.home-snippet-score
{
    font-weight: 600;
    white-space: nowrap;
    font-size: 0.85rem;
    min-width: 32px;
    text-align: right;
}

/* Färgmarkering på utfall – 1=hemmavinst, X=oavgjort, 2=bortavinst */

.home-snippet-utfall-1 .home-snippet-score
{
    color: #0a5c30;
}

.home-snippet-utfall-x .home-snippet-score
{
    color: #664d03;
}

.home-snippet-utfall-2 .home-snippet-score
{
    color: #842029;
}

/* ── Länkknapp ──────────────────────────────────────────────── */

.home-snippet-btn
{
    margin-top: auto;
    font-size: 0.85rem;
    color: #fff;
    background-color: #495057;
    border-color: #495057;
    align-self: flex-start;
}

.home-snippet-stryktipset .home-snippet-btn
{
    background-color: #00427a;
    border-color: #00427a;
}

.home-snippet-europatipset .home-snippet-btn
{
    background-color: #008733;
    border-color: #008733;
}

.home-snippet-topptipset .home-snippet-btn
{
    background-color: #c97c00;
    border-color: #c97c00;
}

.home-snippet-btn:hover
{
    opacity: 0.85;
    color: #fff;
}

/* ── Responsivitet ──────────────────────────────────────────── */

@media (max-width: 576px)
{
    .home-snippet
    {
        max-width: 100%;
        flex-basis: 100%;
    }
}

/* ── Produktfärgade sektionsrubriker ────────────────────────── */

.home-section-heading-stryktipset
{
    border-bottom-color: #00427a;
}

.home-section-heading-europatipset
{
    border-bottom-color: #008733;
}

.home-section-heading-topptipset
{
    border-bottom-color: #f29400;
}

/* ── Länk i sektionsrubrik ("Se alla") ──────────────────────── */

.home-section-link
{
    font-size: 0.85rem;
    font-weight: 400;
    margin-left: 12px;
    vertical-align: middle;
}

/* ── Produktnamnslänk med bild till Svenska Spel ──────────────────────── */

.home-ad
{
    position: absolute;
    left: 1rem;
}
