﻿/* ------------------------------------------------------------------
   Hero banner full-width
   ------------------------------------------------------------------ */
.hero-banner {
    position: relative;
    width: 100vw; /* full viewport width */
    left: 50%; /* shift over to compensate */
    right: 50%;
    margin-left: -50vw; /* pull back half the viewport */
    margin-right: -50vw;
    overflow: hidden; /* clip any overflow */
}

    .hero-banner img {
        display: block;
        width: 100%;
        height: auto;
        object-fit: cover; /* maintain aspect ratio */
    }

/* ------------------------------------------------------------------
   Header row (title left, Back to Leagues right) – matches other pages
   ------------------------------------------------------------------ */
.league-invites-header {
    margin: 32px 62px 0;
    padding: 0;
}

    .league-invites-header .header-row {
        display: flex;
        align-items: center; /* same baseline */
        justify-content: space-between; /* title left, button right */
        gap: 16px;
        margin-bottom: 0;
    }

    .league-invites-header .page-title {
        margin: 0;
        font-size: 2rem;
        font-weight: 700;
        color: #181D27;
    }

    .league-invites-header .header-actions {
        white-space: nowrap;
    }

    .league-invites-header .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 10px 16px;
        border-radius: 8px;
        border: 1px solid #D5D7DA;
        background: #FFF;
        box-shadow: 0 1px 2px rgba(10,13,18,0.05);
        font-weight: 500;
        font-size: 14px;
        text-decoration: none;
        color: #181D27;
    }

        .league-invites-header .btn:hover,
        .league-invites-header .btn:focus {
            background-color: #F5F5F5; /* readable hover (dark text) */
            color: #181D27;
            border-color: #D5D7DA;
        }

    .league-invites-header .btn-outline-secondary {
        border-color: #D5D7DA;
        color: #181D27;
        background: #FFF;
    }

/* ------------------------------------------------------------------
   Main page content wrapper
   ------------------------------------------------------------------ */
.league-invites-page {
    /* bump this up if you want more width before it wraps */
    max-width: 1200px;
    /* instead of centering, pin to the left with a little gutter */
    margin: 0 auto 0 2rem; /* top right bottom left */
    /* same padding as before */
    padding: 2rem 1rem;
    box-sizing: border-box;
    /* force all text inside to align left */
    text-align: left;
}

    /* ------------------------------------------------------------------
   Heading (kept for backwards compatibility if needed)
   ------------------------------------------------------------------ */
    .league-invites-page h1 {
        font-family: Inter, sans-serif;
        font-size: 32px;
        margin-bottom: 1.5rem;
        color: #414651;
        text-align: left;
    }

/* ------------------------------------------------------------------
   Invites list styling
   ------------------------------------------------------------------ */
.list-group {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid #E9EAEB;
    border-radius: 8px;
    background: #FFF;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

    .list-group-item strong {
        font-size: 18px;
        color: #181D27;
    }

    .list-group-item small {
        font-size: 14px;
        color: #717680;
    }

.btn-group .btn {
    min-width: 5em;
}

/* ------------------------------------------------------------------
   Accept/Reject buttons
   ------------------------------------------------------------------ */
.btn-primary {
    background-color: #4DC24D;
    border-color: #4DC24D;
    color: #fff;
}

.btn-secondary {
    background-color: #E9EAEB;
    border-color: #E9EAEB;
    color: #414651;
}

    .btn-primary:hover,
    .btn-secondary:hover {
        opacity: 0.9;
    }

/* ------------------------------------------------------------------
   Responsive tweaks
   ------------------------------------------------------------------ */
@media (max-width: 576px) {
    .list-group-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-group {
        margin-top: 0.75rem;
        width: 100%;
        display: flex;
        gap: 0.5rem;
    }

        .btn-group .btn {
            flex: 1;
            text-align: center;
        }
}

/* Login prompt link */
.login-prompt a {
    color: #4DC24D;
    text-decoration: none;
}

    .login-prompt a:hover {
        text-decoration: underline;
    }

/* Small screens: tighten header edges */
@media (max-width: 768px) {
    .league-invites-header {
        margin: 20px 16px 0;
    }
}
