/* ==========================================================================
   Major League Security – Stylesheet
   ==========================================================================
   Table of contents:
   1. Animation keyframes
   2. Reset & base typography
   3. Sticky wordmark bar
   4. Layout – panels
   5. Navigation (hero)
   6. Flex grid & columns
   7. Hero section
   8. Landing-page content blocks & section headings
   9. Mono labels & prize cards
   10. Buttons & CTAs
   11. Sign-up section overrides
   12. User bar (top-right name + logout)
   13. Project forms
   14. Project status display
   15. Team & invite section
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Animation keyframes
   -------------------------------------------------------------------------- */

@keyframes blinking {
    0%   { opacity: 100%; }
    50%  { opacity: 0%; }
    100% { opacity: 100%; }
}


/* --------------------------------------------------------------------------
   2. Reset & base typography
   -------------------------------------------------------------------------- */

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    background: black;
    font-family: system-ui;
    color: white;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    gap: 2vh;
}

h1 {
    position: absolute;
    top: 50%;
    left: 5%;
    width: 90%;
    transform: translateY(-50%);
    font-size: clamp(1rem, 8vw, 16rem);
    margin: 0;
    font-weight: 300;
    line-height: clamp(1rem, 8vw, 16rem);
}

h2 {
    font-size: 4rem;
    position: relative;
    font-weight: 300;
    top: 5%;
    left: 5%;
    margin-bottom: 3rem;
}

h3,
.section-heading {
    font-size: 2rem;
    font-weight: 700;
    border-left: 4px solid #e20000;
    padding-left: 1rem;
}

h3 {
    margin: 3rem 0 2rem 0;
}

.section-heading {
    margin: 6rem 0 2rem 0;
}

h4 {
    font-size: 2.5rem;
    font-weight: 500;
}

b {
    font-weight: 700;
}

p,
ul,
a {
    font-weight: 200;
    font-size: 1.5rem;
    color: white;
}


/* --------------------------------------------------------------------------
   3. Sticky wordmark bar
   -------------------------------------------------------------------------- */

#wordmark-wrapper {
    position: fixed;
    top: 0;
    left: 5%;
    width: 95%;
    height: 60px;
    background-color: black;
    z-index: 1000;
    display: flex;
    align-items: center;
}

#wordmark {
    font-weight: 300;
    margin-left: 1rem;
    line-height: 1;
    text-decoration: none;
}


/* --------------------------------------------------------------------------
   4. Layout – panels
   -------------------------------------------------------------------------- */

.panel {
    margin: 1vh 1vw;
    position: relative;
}

.panel > p,
.panel > ul,
.panel > a {
    position: inherit;
    width: 90%;
    left: 5%;
}


/* --------------------------------------------------------------------------
   5. Navigation (hero)
   -------------------------------------------------------------------------- */

nav {
    position: absolute;
    display: flex;
    top: 90%;
    left: 5%;
    width: 90%;
}

nav a {
    text-align: right;
    font-size: clamp(0.5rem, 2vw, 1.5rem);
    position: relative;
    width: 31%;
    border-top: 2px solid #e20000;
    color: white;
    text-decoration: none;
    font-family: monospace;
}

nav :not(:last-child) {
    margin-right: 2%;
}


/* --------------------------------------------------------------------------
   6. Flex grid & columns
   -------------------------------------------------------------------------- */

.flexwrapper {
    position: inherit;
    width: 90%;
    left: 5%;
    display: flex;
}

.flexwrapper > :first-child {
    padding-right: 1.5%;
}

.flexwrapper > :not(:last-child):not(:first-child) {
    padding: 0px 1.5%;
}

.flexwrapper > :last-child {
    padding-left: 1.5%;
}

.columns {
    position: inherit;
    margin: 2rem 0;
}

.columns > * {
    width: 95%;
    left: 2.5%;
    margin: 0;
    padding: 0;
    text-align: center;
    position: inherit;
}

.columns > .column-text {
    margin: 20px 0;
}

.column-date {
    font-size: 1rem;
}

.thirtywidth {
    width: 30%;
}

.seventeenwidth {
    width: 17%;
}

.vertical-line > :not(:last-child) {
    background:
        linear-gradient(#e20000, #e20000) right 20% / 1px calc(100% - 20%) no-repeat;
}


/* --------------------------------------------------------------------------
   7. Hero section
   -------------------------------------------------------------------------- */

#hero {
    min-height: 98vh;
}

.flag-img {
    height: 1em;
    width: 1em;
    vertical-align: -0.12em;
    margin: 0 0.15em;
}

.blinking {
    animation: blinking 1s infinite;
}


/* --------------------------------------------------------------------------
   8. Landing-page content blocks & section headings
   -------------------------------------------------------------------------- */

/* .section-heading base styles are combined with h3 in section 2. */
/* Only margin differs: h3 = 3rem top, .section-heading = 6rem top. */


/* --------------------------------------------------------------------------
   9. Mono labels & prize cards
   -------------------------------------------------------------------------- */

.mono-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #e20000;
    font-family: monospace;
    margin-bottom: 0.25rem;
}

#prizes .mono-label {
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.prize-amount {
    font-size: 3rem;
    font-weight: 700;
    border-top: 2px solid #e20000;
    padding-top: 0.5rem;
}


/* --------------------------------------------------------------------------
   10. Buttons & CTAs
   -------------------------------------------------------------------------- */

.cta-button {
    font-size: 1.5rem;
    font-weight: 700;
    color: black;
    background-color: #e20000;
    text-decoration: none;
    padding: 0.75rem 2rem;
    font-family: monospace;
    border: none;
    display: inline-block;
}

