/* =====================================================================
   GO DEEP FOR NAVAHO PRINCESS — modernized styles
   Same structure/class names as the original; refreshed visual system.
   ===================================================================== */

:root {
    --terracotta: #C46B4C;
    --terracotta-dark: #A9542F;
    --terracotta-soft: rgba(196, 107, 76, 0.12);
    --cream: #F4ECE4;
    --cream-deep: #EADFD3;
    --ink: #2C2A28;
    --ink-soft: #5C554E;
    --bg-top: #DCE7EF;
    --bg-bottom: #C7D6E2;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(44, 42, 40, 0.08);
    --shadow-md: 0 8px 24px rgba(44, 42, 40, 0.12);
    --shadow-lg: 0 16px 48px rgba(44, 42, 40, 0.16);
    --radius: 16px;
    --radius-lg: 24px;
    --maxw: 1200px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Mulish', 'Muli', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: linear-gradient(160deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.25; }
a { color: var(--terracotta-dark); }

/* ------------------------------ NAV ------------------------------ */
.nav-wrapper {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 16px 28px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 16px;
    z-index: 50;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.nav-wrapper ul li {
    display: inline;
    list-style-type: none;
}

.main-nav {
    text-align: right;
    margin: 0;
    padding: 0;
}

.main-nav a {
    letter-spacing: 0.04em;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    color: var(--ink);
    padding: 8px 12px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
    cursor: pointer;
    color: var(--terracotta-dark);
    background: var(--terracotta-soft);
}

.logo-wrapper > a {
    color: var(--ink);
    text-decoration: none;
}

.logo {
    font-family: 'Righteous', cursive;
    font-weight: 400;
    font-size: 22px;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, var(--terracotta) 0%, var(--terracotta-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

.list-item {
    margin-left: 2px;
    text-transform: uppercase;
    padding: 0;
}

/* ---------------------------- LAYOUT ---------------------------- */
.main-wrapper {
    max-width: var(--maxw);
    margin: 28px auto;
    padding: 0 20px;
}

.wrapper {
    max-width: 100%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
    grid-template-areas:
        "featuredMain featuredMain featuredMain"
        "contentMain contentMain contentMain"
        "contentMain contentMain contentMain";
}

.home > .wrapper {
    grid-template-areas:
        "featuredMain featuredMain featuredSub"
        "contentMain contentMain featuredSub"
        "contentMain contentMain contentSub";
}

.wrapper > .featured,
.wrapper > .sub-featured > div,
.wrapper > .main-content {
    padding: 28px 32px;
}

/* ---------------------------- FEATURED (hero band) ---------------------------- */
.featured {
    grid-area: featuredMain;
    background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-dark) 100%);
    display: grid;
    align-content: center;
    color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    min-height: 120px;
}

.featured::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -60px;
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.featured h1 {
    font-family: 'Righteous', cursive;
    font-weight: 400;
    font-size: 40px;
    letter-spacing: 0.03em;
    margin: 0;
    max-width: 650px;
}

.main-content, .sub-featured > div, .main-sidebar {
    box-shadow: var(--shadow-md);
}

/* Navaho Princess photo card (home only) */
.sub-featured {
    grid-area: featuredSub;
    background:
        linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.05)),
        url('../assets/Navaho Princess.PNG') no-repeat center center;
    background-size: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    min-height: 600px;
    display: none;
}

/* ---------------------------- MAIN CONTENT CARD ---------------------------- */
.main-content {
    grid-area: contentMain;
    background-color: var(--cream);
    color: var(--ink-soft);
    line-height: 1.65;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(196, 107, 76, 0.10);
}

.main-content h2 {
    color: var(--ink);
    font-size: 22px;
    margin-block-start: 1.2em;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--terracotta-soft);
    display: inline-block;
}

