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

body {
    font-family: Arial, sans-serif;
    background: #eaebda;
    color: #202535;
    line-height: 1.6;
}

.competition-header {
    background: #111827;
    color: white;
    padding: 18px 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    color: white;
    font-weight: bold;
    font-size: 21px;
    text-decoration: none;
}

.competition-header nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.competition-header nav a {
    color: white;
    text-decoration: none;
}

.competition-header button {
    background: #ef4444;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
}

.competition-container {
    width: min(1000px, 92%);
    margin: 40px auto;
}

.welcome-section {
    background: #030b27;
    color: white;
    padding: 45px 35px;
    border-radius: 14px;
    margin-bottom: 25px;
}

.eyebrow {
    color: #dd0f0f;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
}

.welcome-section h1 {
    font-size: clamp(28px, 5vw, 42px);
    margin: 15px 0;
    line-height: 1.2;
}

.welcome-section p {
    max-width: 700px;
}

.participant-card,
.competition-card,
.submission-section,
.my-submissions {
    background: rgb(223, 220, 202);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

h2 {
    margin-bottom: 20px;
    font-size: 23px;
}

.participant-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.participant-details div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.participant-details span {
    color: #64748b;
    font-size: 13px;
}

.participant-details strong {
    overflow-wrap: anywhere;
}

.competition-card h3 {
    color: #ca1313;
    margin-bottom: 12px;
}

.competition-card p {
    margin-bottom: 12px;
}

.competition-status {
    margin-top: 20px;
    padding: 12px;
    background: #eff6ff;
    border-radius: 7px;
}

#competitionStatus {
    color: #c21717;
}

.submission-section form {
    display: flex;
    flex-direction: column;
}

.submission-section label {
    font-weight: bold;
    margin: 15px 0 7px;
}

.submission-section input,
.submission-section textarea {
    width: 100%;
    padding: 13px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    font: inherit;
}

.submission-section input:focus,
.submission-section textarea:focus {
    outline: 2px solid #d83808;
    border-color: transparent;
}

.upload-guidelines {
    background: #f1f5f9;
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 14px;
}

.upload-progress-container {
    margin-bottom: 20px;
}

.upload-progress-container progress {
    width: 100%;
    height: 16px;
}

#submitButton {
    background: #e4270e;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 7px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

#submitButton:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

#submissionMessage {
    margin-top: 15px;
    font-weight: bold;
}

#videoPreview video {
    width: 100%;
    max-height: 350px;
    margin-top: 15px;
    border-radius: 8px;
}

.submission-item {
    border: 1px solid #e2e8f0;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.submission-item p {
    color: #64748b;
    font-size: 14px;
}

footer {
    text-align: center;
    padding: 25px;
    background: #111827;
    color: white;
}

@media (max-width: 650px) {
    .competition-header {
        flex-direction: column;
    }

    .competition-header nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .participant-details {
        grid-template-columns: 1fr;
    }

    .welcome-section,
    .participant-card,
    .competition-card,
    .submission-section,
    .my-submissions {
        padding: 22px;
    }
}


/* =========================================
   PARTICIPANT OFFICIAL RESULTS
========================================= */

.participant-results {
    background: #ffffff;
    padding: 30px;
    margin: 25px 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.participant-results h2 {
    color: #111827;
    margin-bottom: 12px;
}

#resultsPublicationStatus {
    color: #64748b;
    margin-bottom: 20px;
}

.participant-result-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #b0002a;
    padding: 22px;
    margin-top: 18px;
    border-radius: 9px;
}

.participant-result-card h3 {
    color: #b0002a;
    margin-bottom: 18px;
}

.participant-result-card h4 {
    color: #1f2937;
    margin-top: 20px;
    margin-bottom: 10px;
}

.participant-result-card p {
    color: #475569;
    margin: 8px 0;
    line-height: 1.6;
}

.participant-result-card strong {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 16px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 7px;
}

@media (max-width: 650px) {
    .participant-results {
        padding: 22px;
    }

    .participant-result-card {
        padding: 16px;
    }
}

/* =========================================
   PARTICIPANT SUBMISSION CONFIRMATION
========================================= */

.submission-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #16a34a;
    padding: 22px;
    border-radius: 10px;
    margin-bottom: 16px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.submission-item h3 {
    color: #111827;
    margin-bottom: 12px;
}

.submission-confirmation {
    display: inline-block;
    background: #dcfce7;
    color: #166534;
    padding: 7px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 12px;
}

