/* =========================================================
   Fake NFL News Maker
   Page-specific CSS - works with the existing style.css
   NFL-inspired palette:
   Navy #013369 / Red #D50A0A / Gold #FFB612 / White
========================================================= */

.nfl-page {
    --nfl-navy: #013369;
    --nfl-navy-dark: #001f3f;
    --nfl-red: #d50a0a;
    --nfl-red-dark: #a80707;
    --nfl-gold: #ffb612;
    --nfl-white: #ffffff;
    --nfl-ink: #111827;
}

/* Hero */
.nfl-hero {
    position: relative;
    padding: 64px 0 55px;
    overflow: hidden;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(circle at 20% 10%, rgba(255,182,18,.14), transparent 28%),
        linear-gradient(135deg, #001f3f 0%, #013369 55%, #0b4b82 100%);
}

.nfl-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    background: linear-gradient(90deg, #d50a0a 0 48%, #ffb612 48% 52%, #d50a0a 52% 100%);
}

.nfl-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.nfl-hero h1 {
    margin: 17px 0 12px;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2.3rem, 6vw, 4.2rem);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.nfl-hero p {
    max-width: 720px;
    margin: 0 auto 18px;
    color: rgba(255,255,255,.82);
    font-size: 1.08rem;
}

.nfl-disclaimer {
    display: inline-block;
    max-width: 850px;
    padding: 8px 12px;
    border-radius: 7px;
    background: rgba(0,0,0,.20);
    color: rgba(255,255,255,.68);
    font-size: 12px;
}

/* Main generator */
.nfl-tool-section {
    padding-top: 42px;
    padding-bottom: 52px;
}

.nfl-generator-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr);
    gap: 30px;
    align-items: start;
}

/* Preview */
.nfl-preview-column {
    min-width: 0;
}

.nfl-preview-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.nfl-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d50a0a;
    box-shadow: 0 0 0 4px rgba(213,10,10,.12);
}

.nfl-canvas-wrap {
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--surface-color);
    box-shadow: var(--shadow);
}

.nfl-news-card {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #071b2f;
    box-shadow: 0 18px 45px rgba(0,0,0,.30);
}

.nfl-topbar {
    position: absolute;
    z-index: 5;
    top: 0;
    left: 0;
    right: 0;
    height: 12%;
    min-height: 38px;
    display: flex;
    align-items: center;
    background: #013369;
    color: #fff;
}

.nfl-network {
    height: 100%;
    min-width: 13%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d50a0a;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(17px, 2.7vw, 31px);
    font-weight: 800;
    letter-spacing: 1px;
}

.nfl-network-name {
    padding-left: 2%;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(10px, 1.5vw, 17px);
    font-weight: 700;
    letter-spacing: 1px;
}

.nfl-live {
    margin-left: auto;
    margin-right: 2%;
    padding: 4px 8px;
    border-radius: 3px;
    background: #fff;
    color: #d50a0a;
    font-size: clamp(8px, 1vw, 12px);
    font-weight: 900;
}

.nfl-image-area {
    position: absolute;
    inset: 0;
}

.nfl-image-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nfl-image-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(0,0,0,.18), transparent 34%),
        linear-gradient(to top, rgba(0,0,0,.76), transparent 58%);
}

.nfl-story-label {
    position: absolute;
    left: 4%;
    bottom: 40%;
    padding: .28em .58em;
    background: #d50a0a;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(10px, 1.6vw, 18px);
    font-weight: 800;
    letter-spacing: .8px;
    box-shadow: 2px 2px 7px rgba(0,0,0,.45);
}

.nfl-headline-box {
    position: absolute;
    left: 4%;
    right: 4%;
    bottom: 18%;
    padding: .45em .65em;
    background: rgba(255,255,255,.96);
    color: #071b2f;
    box-shadow: 3px 4px 12px rgba(0,0,0,.45);
}

#nflPreviewHeadline {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(18px, 3.2vw, 42px);
    font-weight: 800;
    line-height: 1.05;
    text-transform: uppercase;
}