.main-content h3 {
    color: var(--terracotta-dark);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.main-content::-webkit-scrollbar { width: 8px; background: var(--cream); }
.main-content::-webkit-scrollbar-thumb { background: rgba(196, 107, 76, 0.5); border-radius: 8px; }

.centered-content { text-align: center; }

/* ---------------------------- SIDEBAR / STANDINGS ---------------------------- */
.main-sidebar {
    grid-area: contentSub;
    background-color: var(--cream);
    color: var(--ink-soft);
    line-height: 1.5em;
    font-size: 16px;
    padding: 24px;
    text-align: center;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(196, 107, 76, 0.10);
    display: none;
}

.main-sidebar h2 {
    color: var(--ink);
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0;
}

.standings-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 8px;
    margin-top: 8px;
}

.standings-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.standings-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.standings-image {
    border-radius: 50%;
    height: 74px;
    width: 74px;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: var(--shadow-sm);
}

.standings-text {
    font-weight: 700;
    font-size: 14px;
    color: var(--ink);
}

/* ---------------------------- AVATAR BANNER ---------------------------- */
.avatar-wrapper {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 8px;
    padding: 8px 0 20px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--cream-deep);
}

.avatar-item { display: flex; justify-content: center; }

.avatar-image {
    border-radius: 50%;
    height: 58px;
    width: 58px;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
}

.avatar-image:hover { transform: scale(1.08); }

/* ---------------------------- WALL OF SHAME ---------------------------- */
.shame-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    text-align: center;
    margin-top: 12px;
}

.shame-item {
    padding: 24px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shame-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.shame-year {
    font-family: 'Righteous', cursive;
    font-size: 26px;
    color: var(--terracotta-dark);
    padding-bottom: 16px;
}

.shame-image {
    border-radius: 50%;
    height: 260px;
    width: 260px;
    max-width: 100%;
    object-fit: cover;
    border: 5px solid var(--white);
    box-shadow: var(--shadow-md);
}

/* ---------------------------- ROSTER TABLE ---------------------------- */
.roster-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.roster-header > .search-wrapper { text-align: right; }

.roster-wrapper {
    grid-template-columns: 1fr;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.45);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.roster-cell-wrapper {
    max-width: 100%;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr 2fr 1fr 1fr 2fr;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(196, 107, 76, 0.10);
    border-left: 4px solid transparent;   /* accent slot; colored for keepers */
    transition: background 0.15s ease;
}

.roster-cell-wrapper:not(.table-header):hover { background: var(--terracotta-soft); }

/* Keeper value: row accent + subtle tint so good/bad picks stand out */
.roster-cell-wrapper.keeper-good {
    border-left-color: #16a34a;
    background: rgba(22, 163, 74, 0.06);
}

.roster-cell-wrapper.keeper-bad {
    border-left-color: #dc2626;
    background: rgba(220, 38, 38, 0.06);
}

/* Legend above the roster table */
.keeper-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius);
    font-size: 13px;
}

.keeper-legend-text { color: var(--ink-soft); margin-right: 8px; }

/* Keeper value badge in the ADP cell */
.keeper-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
}

/* Filled triangle arrow — always renders (no icon-font dependency),
   coloured vivid green/red so good vs bad is obvious at a glance. */
.keeper-arrow {
    font-size: 12px;
    line-height: 1;
    display: inline-block;
}

.keeper-badge.good {
    background: rgba(22, 163, 74, 0.16);
    color: #15803d;
}

.keeper-badge.good .keeper-arrow { color: #16a34a; }   /* vivid green */

.keeper-badge.bad {
    background: rgba(220, 38, 38, 0.15);
    color: #b91c1c;
}

.keeper-badge.bad .keeper-arrow { color: #dc2626; }    /* vivid red */

.keeper-badge.neutral {
    background: rgba(44, 42, 40, 0.06);
    color: var(--ink-soft);
    font-weight: 700;
}

.table-header {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-dark) 100%);
    border-top: none;
    position: sticky;
    top: 0;
}

.roster-name { font-weight: 700; color: var(--ink); }

/* ---------------------------- DRAFT BOARD ---------------------------- */
.draftboard-wrapper {
    display: grid;
    grid-template-rows: repeat(10, 1fr);
    gap: 8px;
    margin-top: 24px;
}

.draftboard-wrapper > .display-item {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 10px;
    border-left: 4px solid var(--terracotta);
    font-weight: 600;
    color: var(--ink);
}