.submission-notice {
    color: #64748b;
    font-size: 14px;
    margin-top: 12px;
}


/* =========================================
   NATIONAL COMPETITION — PREMIUM DESIGN
   HEADER AND HERO
========================================= */

body {
    background: #f1f2ed;
    color: #172033;
    font-family: "Segoe UI", Arial, sans-serif;
}

.competition-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 18px 7%;
    background: rgba(8, 15, 31, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.competition-header .brand {
    font-size: 22px;
    letter-spacing: 1px;
    font-weight: 900;
}

.competition-header .brand::before {
    content: "✦ ";
    color: #ff5555;
}

.competition-header nav a {
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.competition-header nav a:hover {
    color: #ff6666;
}

.competition-header button {
    background: linear-gradient(135deg, #ff5555, #c51b32);
    border-radius: 8px;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.competition-header button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(239, 68, 68, 0.3);
}

.competition-container {
    width: min(1120px, 92%);
    margin: 42px auto;
}

.welcome-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 75px 55px;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background:
        radial-gradient(circle at 85% 15%, rgba(239, 68, 68, 0.3), transparent 35%),
        radial-gradient(circle at 10% 100%, rgba(35, 80, 140, 0.3), transparent 40%),
        linear-gradient(135deg, #071225, #152944 65%, #091326);
    box-shadow: 0 25px 55px rgba(12, 25, 48, 0.2);
}

.welcome-section::after {
    content: "🏆";
    position: absolute;
    z-index: -1;
    right: 7%;
    top: 50%;
    transform: translateY(-50%) rotate(10deg);
    font-size: clamp(100px, 17vw, 190px);
    opacity: 0.13;
    filter: grayscale(0.2);
}

.welcome-section .eyebrow {
    color: #ff7777;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2.5px;
    margin-bottom: 12px;
}

.welcome-section h1 {
    max-width: 760px;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 55px);
    font-weight: 900;
    line-height: 1.12;
    margin: 12px 0 20px;
}

.welcome-section > p:last-child {
    max-width: 680px;
    color: #d6dfeb;
    font-size: 17px;
    line-height: 1.8;
}

@media (max-width: 650px) {
    .competition-header {
        padding: 16px 5%;
    }

    .competition-header nav {
        gap: 14px;
    }

    .competition-container {
        margin: 24px auto;
    }

    .welcome-section {
        padding: 42px 25px;
        min-height: 300px;
        border-radius: 18px;
    }

    .welcome-section::after {
        right: 4%;
        top: 15%;
        font-size: 90px;
    }

    .welcome-section > p:last-child {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .competition-header nav a,
    .competition-header button {
        transition: none;
    }
}

/* =========================================
   PARTICIPANT & COMPETITION INFORMATION
========================================= */

.participant-card,
.competition-card {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    padding: 34px;
    border: 1px solid #e5e9ef;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.055);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.participant-card:hover,
.competition-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.09);
}

.participant-card h2,
.competition-card h2 {
    color: #111d32;
    font-size: 23px;
    font-weight: 800;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf0f4;
}

.participant-details {
    gap: 16px;
    margin-top: 22px;
}

.participant-details div {
    min-width: 0;
    padding: 19px;
    background: #f5f7fa;
    border: 1px solid #edf0f4;
    border-radius: 12px;
    gap: 8px;
}

.participant-details span {
    color: #7a8495;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.participant-details strong {
    color: #18243a;
    font-size: 15px;
    overflow-wrap: anywhere;
}

.competition-card h3 {
    color: #bd1830;
    font-size: 22px;
    font-weight: 800;
    margin: 20px 0 12px;
}

.competition-card > p,
#competitionInstructions {
    color: #526075;
    line-height: 1.8;
}

.competition-status {
    margin-top: 24px;
    padding: 16px 18px;
    background: #fff1f2;
    border: 1px solid #ffe0e3;
    border-left: 4px solid #d52b43;
    border-radius: 10px;
    color: #344054;
}

#competitionStatus {
    color: #b71932;
    font-weight: 800;
}