.cta-button:hover {
    background-color: white;
}

.cta-button-outline {
    background-color: transparent;
    color: #e20000;
    box-shadow: inset 0 0 0 2px #e20000;
}

.cta-button-outline:hover {
    background-color: #e20000;
    color: black;
}

.cta-button-danger {
    background-color: transparent;
    color: #aaa;
    border: 1px solid #555;
    font-size: 1rem;
    padding: 0.5rem 1.5rem;
}

.cta-button-danger:hover {
    border-color: #e20000;
    color: #e20000;
    background-color: transparent;
}

.cta-button[disabled],
.cta-button-outline[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.cta-sub {
    font-size: 1rem;
    color: #aaa;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.redbackground {
    background-color: #e20000;
}

.redbackground .cta-button {
    padding: 0.75rem 0;
}

.redbackground .cta-button:hover {
    background-color: #e20000;
}


/* --------------------------------------------------------------------------
   11. Sign-up section overrides
   -------------------------------------------------------------------------- */

/* Clears the vertical-line gradient backgrounds from children in #signup. */
#signup > * {
    background: unset;
}


/* --------------------------------------------------------------------------
   12. User bar (top-right name + logout)
   -------------------------------------------------------------------------- */

.user-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
}

.user-bar-name {
    font-size: 0.95rem;
    color: #aaa;
}

.user-bar-logout {
    font-size: 0.95rem;
    color: #e20000;
    text-decoration: none;
    font-family: monospace;
    font-weight: 700;
}

.user-bar-logout:hover {
    color: white;
}


/* --------------------------------------------------------------------------
   13. Project forms
   -------------------------------------------------------------------------- */

.countdown-banner {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e20000;
    font-family: monospace;
    padding: 2rem 0 0.75rem 0;
    width: 90%;
    margin-left: 5%;
}

.panel form {
    width: 90%;
    margin-left: 5%;
}

.panel form label {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 1.5rem 0 0.5rem 0;
    color: #aaa;
}

.panel form input[type="text"],
.panel form textarea {
    width: 100%;
    box-sizing: border-box;
    background: #111;
    color: white;
    border: 1px solid #333;
    padding: 0.75rem;
    font-size: 1.25rem;
    font-family: system-ui;
}

.panel form input[type="text"]:focus,
.panel form textarea:focus {
    outline: none;
    border-color: #e20000;
}

.panel form input[disabled],
.panel form textarea[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    background: #0a0a0a;
}

.panel form input[type="file"] {
    color: #aaa;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.panel form input[type="file"]::file-selector-button {
    font-size: 1rem;
    font-weight: 700;
    color: black;
    background-color: #e20000;
    padding: 0.5rem 1.5rem;
    font-family: monospace;
    border: none;
    cursor: pointer;
    margin-right: 1rem;
}

.panel form input[type="file"]::file-selector-button:hover {
    background-color: white;
}

.panel form p {
    font-size: 1.1rem;
    color: #aaa;
    margin: 0.5rem 0;
}

.panel form p a {
    font-size: inherit;
}

.panel form h3 + label {
    margin-top: 0.5rem;
}

.panel form fieldset {
    border: 1px solid #333;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0 0.5rem 0;
}

.panel form fieldset legend {
    font-size: 1.1rem;
    font-weight: 500;
    color: #aaa;
    padding: 0 0.5rem;
}

.panel form fieldset label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.75rem 0;
    font-size: 1.1rem;
    color: white;
    cursor: pointer;
}

.panel form input[type="radio"] {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: #e20000;
    flex-shrink: 0;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.terms-checkbox {
    margin-top: 1.5rem;
}

.terms-checkbox label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: #aaa;
    cursor: pointer;
}

.terms-checkbox a {
    font-size: inherit;
}

.terms-checkbox input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: #e20000;
    flex-shrink: 0;
}

.category-quota-info {
    font-size: 0.9rem;
    color: #888;
    font-weight: 400;
    margin: 0.25rem 0;
}

.category-quota-full {
    font-size: 0.9rem;
    color: #e20000;
    font-weight: 700;
    font-family: monospace;
    margin: 0.25rem 0;
}

.category-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}


/* --------------------------------------------------------------------------
   13. Project status display
   -------------------------------------------------------------------------- */

.submitted-info {
    width: 90%;
    margin-left: 5%;
    margin-bottom: 1.5rem;
}

.submitted-badge {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    font-family: monospace;
    color: black;
    background-color: #e20000;
    padding: 0.25rem 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.submitted-details {
    font-size: 0.9rem;
    color: #aaa;
    margin-top: 0.25rem;
}

.last-modified-info {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
    margin-bottom: 1rem;
}

.pdf-download-link {
    color: #e20000;
    text-decoration: underline;
    font-weight: 500;
}

.pdf-download-link:hover {
    color: white;
}


/* --------------------------------------------------------------------------
   15. Team & invite section
   -------------------------------------------------------------------------- */

.invite-section {
    width: 90%;
    margin-left: 5%;
    margin-top: 1rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
    padding-bottom: 2rem;
    border-bottom: 1px solid #333;
}

.invite-section h3:first-child {
    margin-top: 0;
}

.invite-section form {
    width: auto;
    margin-left: 0;
}

.invite-link-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.75rem;
}

.invite-link-box code {
    background: #111;
    border: 1px solid #333;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    color: white;
    flex: 1;
    overflow-x: auto;
}

.invite-link-box .cta-button {
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

.member-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.member-list li {
    font-size: 1.1rem;
    font-weight: 400;
    padding: 0.35rem 0;
    border-bottom: 1px solid #222;
}

.leave-form {
    margin-top: 1.5rem;
}
