﻿/* Light page background so cards/papers stand out */
.app-main {
    background: var(--mud-palette-background-grey);
    min-height: calc(100vh - 64px); /* assumes appbar ~64px */
    padding: 24px 0 72px;
}

    /* Global “boxed” styling for most surfaces */
    .app-main .mud-card,
    .app-main .mud-paper {
        border: 1px solid var(--mud-palette-lines-default);
        border-radius: 14px;
        background: var(--mud-palette-surface);
    }

    /* Add a subtle default shadow (only when component isn't already elevated heavily) */
    .app-main .mud-card {
        box-shadow: var(--mud-elevation-2);
    }

    .app-main .mud-paper {
        box-shadow: var(--mud-elevation-1);
    }

    /* Optional: soften hover effect (your current hover elevation is VERY strong) */
    .app-main .hover-elevation:hover {
        box-shadow: var(--mud-elevation-6);
    }
    .app-main .mud-paper.no-surface {
        box-shadow: none;
        border: none;
    }
/* Drawer nav feels more on-brand */
.mud-drawer .mud-nav-link-text {
    font-family: "Bangers", sans-serif;
    letter-spacing: .02em;
}
.mud-table thead th {
    font-family: "Bangers", sans-serif;
}


.mud-button-label {
    text-transform: none;
}

.hover-elevation:hover {
    box-shadow: var(--mud-elevation-15)
}

.main-colour {
    background-color: #607D8B;
    color: white;
}

.header-backfilled {
    color: white;
    background-color: #607D8B;
}

.highlight-text {
    font-weight: 700;
    color: #607D8B;
}

.page-h1 {
    padding: 25px 0px 25px 0px;
    margin: 0px;
}

.footer-bar {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: grey;
    color: white;
    text-align: center;
}

.mud-nav-link-text {
    color: #607D8B
}

.spacer {
    padding: 25px 0px 25px 0px;
}

.info-bar {
    background-color: #607D8B;
    color: white;
    margin-bottom: 8px
}