@media (max-width: 650px) {
    .participant-card,
    .competition-card {
        padding: 23px;
    }

    .participant-details {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   VIDEO SUBMISSION — PREMIUM WORKSPACE
========================================= */

.submission-section {
    background: #ffffff;
    padding: 38px;
    border: 1px solid #e5e9ef;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.07);
}

.submission-section h2 {
    color: #111d32;
    font-size: 27px;
    font-weight: 850;
}

.submission-section > p {
    color: #64748b;
    margin-bottom: 25px;
}

.submission-section form {
    max-width: 850px;
}

.submission-section label {
    color: #26354c;
    font-size: 14px;
    font-weight: 750;
    margin: 20px 0 8px;
}

.submission-section input,
.submission-section textarea {
    background: #f8fafc;
    border: 1px solid #dce3ec;
    border-radius: 10px;
    padding: 15px;
    color: #172033;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.submission-section input:focus,
.submission-section textarea:focus {
    outline: none;
    border-color: #d52b43;
    box-shadow: 0 0 0 4px rgba(213, 43, 67, 0.1);
}

.submission-section input[type="file"] {
    padding: 13px;
    background: #fff7f7;
    border: 1px dashed #e69aa5;
    cursor: pointer;
}

.upload-guidelines {
    background: #f4f7fb;
    border: 1px solid #e4eaf2;
    border-radius: 12px;
    padding: 20px 22px;
    margin: 24px 0;
    color: #526075;
}

.upload-guidelines p {
    margin: 7px 0;
    font-size: 14px;
}

.upload-guidelines p::before {
    content: "✓";
    color: #15965a;
    font-weight: 900;
    margin-right: 10px;
}

#submitButton {
    margin-top: 12px;
    padding: 16px 25px;
    background: linear-gradient(135deg, #ef4444, #b71932);
    border-radius: 10px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.3px;
    box-shadow: 0 9px 22px rgba(183, 25, 50, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#submitButton:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 13px 28px rgba(183, 25, 50, 0.3);
}

#submitButton:disabled {
    opacity: 0.65;
}

.upload-progress-container {
    padding: 15px;
    background: #f1f5f9;
    border-radius: 10px;
}

.upload-progress-container progress {
    accent-color: #c51b32;
}

#progressText {
    display: inline-block;
    margin-top: 7px;
    color: #344054;
    font-weight: 700;
}

#videoPreview video {
    background: #071225;
    padding: 5px;
    border-radius: 12px;
}

#submissionMessage {
    line-height: 1.6;
}

@media (max-width: 650px) {
    .submission-section {
        padding: 24px;
    }

    .submission-section h2 {
        font-size: 23px;
    }

    #submitButton {
        width: 100%;
    }
}

/* =========================================
   MY SUBMISSIONS — PREMIUM DESIGN
========================================= */

.my-submissions,
.participant-results {
    background: #ffffff;
    padding: 34px;
    border: 1px solid #e5e9ef;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.055);
}

.my-submissions h2,
.participant-results h2 {
    color: #111d32;
    font-size: 25px;
    font-weight: 850;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf0f4;
}

.submission-item {
    background: #f8fafc;
    border: 1px solid #e3e9f0;
    border-left: 5px solid #15965a;
    border-radius: 12px;
    padding: 23px;
    margin-top: 18px;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.submission-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.08);
}

.submission-item h3 {
    color: #18243a;
    font-size: 19px;
}

.submission-item p {
    color: #64748b;
    line-height: 1.7;
}

.submission-confirmation {
    background: #dcfce7;
    color: #166534;
    padding: 8px 13px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 800;
}

.submission-notice {
    color: #64748b;
    font-size: 13px;
}

/* =========================================
   OFFICIAL COMPETITION RESULTS
========================================= */

#resultsPublicationStatus {
    color: #64748b;
    line-height: 1.7;
}

.participant-result-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #c51b32;
    border-radius: 12px;
    padding: 24px;
    margin-top: 20px;
}

.participant-result-card h3 {
    color: #b71932;
    font-size: 21px;
}

.participant-result-card h4 {
    color: #18243a;
}

.participant-result-card p {
    color: #526075;
    line-height: 1.8;
}

.participant-result-card strong {
    background: #fff0f1;
    color: #a71930;
    border: 1px solid #ffd7dc;
    border-radius: 9px;
    padding: 12px 17px;
}

/* =========================================
   FOOTER
========================================= */

body > footer {
    margin-top: 65px;
    padding: 35px 20px;
    background: #081326;
    border-top: 3px solid #c51b32;
    color: #d3dce8;
}

body > footer p:first-child {
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 7px;
}

body > footer p:last-child {
    color: #8794a8;
    font-size: 13px;
}

@media (max-width: 650px) {
    .my-submissions,
    .participant-results {
        padding: 23px;
    }

    .submission-item,
    .participant-result-card {
        padding: 17px;
    }
}
