/* ==== GLOBAL RESET ==== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 400;
    background-color: #f4f4f4;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ==== GLOBAL VARIABLES ==== */
:root {
    --primary-color: red;
    --background-light: #f4f4f4;
    --text-dark: #333;
    --border-color: #ddd;
}

/*.utility-container {
    flex: 1;
}*/

/* ==== GLOBAL ELEMENTS ==== */
a {
    color: var(--text-dark);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

button {
    cursor: pointer;
    border: none;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

/* Reusable card layout */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
}

/* ==== GLOBAL PAGE BORDERS ==== */
.top-line {
    height: 5px;
    width: 100%;
}

    .top-line.black {
        background-color: #000;
    }

    .top-line.red {
        background-color: var(--primary-color);
    }

.bottom-line {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw; /* ensures it spans the entire viewport width */
    height: 5px;
    background-color: #000;
    z-index: 2000; /* makes sure it stays on top of sidebar/content */
}

/* ==== Intro Section Background with diagonal slash ==== */
.intro-section {
    position: relative;
    padding: 0.5rem 2rem;
    margin: -2rem -2rem 2rem -2rem; /* keep your layout */
    border-radius: 0; /* keep shape */
    overflow: hidden;
    /* Diagonal slash background: top-right lighter, bottom-left darker */
    background: linear-gradient( 45deg, /* top-right to bottom-left */
    #d9d9d9 50%, /* darker gray on bottom-left */
    #e6e6e6 50% /* lighter gray on top-right */
    );
}

    /* Keep text above background */
    .intro-section * {
        position: relative;
        z-index: 1;
    }

    /* Text styling */
    .intro-section h1 {
        margin-bottom: 0.5rem;
        color: #000;
    }

    .intro-section p {
        color: #333;
        font-size: 1rem;
        line-height: 1.4;
    }

    /* Ensure text inside is readable */
    .intro-section h1 {
        margin-bottom: 0.5rem;
        color: #000;
    }

    .intro-section .intro-text {
        color: #333;
    }

/* ==== Red Alert BLURB ==== */
.rating-blurb-red {
    font-size: 0.9rem;
    color: #555;
    margin: 0.5rem 0 1rem 0;
    background: #fff7f7;
    border-left: 4px solid var(--primary-color);
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    line-height: 1.4;
}

/* ==== Yellow Alert BLURB ==== */
.rating-blurb-yellow {
    font-size: 0.9rem;
    color: #555;
    margin: 0.5rem 0 1rem 0;
    background: #fffbe6; /* soft yellow background */
    border-left: 4px solid #f5c000; /* yellow accent (like primary color for yellow) */
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    line-height: 1.4;
}


/* ==== Black Informational BLURB ==== */
.rating-blurb {
    font-size: 0.9rem;
    color: #333;
    margin: 0.75rem 0 1rem 0;
    background: #e6e6e6; /* darker gray than body background (#f4f4f4) */
    border-left: 4px solid #000; /* black line instead of red */
    padding: 0.75rem 1rem;
    border-radius: 4px;
    line-height: 1.5;
}


/* ==== COOKIE BANNER ==== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-top: 2px solid var(--border-color);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    z-index: 3000;
    display: flex;
    justify-content: center;
}

.cookie-content {
    max-width: 800px;
    text-align: center;
}

    .cookie-content p {
        color: var(--text-dark);
        margin-bottom: 1rem;
        font-size: 0.95rem;
        line-height: 1.4;
    }

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

    .cookie-btn.accept {
        background-color: var(--primary-color);
        color: #fff;
    }

        .cookie-btn.accept:hover {
            background-color: darkred;
        }

    .cookie-btn.reject {
        background-color: #e6e6e6;
        color: #333;
    }

        .cookie-btn.reject:hover {
            background-color: #ccc;
        }


/* ==== COOKIE PREFERENCES PAGE ==== */
.cookie-pref-container {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 1rem 4rem;
}

    .cookie-pref-container h1 {
        margin-bottom: 1rem;
        color: var(--text-dark);
    }

.cookie-option {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 0.75rem;
}

    /* Make checkboxes red when checked */
    .cookie-option input[type="checkbox"] {
        width: 1.2rem;
        height: 1.2rem;
        margin-top: 0.2rem;
        accent-color: var(--primary-color); /* <- makes check mark and box red */
    }

    .cookie-option label {
        line-height: 1.4;
        color: #444;
        font-size: 0.95rem;
    }

.cookie-pref-container .cookie-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.cookie-pref-container {
    flex: 1; /* lets main content take all available space */
}

.privacy-container {
    flex: 1;
}

.terms-container {
    flex: 1; /* this pushes the footer to the bottom */
}

.cookie-btn.close {
    background-color: #ccc;
    color: #000;
    border: none;
    padding: 0.5rem 1rem;
    margin-left: 0.5rem;
    cursor: pointer;
}

    .cookie-btn.close:hover {
        background-color: #aaa;
    }

/*Global Error for all pages*/
.system-banner {
    width: 100%;
    padding: 12px 16px 20px;
    line-height: 1.4;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: 500;
    border-bottom: 1px solid transparent;
}

    .system-banner .banner-content {
        max-width: 1100px;
        display: flex;
        gap: 6px;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
    }

    .system-banner.warning {
        background-color: #fff3cd;
        color: #856404;
        border-bottom: 1px solid #ffeeba;
    }

    .system-banner.error {
        background-color: #f8d7da;
        color: #721c24;
        border-bottom: 1px solid #f5c6cb;
    }

    .system-banner.info {
        background-color: #e7f1ff; /* soft blue */
        color: #084298; /* deep blue text */
        border-bottom: 1px solid #b6d4fe;
    }

    .system-banner strong {
        font-weight: 600;
    }

    .system-banner.warning a {
        color: #856404;
        font-weight: 700;
        border-bottom: 1px solid currentColor;
        text-decoration: none;
    }

        .system-banner.warning a:hover {
            color: #5f4700;
            border-bottom-width: 2px;
        }

@media (max-width: 768px) {

    .system-banner {
        font-size: 12px;
        padding: 10px 12px 18px;
    }

        .system-banner .banner-content {
            flex-direction: column;
            text-align: center;
            gap: 4px;
        }
}

/* Footer - global for all pages */
.footer {
    background: #111;
    color: #aaa;
    padding: 2rem 1rem 1rem;
    font-size: 0.85rem;
    position: relative;
    z-index: 10;
}

    /* HARD ISOLATION: prevent page styles leaking in */
    .footer,
    .footer * {
        color: #aaa !important;
        font-family: inherit;
    }

        /* Keep headings readable */
        .footer h1,
        .footer h2,
        .footer h3,
        .footer h4 {
            color: #fff !important;
        }

/* Layout container */
.footer-container {
    max-width: 1000px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    text-align: left;
}

/* Columns */
.footer-column {
    flex: 1;
    min-width: 180px;
}

/* Links */
.footer a {
    display: block;
    color: #aaa !important;
    margin: 0.25rem 0;
    text-decoration: none;
    transition: color 0.2s ease;
}

    /* Hover state */
    .footer a:hover {
        color: var(--primary-color) !important;
    }

/* Text blocks */
.footer-text {
    color: #aaa !important;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Bottom strip */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 1.5rem;
    padding-top: 1rem;
    text-align: center;
    font-size: 0.8rem;
    color: #666 !important;
}

/*Footer style for Utility layout*/
.Utility-footer {
    text-align: center;
    padding: 1.25rem 1rem;
    font-size: 0.85rem;
    color: #666;
    width: 100%;
}

    .Utility-footer p {
        margin: 0;
        line-height: 1.5;
    }

    .Utility-footer a {
        color: #666;
        margin: 0 0.5rem;
        text-decoration: none;
    }

        .Utility-footer a:hover {
            color: #000;
            text-decoration: underline;
        }

/* Footer Logo */
.footer-logo {
    width: 140px;
    height: auto;
    display: block;
    margin-bottom: 0.75rem;
}
