/* Cape Multisport — global styles. MudBlazor provides the component styling;
   this file holds the few site-wide bits MudBlazor doesn't. */

:root {
    --cmc-red: #e11b22;        /* bike */
    --cmc-red-dark: #b3141a;
    --cmc-blue: #0b63ce;       /* swim */
    --cmc-green: #46b83a;      /* run */
    --cmc-charcoal: #17191f;
    /* swim | bike | run signature rule */
    --cmc-tricolor: linear-gradient(to right,
        var(--cmc-blue) 0 33.333%,
        var(--cmc-red) 33.333% 66.666%,
        var(--cmc-green) 66.666% 100%);
}

html, body {
    margin: 0;
}

/* App bar: charcoal with a swim/bike/run rule along the bottom edge. */
.cmc-appbar {
    position: relative;
}

.cmc-appbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--cmc-tricolor);
}

/* The logo art has a white background, so frame it as a rounded white chip
   to sit cleanly on the charcoal app bar. */
.cmc-appbar-logo {
    background: #fff;
    border-radius: 6px;
    padding: 3px 6px;
}

/* Home page hero banner carousel (rotating Cape Multisport banners).
   Match the banners' native 1916x821 ratio so the full image always shows
   (height scales with width — no top/bottom cropping at any size). */
.cmc-banner-carousel {
    aspect-ratio: 1916 / 821;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.cmc-banner-slide {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Footer band: charcoal with the swim/bike/run rule along the top edge. */
.cmc-footer {
    position: relative;
    margin-top: 3rem;
    padding: 2rem 1.5rem;
    text-align: center;
    background: var(--cmc-charcoal);
    color: rgba(255, 255, 255, 0.7);
}

.cmc-footer .mud-typography {
    color: rgba(255, 255, 255, 0.7);
}

.cmc-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--cmc-tricolor);
}

/* Admin login — plain form controls (the form must POST, so MudBlazor inputs aren't used). */
.cmc-login-field {
    margin-bottom: 1.25rem;
}

.cmc-login-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.6);
}

.cmc-login-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.6rem 0.75rem;
    font-size: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    outline: none;
}

.cmc-login-input:focus {
    border-color: var(--cmc-red);
    box-shadow: 0 0 0 1px var(--cmc-red);
}

.cmc-login-submit {
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--cmc-red);
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.cmc-login-submit:hover {
    background: var(--cmc-red-dark);
}

/* Logout button: same shape, but inline-sized rather than full width. */
.cmc-login-submit--plain {
    width: auto;
    padding: 0.5rem 1.25rem;
}
