/* --- PALETTE SYSTEM ---
Stone (base): #EDEBE7
Black (text/ink): #121212
Cobalt (primary accent): #3158C7
Signal Orange (secondary accent): #E36B38
Mint (success/clean sheet): #BFD9CB
White (surface elements): #FFFFFF
---------------------- */

/* Reset Elements */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #EDEBE7;
    color: #121212;
    font-family: 'Courier New', Courier, monospace, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography & Links */
a {
    color: #3158C7;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    color: #121212;
    text-transform: uppercase;
    font-weight: 900;
}

/* CARTOON SPORT NEUBRUTALISM ELEMENTS */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    border: 4px solid #121212;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 4px 4px 0px #121212;
}

.btn:active {
    transform: translate(3px, 3px);
    box-shadow: 1px 1px 0px #121212;
}

.btn-primary {
    background-color: #E36B38;
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: #f77f4c;
    text-decoration: none;
}

.btn-secondary {
    background-color: #3158C7;
    color: #FFFFFF;
}

.btn-secondary:hover {
    background-color: #496edc;
    text-decoration: none;
}

.btn-outline {
    background-color: #FFFFFF;
    color: #121212;
}

.btn-outline:hover {
    background-color: #EDEBE7;
    text-decoration: none;
}

.size-lg {
    padding: 16px 32px;
    font-size: 1.15rem;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.bg-white { background-color: #FFFFFF !important; }
.bg-cobalt { background-color: #3158C7 !important; }
.bg-orange { background-color: #E36B38 !important; }
.bg-mint { background-color: #BFD9CB !important; }
.bg-stone { background-color: #EDEBE7 !important; }

.text-white { color: #FFFFFF !important; }
.text-orange { color: #E36B38 !important; }
.text-cobalt { color: #3158C7 !important; }
.text-mint { color: #528c6c !important; }
.text-dark { color: #121212 !important; }

.badge-accent {
    display: inline-block;
    background-color: #E36B38;
    color: #FFFFFF;
    font-size: 0.85rem;
    font-weight: 900;
    padding: 6px 14px;
    border: 3px solid #121212;
    border-radius: 20px;
    margin-bottom: 15px;
    box-shadow: 2px 2px 0px #121212;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    border: 2px solid #121212;
    border-radius: 6px;
    text-transform: uppercase;
}

.margin-top-md { margin-top: 30px; }
.margin-top-lg { margin-top: 60px; }
.margin-bottom-lg { margin-bottom: 60px; }

/* Header & Mobile Navigation */
.main-header {
    background-color: #FFFFFF;
    border-bottom: 6px solid #121212;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.brand-logo {
    font-size: 1.6rem;
    font-weight: 900;
    color: #121212;
    text-decoration: none;
    letter-spacing: -1px;
    border: 3px solid #121212;
    padding: 4px 12px;
    background-color: #BFD9CB;
    box-shadow: 3px 3px 0px #121212;
    display: inline-block;
}

.brand-logo:hover {
    text-decoration: none;
    transform: scale(1.02);
}

.logo-accent {
    color: #E36B38;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 900;
    color: #121212;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    background-color: #EDEBE7;
    text-decoration: none;
}

.nav-btn {
    border: 3px solid #121212;
    background-color: #E36B38;
    color: #FFFFFF;
    box-shadow: 2px 2px 0px #121212;
}

.nav-btn:hover {
    background-color: #3158C7;
    color: #FFFFFF;
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px #121212;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle .bar {
    height: 4px;
    width: 100%;
    background-color: #121212;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Cookie Banner styled robustly */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 800px;
    background-color: #FFFFFF;
    border: 5px solid #121212;
    border-radius: 16px;
    box-shadow: 8px 8px 0px #121212;
    z-index: 2000;
    padding: 25px;
    display: none; /* Managed by JS */
}

.cookie-banner.show {
    display: block;
}

.cookie-title {
    margin-bottom: 10px;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Hero elements */
.hero-section {
    padding: 60px 0;
    background-color: #FFFFFF;
    border-bottom: 6px solid #121212;
    margin-bottom: 40px;
}

.inner-hero {
    padding: 40px 0;
    background-color: #3158C7;
    color: #FFFFFF;
}

.inner-hero h1 {
    color: #FFFFFF;
}

.inner-hero .hero-lead {
    color: #EDEBE7;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 15px;
    letter-spacing: -1.5px;
}

.highlight-orange {
    background-color: #E36B38;
    color: #FFFFFF;
    padding: 2px 10px;
    border: 4px solid #121212;
    display: inline-block;
    box-shadow: 4px 4px 0px #121212;
    border-radius: 8px;
    margin-top: 5px;
}

.hero-lead {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 20px auto 0 auto;
}

.snapshot-ticker {
    display: inline-flex;
    align-items: center;
    background-color: #BFD9CB;
    border: 3px solid #121212;
    border-radius: 8px;
    padding: 8px 16px;
    margin-top: 30px;
    font-size: 0.9rem;
    box-shadow: 3px 3px 0px #121212;
}

.pulse-indicator {
    width: 10px;
    height: 10px;
    background-color: #E36B38;
    border-radius: 50%;
    margin-right: 10px;
    animation: blink-anim 1.5s infinite;
}

@keyframes blink-anim {
    0% { opacity: 0.2; }
    50% { opacity: 1; }
    100% { opacity: 0.2; }
}

/* Overview Section Grid */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.overview-card {
    border: 4px solid #121212;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 6px 6px 0px #121212;
}

.card-num {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 5px;
}

.card-label {
    text-transform: uppercase;
    font-weight: 900;
    font-size: 0.9rem;
}

/* SECTION GLOBAL TITLE */
.section-title {
    font-size: 2.2rem;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 1.1rem;
    margin-top: 10px;
    color: #555555;
    margin-bottom: 45px;
}

/* FORM SPINE SYSTEM */
.form-spine-container {
    position: relative;
    max-width: 950px;
    margin: 40px auto;
    padding: 20px 0;
}

.form-spine-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 8px;
    background-color: #121212;
    transform: translateX(-50%);
}

.spine-branch {
    position: relative;
    width: 46%;
    margin-bottom: 40px;
    clear: both;
}

.spine-branch.left {
    float: left;
}

.spine-branch.right {
    float: right;
    margin-top: 40px;
}

.spine-card {
    background-color: #FFFFFF;
    border: 4px solid #121212;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 6px 6px 0px #121212;
    position: relative;
}

.spine-badge {
    position: absolute;
    top: -18px;
    left: -18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 4px solid #121212;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    font-size: 1.2rem;
    color: #FFFFFF;
    box-shadow: 2px 2px 0px #121212;
}

.spine-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.spine-card-header h3 {
    font-size: 1.4rem;
}

.stat-pill {
    background-color: #121212;
    color: #FFFFFF;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
}

.spine-stats {
    display: flex;
    justify-content: space-between;
    background-color: #EDEBE7;
    padding: 8px 12px;
    border: 3px solid #121212;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    font-weight: bold;
}

.scoreline-strip {
    font-size: 0.85rem;
    font-weight: bold;
}

.score-tag {
    display: inline-block;
    padding: 2px 6px;
    font-size: 0.75rem;
    border-radius: 4px;
    border: 2px solid #121212;
    margin-right: 4px;
    font-weight: 900;
}

.score-tag.win { background-color: #BFD9CB; }
.score-tag.draw { background-color: #EDEBE7; }
.score-tag.loss { background-color: #E36B38; color: #FFFFFF; }

.clear-fix {
    clear: both;
}

/* Comparison Modules Section */
.goals-comparison-section {
    padding: 60px 0;
    border-top: 6px solid #121212;
    border-bottom: 6px solid #121212;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.comparison-card {
    border: 4px solid #121212;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 6px 6px 0px #121212;
}

.comparison-card-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 4px solid #121212;
    padding-bottom: 10px;
}

.comparison-list {
    list-style: none;
}

.comparison-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 2px dashed #121212;
    font-size: 0.95rem;
}

.comparison-list li:last-child {
    border-bottom: none;
}

.list-rank {
    width: 24px;
    height: 24px;
    background-color: #121212;
    color: #FFFFFF;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 900;
}

/* Scoreline Chains Grid */
.scoreline-chains-section {
    padding: 60px 0;
}

.chains-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.chain-box {
    background-color: #FFFFFF;
    border: 4px solid #121212;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 4px 4px 0px #121212;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.chain-team {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.chain-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.chain-pill {
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 900;
    border: 2px solid #121212;
    border-radius: 6px;
}

.chain-meta {
    font-size: 0.75rem;
    color: #555555;
    font-weight: bold;
    border-top: 2px solid #121212;
    padding-top: 8px;
}

/* Neutral Observations Style */
.neutral-observations-section {
    padding: 60px 0;
    border-top: 6px solid #121212;
    border-bottom: 6px solid #121212;
}

.observations-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.observation-item {
    background-color: #FFFFFF;
    border: 4px solid #121212;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    box-shadow: 4px 4px 0px #121212;
}

.obs-icon {
    background-color: #E36B38;
    color: #FFFFFF;
    border: 3px solid #121212;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.obs-content h4 {
    margin-bottom: 5px;
}

/* Editorial Explainer Box */
.explainer-section {
    padding: 60px 0;
}

.explainer-box {
    background-color: #FFFFFF;
    border: 4px solid #121212;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 8px 8px 0px #121212;
    position: relative;
    overflow: hidden;
}

.explainer-box::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 15px;
    height: 100%;
    background-color: #3158C7;
}

.explainer-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #E36B38;
}

/* Results Page Elements */
.results-catalog-section {
    padding: 40px 0;
}

.results-layout-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.group-results-box {
    background-color: #FFFFFF;
    border: 4px solid #121212;
    border-radius: 12px;
    box-shadow: 5px 5px 0px #121212;
    overflow: hidden;
}

.group-title-header {
    border-bottom: 4px solid #121212;
    padding: 12px 18px;
    font-size: 1.25rem;
}

.results-list {
    list-style: none;
    padding: 10px 18px;
}

.results-list li {
    padding: 10px 0;
    border-bottom: 2px dashed #EDEBE7;
    font-weight: bold;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.results-list li:last-child {
    border-bottom: none;
}

.icon-match {
    margin-right: 8px;
}

.banner-box {
    border: 4px solid #121212;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 6px 6px 0px #121212;
}

/* Form Notes Page Styling */
.form-notes-section {
    padding: 40px 0;
}

.notes-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.note-row {
    border: 4px solid #121212;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 5px 5px 0px #121212;
}

.note-team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #121212;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.note-body {
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.score-line-tags {
    font-size: 0.8rem;
    background-color: #EDEBE7;
    padding: 10px;
    border-radius: 6px;
    border: 2px solid #121212;
}

.score-line-tags span {
    background-color: #FFFFFF;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    border: 1px solid #121212;
}

/* About Section CSS */
.about-content-section {
    padding: 40px 0;
}

.about-grid-text {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.sidebar-info {
    border: 4px solid #121212;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 5px 5px 0px #121212;
}

.sidebar-info h3 {
    margin-bottom: 15px;
    border-bottom: 3px solid #121212;
    padding-bottom: 5px;
}

.promise-list {
    list-style: none;
}

.promise-list li {
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 2px dashed #121212;
}

.promise-list li:last-child {
    border-bottom: none;
}

/* Legal Pages Box */
.legal-page-section {
    padding: 40px 0;
}

.legal-box {
    border: 4px solid #121212;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 6px 6px 0px #121212;
    max-width: 900px;
    margin: 0 auto;
}

.legal-box h2 {
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 10px;
    border-bottom: 3px solid #121212;
    padding-bottom: 5px;
}

.legal-box p, .legal-box ul {
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.legal-box ul {
    padding-left: 20px;
}

/* Contact Page Styles */
.contact-section {
    padding: 40px 0;
}

.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    border: 4px solid #121212;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 6px 6px 0px #121212;
}

.comic-form .form-row {
    margin-bottom: 20px;
}

.comic-form .form-group {
    display: flex;
    flex-direction: column;
}

.comic-form label {
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.comic-form input, .comic-form select, .comic-form textarea {
    border: 3px solid #121212;
    border-radius: 8px;
    padding: 12px;
    font-family: inherit;
    font-size: 1rem;
    background-color: #EDEBE7;
    outline: none;
    transition: background-color 0.2s;
}

.comic-form input:focus, .comic-form select:focus, .comic-form textarea:focus {
    background-color: #FFFFFF;
}

.comic-form textarea {
    resize: vertical;
}

.form-action {
    margin-top: 30px;
}

.alert {
    padding: 15px;
    border: 3px solid #121212;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.hidden {
    display: none !important;
}

/* Footer elements */
.main-footer {
    background-color: #FFFFFF;
    border-top: 6px solid #121212;
    padding: 60px 0 20px 0;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-desc {
    font-size: 0.85rem;
    margin-bottom: 15px;
    max-width: 450px;
}

.contact-info-address {
    font-size: 0.85rem;
    background-color: #EDEBE7;
    border: 3px solid #121212;
    border-radius: 8px;
    padding: 12px;
}

.footer-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 3px solid #121212;
    padding-bottom: 5px;
}

.footer-links ul, .footer-legal ul {
    list-style: none;
}

.footer-links ul li, .footer-legal ul li {
    margin-bottom: 8px;
}

.footer-links ul li a, .footer-legal ul li a {
    color: #121212;
    font-size: 0.85rem;
}

.footer-bottom {
    border-top: 3px solid #121212;
    padding-top: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* RESPONSIVE LAYOUT DESIGNS */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .results-layout-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .chains-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #FFFFFF;
        border-bottom: 6px solid #121212;
        padding: 20px;
        gap: 15px;
    }

    .nav-menu.open {
        display: flex;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .overview-grid {
        grid-template-columns: 1fr;
    }

    .form-spine-container::before {
        left: 20px;
    }

    .spine-branch {
        width: calc(100% - 40px) !important;
        float: none !important;
        margin-left: 40px !important;
        margin-top: 20px !important;
    }

    .spine-badge {
        left: -32px;
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
        border-width: 3px;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .about-grid-text {
        grid-template-columns: 1fr;
    }

    .results-layout-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .chains-grid {
        grid-template-columns: 1fr;
    }

    .legal-box {
        padding: 20px;
    }

    .contact-form-wrapper {
        padding: 20px;
    }
}