.nfl-team-chip {
    position: absolute;
    left: 4%;
    bottom: 7%;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: .22em .55em;
    border-radius: 4px;
    background: #013369;
    color: #fff;
    font-size: clamp(8px, 1.1vw, 13px);
    font-weight: 800;
}

.nfl-football {
    font-size: 1em;
}

.nfl-ticker {
    position: absolute;
    z-index: 6;
    left: 0;
    right: 0;
    bottom: 0;
    height: 8.5%;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #013369;
    color: #fff;
    font-size: clamp(8px, 1.25vw, 15px);
    font-weight: 600;
}

.nfl-ticker-label {
    height: 100%;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 0 .8em;
    background: #d50a0a;
    color: #fff;
    font-weight: 900;
    letter-spacing: .5px;
}

#nflPreviewTicker {
    padding: 0 .8em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nfl-footer-bar {
    position: absolute;
    z-index: 7;
    left: 0;
    right: 0;
    bottom: 8.5%;
    height: 4.5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%;
    background: rgba(0,0,0,.62);
    color: rgba(255,255,255,.82);
    font-size: clamp(6px, .75vw, 10px);
    font-weight: 700;
    letter-spacing: .5px;
}

.nfl-preview-note {
    margin: 10px 2px 0;
    color: var(--text-muted);
    font-size: 12px;
}

/* Controls */
.nfl-controls {
    padding: 25px;
    border: 1px solid var(--border-color);
    border-top: 4px solid #d50a0a;
    border-radius: 12px;
    background: var(--surface-color);
    box-shadow: var(--shadow);
}

.nfl-control-heading {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 23px;
}

.nfl-control-icon {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #013369;
    font-size: 23px;
}

.nfl-control-heading h2 {
    margin: 0;
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
}

.nfl-control-heading p {
    margin: 2px 0 0;
    color: var(--text-muted);
    font-size: 12px;
}

.nfl-form-group {
    position: relative;
    margin-bottom: 17px;
}

.nfl-form-group label {
    display: block;
    margin-bottom: 7px;
    color: var(--text-color);
    font-size: 13px;
    font-weight: 700;
}

.nfl-form-group label span {
    color: var(--text-muted);
    font-weight: 500;
}

.nfl-form-control {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--border-color);
    border-radius: 7px;
    outline: none;
    background: var(--bg-color);
    color: var(--text-color);
    font: inherit;
    font-size: 14px;
    transition: .2s ease;
}

.nfl-form-control:focus {
    border-color: #013369;
    box-shadow: 0 0 0 3px rgba(1,51,105,.16);
}

.nfl-textarea {
    min-height: 88px;
    resize: vertical;
}

.nfl-counter {
    margin-top: 4px;
    text-align: right;
    color: var(--text-muted);
    font-size: 10px;
}

.nfl-color-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

#nflTickerColor {
    width: 52px;
    height: 38px;
    padding: 2px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--surface-color);
    cursor: pointer;
}

#nflTickerColorValue {
    color: var(--text-muted);
    font-family: monospace;
    font-size: 12px;
}

.nfl-download-btn {
    width: 100%;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #d50a0a, #a80707);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(213,10,10,.28);
    transition: .2s ease;
}

.nfl-download-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 9px 24px rgba(213,10,10,.36);
}

.nfl-download-btn:disabled {
    cursor: wait;
    opacity: .7;
}

.nfl-small-disclaimer {
    margin-top: 12px;
    text-align: center;
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.5;
}

/* Info */
.nfl-info-section {
    border-top: 1px solid var(--border-color);
}

.nfl-steps {
    display: grid;
    gap: 10px;
    margin: 25px 0;
}

.nfl-steps > div {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-color);
}

.nfl-steps strong {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #013369;
    color: #fff;
    font-size: 12px;
}

.nfl-content-disclaimer {
    padding: 15px;
    border-left: 4px solid #ffb612;
    border-radius: 6px;
    background: var(--bg-color);
    color: var(--text-muted);
    font-size: 13px;
}

/* Ko-fi popup */
.nfl-kofi-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0,0,0,.72);
}

.nfl-kofi-overlay.show {
    display: flex;
}