/* ---------------------------- NAVAHO CHANGES ---------------------------- */
.navaho-image {
    width: 300px;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 6px solid var(--white);
}

/* ---------------------------- FOOTER ---------------------------- */
.footer {
    margin: 40px auto 0;
    background-color: var(--ink);
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.footer > div { padding: 24px; }
.copyright { max-width: var(--maxw); margin: auto; font-size: 14px; letter-spacing: 0.04em; }

/* ---------------------------- BURGER (mobile) ---------------------------- */
.burger-icon {
    display: none;
    border: 2px solid var(--terracotta-dark);
    color: var(--terracotta-dark);
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
}

.burger-icon:hover { cursor: pointer; background: var(--terracotta-soft); }

/* Only show Navaho picture and standings on home page */
.home > .wrapper > .sub-featured,
.home > .wrapper > .main-sidebar { display: grid; }

/* ================================================================
   TABLET
   ================================================================ */
@media screen and (max-width: 950px) {
    .nav-wrapper {
        grid-template-columns: 1fr;
        top: 0;
        margin-top: 0;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        text-align: center;
    }
    .logo-wrapper { text-align: center; }
    .main-nav { text-align: center; }

    /* Only the home page keeps the sidebar column on tablet; content
       pages (rules, rosters, draft, ...) use the full width. */
    .home > .wrapper {
        grid-template-areas:
            "featuredMain featuredMain featuredSub"
            "contentMain contentMain featuredSub"
            "contentMain contentMain contentSub";
    }

    .sub-featured {
        background:
            linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.05)),
            url('../assets/Navaho Princess.PNG') no-repeat center center;
        background-size: cover;
        min-height: 220px;
    }

    .avatar-wrapper { display: none; }
    .featured h1 { font-size: 32px; }
}

/* ================================================================
   MOBILE
   ================================================================ */
@media screen and (max-width: 690px) {
    .nav-wrapper {
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .logo { font-size: 18px; white-space: normal; }
    .logo-wrapper { text-align: left; }

    .nav-items {
        grid-column: 1 / 3;
        text-align: center;
    }

    .nav-wrapper ul { padding: 0; margin: 8px 0 0; }
    .nav-wrapper ul li { display: block; }
    .main-nav a { display: block; padding: 12px; }

    .burger-icon {
        display: inline-block;
        justify-self: end;
    }

    /* Single column on phones so nothing gets squeezed/clipped. */
    /* Non-home pages: just hero + content, full width. */
    .wrapper {
        grid-template-columns: 1fr;
        grid-template-areas:
            "featuredMain"
            "contentMain";
    }

    /* Home page: hero, Navaho photo, content, standings — stacked full width. */
    .home > .wrapper {
        grid-template-columns: 1fr;
        grid-template-areas:
            "featuredMain"
            "featuredSub"
            "contentMain"
            "contentSub";
    }

    /* Navaho photo + standings only on the home page (matches tablet/desktop). */
    .home > .wrapper > .sub-featured,
    .home > .wrapper > .main-sidebar { display: grid; }

    .wrapper > .featured { padding: 22px 20px; }
    .wrapper > .main-content { padding: 20px; }

    .sub-featured { min-height: 180px; }

    .featured h1 { font-size: 26px; }

    .mobile-show { display: block; }
    .mobile-hide { display: none; }

    .shame-wrapper { grid-template-columns: 1fr; }

    .roster-header { grid-template-columns: 1fr; }
    .roster-header > .search-wrapper { text-align: left; }

    /* Reformat roster rows into cards */
    .roster-wrapper { border: none; background: none; box-shadow: none; }

    .roster-cell-wrapper {
        grid-template-columns: 1fr 3fr 1fr 1fr;
        border-radius: var(--radius);
        border: 1px solid rgba(196, 107, 76, 0.2);
        background: rgba(255, 255, 255, 0.6);
        margin-bottom: 8px;
    }

    .roster-name { font-weight: 700; }
    .roster-owner { font-size: 60%; grid-row: 2; grid-column: 2 / 5; }
    .roster-keeper { font-size: 60%; grid-row: 2; grid-column: 1 / 2; }

    .table-header { display: none; }
}