.container-centered {
    height: 20vh; /* 50% of the viewport height */
    width: 50vw; /* 50% of the viewport width */
    border: 2px solid black;
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

img-maxwidth {
    max-width: 100%; /* Optional: Ensures the image scales well */
    height: 20%;
}

/* Container for the entire page */
.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Main content area fills available space */
MudMainContent {
    flex: 1;
}

.mud-table thead th {
    background-color: #607D8B;
    color: white !important;
    font-weight: bold;
    font-size: 1.1rem;
}

.scrollable-table {
    overflow-x: auto;
    display: block;
    white-space: nowrap;
}

.footer-overlay {
    z-index: 1100; /* Ensures the footer is above MudDrawer */
    position: relative; /* Keeps it properly positioned in the layout */
    background-color: #f8f9fa; /* Matches the style of the footer */
    text-align: center; /* Center-aligns content */
    padding: 1rem; /* Adds padding to the footer content */
}

    .footer-overlay .left-section {
        text-align: left;
    }

    .footer-overlay .right-section {
        text-align: right;
    }

    .footer-overlay .link {
        margin-right: 10px; /* Adds spacing between links */
    }

.sticky-action-bar {
    position: sticky;
    bottom: 0;
    width: 100%;
    padding: 16px;
    background-color: white; /* Match your theme */
    z-index: 1100; /* Ensure it stays above content */
    box-shadow: 0px -2px 6px rgba(0, 0, 0, 0.2); /* Slight shadow for separation */
}

.floating-manage-button {
    position: fixed;
    top: 70px; /* Adjust based on your app bar height */
    right: 50px; /* Slight padding from the edge */
    z-index: 1100; /* Ensure it’s above the app bar */
}

.paypal-btn {
    background-color: #ffc439; /* PayPal Yellow */
    color: #003087; /* PayPal Dark Blue */
    border: none;
    border-radius: 25px; /* Rounded corners */
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    width: 100%;
    padding: 12px 30px;
    transition: background-color 0.3s, box-shadow 0.3s;
}

    .paypal-btn:hover {
        background-color: #ffcd3d; /* Lighter PayPal Yellow on hover */
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    }

    .paypal-btn:disabled {
        background-color: #ccc; /* Disabled state */
        color: #999;
    }

    .paypal-btn .mud-icon {
        margin-right: 8px; /* Add some spacing between the icon and the text */
    }

/* Slide-in animation for new notification items */
@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Highlight effect on new unread notifications */
.notification-highlight {
    animation: pulseHighlight 2s ease-out;
}

@keyframes pulseHighlight {
    0% {
        background-color: #ffecb3;
    }

    100% {
        background-color: transparent;
    }
}

/* Badge animation for unread count change */
@keyframes pulseBadge {
    0% {
        transform: scale(1);
        background-color: #f44336;
    }

    50% {
        transform: scale(1.2);
        background-color: #d32f2f;
    }

    100% {
        transform: scale(1);
        background-color: #f44336;
    }
}

.badge-pulse {
    animation: pulseBadge 0.5s ease-in-out;
}

.mud-table-toolbar {
    flex-wrap: wrap !important;
    height: auto !important;
}

    .mud-table-toolbar .filter-wrapper {
        flex-basis: 100%;
        margin-top: 0.5rem;
    }

.sticky-right {
    position: sticky;
    right: 0;
    z-index: 2;
    background-color: white;
}

.font-mono {
    font-family: 'Courier New', Courier, monospace;
}

.d-block {
    display: block;
}

/* landscape hero art max-height keeps it tidy */
.hero-art img {
    max-height: 360px;
    object-fit: cover;
}

.hero-shot {
    max-width: 420px;
    border-radius: 8px;
}

.font-light {
    font-weight: 300;
}

/* CTA container: keep everything centered and not too wide */
.cta-wrap,
.cta-grid {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

/* Primary button: full width within the max-width container */
.cta-primary {
    width: 100%;
    max-width: 560px;
    padding: 14px 34px;
}

/* Secondary buttons: let layout (Grid/Items) control width */
.cta-secondary-wrap {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Default: secondary buttons are full width on mobile */
.cta-secondary-btn {
    width: 100%;
    max-width: 560px;
}

/* Tablet+ : allow secondary buttons to sit two-up */
@media (min-width: 600px) {
    .cta-secondary-btn {
        width: calc(50% - 6px); /* half minus half the gap */
        max-width: none;
    }
}

.font-light {
    font-weight: 300;
}

.hero-art video {
    max-height: 360px;
    object-fit: cover;
}

.hero-wrap {
    width: 100%;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.hero-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover; /* Fill the paper nicely */
}

/* Prevent any accidental horizontal overflow from becoming scrollable */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* MudBlazor AppBar/Toolbar: allow shrink inside flex row */
.mud-appbar,
.mud-appbar .mud-toolbar {
    width: 100%;
    max-width: 100%;
}

    .mud-appbar .mud-toolbar {
        min-width: 0; /* critical in flex containers */
    }

/* Your action cluster should NOT force the toolbar wider */
.appbar-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-left: auto;
    padding-right: env(safe-area-inset-right);
    flex: 0 0 auto; /* don't grow */
    min-width: 0;
    max-width: 100%;
}

/* CTA: keep buttons from going silly-wide and avoid horizontal overflow */
.cta-wrap {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.cta-grid {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

/* Optional: tighten vertical spacing on phones */
@media (max-width: 600px) {
    .overview-cta {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
}

/* Tighten spacing on phones */
@media (max-width: 600px) {
    .appbar-actions {
        gap: .25rem;
    }
}

/* Truncate long names and hide on small screens */
.user-greeting {
    max-width: 40vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Extra safety if you’re not using Bootstrap’s d-none/d-md-inline classes */
@media (max-width: 600px) {
    .user-greeting {
        display: none !important;
    }
}

/* Desktop header weight */
.lps-table thead th {
    font-weight: 800;
}

/* Mobile readability */
@media (max-width: 600px) {
    /* Make mobile DataLabels (column captions) subtle + compact */
    .lps-table .mud-table-cell .mud-table-cell-label {
        color: var(--mud-palette-text-secondary);
        text-transform: uppercase;
        letter-spacing: .05em;
        font-size: .72rem;
        font-weight: 700;
        margin-right: .5rem;
    }

    /* Make values pop */
    .lps-table .cell-value {
        font-size: .95rem;
        font-weight: 700;
        color: var(--mud-palette-text-primary);
    }

    /* Card-like rows for easier scanning */
    .lps-table tbody tr {
        background: var(--mud-palette-surface);
        border: 1px solid var(--mud-palette-lines-default);
        border-radius: 12px;
        margin: .5rem 0;
    }

    .lps-table tbody td {
        border-bottom: none !important;
    }
}

.chip-winner {
    /* rich gold base */
    background: linear-gradient(90deg,#d4a42f,#f1d37a,#d4a42f);
    color: #3b2f00;
    font-weight: 800;
    border: none;
    background-size: 200% auto;
}
/* keep trophy chip on one line (helps in narrow table cells) */
.chip-winner {
    white-space: nowrap;
}

/* a little extra weight on phones */
@media (max-width: 600px) {
    .chip-winner {
        font-weight: 800;
    }
}

/* tiny shimmer that’s not too “Vegas” */
@media (prefers-reduced-motion: no-preference) {
    .chip-winner {
        animation: lps-gold-shimmer 3s linear infinite;
    }

    @keyframes lps-gold-shimmer {
        0% {
            background-position: 0% 50%;
        }

        100% {
            background-position: 200% 50%;
        }
    }
}

/* nudge the trophy icon */
.chip-winner .mud-icon-root {
    margin-right: .25rem;
}

@media (max-width: 600px) {
    .lps-table td.mobile-hide {
        display: none !important;
    }
}

.appbar-logo-link {
    display: flex;
    align-items: center;
    padding: 4px 8px;
}

.appbar-logo {
    max-height: 56px;
    width: auto;
}

.appbar-actions .account-action {
    text-transform: none; /* keep “Log in” casing */
    font-weight: 600;
    padding-inline: 8px;
    min-width: auto;
}

.fab-float {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0));
    z-index: 1000;
}

.has-bottom-nav .fab-float {
    bottom: calc(72px + env(safe-area-inset-bottom, 0));
}

/* Leave space at bottom so the sticky bar doesn't cover the last items */
.pickteam-page {
    padding-bottom: 92px;
}
/* Give the page room so the sticky bar doesn't cover content on mobile */
.pickteam-page {
    padding-bottom: 92px;
}

/* Mobile-first: hide the in-flow (desktop) save button */
.pickteam-save-desktop {
    display: none;
}

/* Mobile-first: show sticky save bar */
.pickteam-savebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 16px;
    z-index: 1300;
    /* Optional but recommended for readability */
    background: var(--mud-palette-surface);
    border-top: 1px solid var(--mud-palette-lines-default);
}

/* Tablet/Desktop: show in-flow button, hide sticky bar */
@media (min-width: 768px) {
    .pickteam-page {
        padding-bottom: 0;
    }

    .pickteam-save-desktop {
        display: block;
        margin-top: 16px;
    }

    .pickteam-savebar {
        display: none;
    }
}

.dialog-actions {
    width: 100%;
}

/* On wider screens, lay out the buttons in a row */
@media (min-width: 768px) {
    .dialog-actions {
        flex-direction: row !important;
        justify-content: flex-end;
    }

        .dialog-actions .mud-button-root {
            width: auto !important;
        }
}
/* Neutral explanatory copy (NOT green) */
.join-subtitle {
    color: var(--mud-palette-text-secondary);
    letter-spacing: normal;
    text-transform: none;
}

/* Small highlight only (green) */
.join-accent {
    color: var(--mud-palette-secondary);
    font-weight: 700;
}

.footer-overlay a {
    color: var(--mud-palette-secondary);
    text-decoration: none;
    font-weight: 700;
}

    .footer-overlay a:hover {
        text-decoration: underline;
    }



/* Banner header must stay filled even with global paper/card styling */
.app-main .mud-paper.header-backfilled {
    background-color: #607D8B !important;
    color: #fff !important;
    border: none !important; /* outlined looks odd on a filled banner */
}

    .app-main .mud-paper.header-backfilled * {
        color: #fff !important;
    }