.nfl-kofi-popup {
    position: relative;
    width: 100%;
    max-width: 450px;
    padding: 38px 28px 27px;
    box-sizing: border-box;
    border-radius: 17px;
    border-top: 5px solid #d50a0a;
    background: #fff !important;
    color: #18212f !important;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0,0,0,.4);
    animation: nflKofiIn .22s ease-out;
}

.nfl-kofi-icon {
    margin-bottom: 13px;
    font-size: 39px;
    line-height: 1;
}

.nfl-kofi-popup h2 {
    margin: 0 0 10px !important;
    color: #18212f !important;
    font-size: 25px !important;
    font-weight: 800 !important;
}

.nfl-kofi-popup p {
    max-width: 350px;
    margin: 0 auto 22px !important;
    color: #596273 !important;
    font-size: 15px !important;
    line-height: 1.55;
}

.nfl-kofi-support {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-radius: 9px;
    background: #13bff3 !important;
    color: #fff !important;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none !important;
}

.nfl-kofi-support:hover {
    color: #fff !important;
    transform: translateY(-1px);
}

.nfl-kofi-continue {
    margin-top: 13px;
    padding: 7px 12px;
    border: 0 !important;
    background: transparent !important;
    color: #667085 !important;
    cursor: pointer;
    font-size: 13px;
}

.nfl-kofi-continue:hover {
    color: #18212f !important;
}

.nfl-kofi-close {
    position: absolute;
    top: 8px;
    right: 11px;
    width: 36px;
    height: 36px;
    border: 0 !important;
    background: transparent !important;
    color: #aab1bb !important;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 30px;
    line-height: 1;
}

.nfl-kofi-close:hover {
    color: #4b5563 !important;
}

@keyframes nflKofiIn {
    from { opacity: 0; transform: scale(.96) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Responsive */
@media (max-width: 900px) {
    .nfl-generator-layout {
        grid-template-columns: 1fr;
    }

    .nfl-controls {
        max-width: 760px;
        width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .nfl-hero {
        padding: 48px 0 42px;
    }

    .nfl-hero p {
        font-size: .98rem;
    }

    .nfl-tool-section {
        padding-top: 25px;
    }

    .nfl-canvas-wrap {
        padding: 8px;
    }

    .nfl-controls {
        padding: 19px;
    }

    .nfl-kofi-popup {
        padding: 34px 20px 23px;
    }

    .nfl-kofi-popup h2 {
        font-size: 21px !important;
    }
}
/* =========================================================
   NFL PAGE - HORIZONTAL OVERFLOW FIX
========================================================= */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
}

.nfl-page,
.nfl-hero,
.nfl-tool-section,
.nfl-info-section {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Prevent grid/flex children from forcing page width */
.nfl-generator-layout,
.nfl-preview-column,
.nfl-controls,
.nfl-canvas-wrap {
    min-width: 0 !important;
    max-width: 100%;
    box-sizing: border-box;
}

/* Hero content must stay inside viewport */
.nfl-hero .container {
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
}

.nfl-hero h1,
.nfl-hero p,
.nfl-disclaimer {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Preview cannot exceed its parent */
.nfl-preview-column {
    width: 100%;
}

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

.nfl-news-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* Images cannot create horizontal overflow */
.nfl-news-card img {
    max-width: 100%;
}

/* Form controls */
.nfl-form-control {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* IMPORTANT: mobile/tablet layout */
@media (max-width: 900px) {

    .nfl-generator-layout {
        display: flex !important;
        flex-direction: column !important;
        width: 100%;
        max-width: 100%;
        gap: 24px;
    }

    .nfl-preview-column,
    .nfl-controls {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .nfl-controls {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Small screens */
@media (max-width: 600px) {

    .nfl-hero .container,
    .nfl-tool-section .container,
    .nfl-info-section .container {
        width: 100%;
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

    .nfl-hero h1 {
        font-size: clamp(2rem, 11vw, 3rem) !important;
        line-height: 1.05;
    }

    .nfl-hero p {
        font-size: 15px;
    }

    .nfl-disclaimer {
        font-size: 11px;
    }

    .nfl-generator-layout {
        gap: 20px;
    }

    .nfl-controls {
        padding: 18px !important;
    }
}