/* 
TODO: Make more responsive
*/

@font-face {
	src: url('https://res.cloudinary.com/dr6lvwubh/raw/upload/v1529908256/CompressaPRO-GX.woff2'); /*font for regenesis text*/
	font-family:'Compressa VF';
	font-style: normal;
}

:root {
    --primary: #18213f;
    --primary-light: #243b8f;
    --accent: #fd5d2d;
    --bg: #0a0a0c;
    --text-light: #ffffff;
    --text-dark: #333333;
    --glass: rgba(255, 255, 255, 0.05);
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 64px;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg);
    color: var(--text-light);
    overflow-x: hidden;
    max-width: 100vw;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    z-index: 10;
}

/* --- hero section--- */
.hero {
    height: 100svh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-top: 120px;
    background: radial-gradient(circle at center, #1e2a5a 0%, #0a0a0c 100%);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(197,160,89,0.12), transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.04), transparent 40%);
    pointer-events: none;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(4rem, 15vw, 10rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px;
    line-height: 0.9;
    z-index: 2;
    text-align: center;
    text-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.hero-icon {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(140px, 14vw, 220px);
    height: auto;
    z-index: 2;
    display: block;
}

.hero-subtitle {
    font-size: 1.5rem;
    letter-spacing: 12px;
    color: var(--accent);
    text-transform: uppercase;
    margin-top: 20px;
    z-index: 2;
}

.hero-subtitle-small {
    font-family: 'Compressa VF', 'Montserrat', sans-serif;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.hero-subtitle-small span {
    display: inline-block;
    user-select: none;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    animation: bounce 4s infinite;
    color: var(--accent);
    cursor: pointer;
}

/* --- main dash container --- */
.app-container {
    min-height: 100vh;
    background:
        linear-gradient(
            to bottom right,
            #f3f4f7,
            #eceff4
        );
    color: var(--text-dark);
    display: grid;
    grid-template-columns: 350px 1fr;
}

/* --- sidenav --- */
.sidebar {
    background: var(--primary);
    color: white;
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header {
    padding: 40px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
}

.sidebar-header p {
    font-size: 0.7rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
}

.event-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 0;
}

.event-list::-webkit-scrollbar {
    width: 5px;
}

.event-list::-webkit-scrollbar-thumb {
    background: var(--accent);
}

.event-item {
    padding: 18px 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid transparent;
    opacity: 0.7;
    position: relative;
}

.event-item:hover {
    background: rgba(255, 255, 255, 0.05);
    opacity: 1;
    transform: translateX(6px);
}

.event-item.active {
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid transparent;
    opacity: 1;
}

.event-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 3px;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
}

.event-item .idx {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    width: 25px;
}

.event-item .name {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* --- main content --- */
.content {
    padding: 60px;
    max-width: 1600px;
    width: 100%;
}

.event-header {
    margin-bottom: 40px;
}

.club-tag {
    color: var(--accent);
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.event-title {
    font-size: 3.5rem;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
    margin: 10px 0;
    word-break: break-word;
}

.event-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    word-break: break-word;
}

.quick-stats {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid #ddd;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
}

.stat-item i {
    color: var(--accent);
}

/* --- dropdown/accordion section --- */ 
/* (since this has to be vanilla html/css... *sigh*) */
.accordion {
    margin-top: var(--space-md);
}

.accordion-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    margin-bottom: var(--space-sm);
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.accordion-item:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.accordion-header {
    padding: 22px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* zeus wuz here */
    cursor: pointer;
    font-weight: 700;
    color: var(--primary);
    background: transparent;
}

.accordion-content {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.accordion-item.open .accordion-content {
    padding: 25px 30px;
    max-height: 800px;
    opacity: 1;
    transform: translateY(0);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.accordion-item.open .fa-chevron-down {
    transform: rotate(180deg);
}

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

.rules-list li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.6;
}

.rules-list li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 900;
}

/* --- reg form --- */
.reg-card {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: var(--space-lg);
    border-radius: 20px;
    margin-top: var(--space-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255,255,255,0.6);
}

.reg-card-title {
    font-size: 1.8rem;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
    margin-bottom: var(--space-xs);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    row-gap: 24px;
    margin-top: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    height: 100%;
}

.form-group-span-2 {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    text-transform: none;
    font-size: 0.82rem;
    letter-spacing: 0.2px;
    color: #666;
}

input,
textarea,
select {
    padding: 14px 16px;

    border-radius: 14px;

    border: 1px solid rgba(24,33,63,0.08);

    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,1),
            rgba(248,249,252,1)
        );

    box-shadow:
        0 1px 2px rgba(0,0,0,0.02),
        inset 0 1px 0 rgba(255,255,255,0.7);

    font-family: inherit;
    font-size: 0.92rem;
    width: 100%;

    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        transform 0.15s;
}

input:hover,
textarea:hover,
select:hover {
    border-color: #d0d0d0;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(253,93,45,0.45);

    box-shadow:
        0 0 0 5px rgba(253,93,45,0.10),
        0 8px 24px rgba(253,93,45,0.08);

    transform: translateY(-1px);
}

.mobile-dropdown {
    display: none;
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
}

.mobile-dropdown option {
    color: var(--text-dark);
}

.participant-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 10px 15px;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.3s;
    flex: 1;
    min-width: fit-content;
}

.add-btn {
    background: rgba(197, 160, 89, 0.08);
    border: 1px dashed var(--accent);
    color: var(--primary);
    padding: 8px 15px;
}

.add-btn:hover {
    background: rgba(197, 160, 89, 0.15);
}

.rm-btn {
    background: transparent;
    border: 1.5px solid #e74c3c;
    color: #e74c3c;
    padding: 8px 15px;
}

.rm-btn:hover {
    background: rgba(231, 76, 60, 0.1);
}

.submit-btn {
    grid-column: span 2;
    padding: 20px;
    background:
        linear-gradient(
            135deg,
            #fd5d2d,
            #ff7b54
        );
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    box-shadow: 0 12px 30px rgba(17,28,78,0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 15px 35px rgba(253,93,45,0.35);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-top: 50px;
    margin-bottom: 24px;
    padding-top: 0;

    border-top: none;

    font-family: 'Playfair Display', serif;
    font-size: 1.55rem;
    color: var(--primary);
}

.section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background:
        linear-gradient(
            to right,
            rgba(24,33,63,0.15),
            transparent
        );
}

.participant-card {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    border-radius: 0;
    padding: 24px 0;
    margin-bottom: 0;
}

.participant-card-header {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* --- toast notif --- */
#toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(24, 33, 63, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    padding: 18px 25px;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(100px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

#toast.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

#toast i {
    color: #2ecc71;
    font-size: 1.5rem;
}

/* --- footer pill --- */
.beta-pill {
    background: rgba(24, 33, 63, 0.06);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    opacity: 0.4;
    transition: opacity 0.3s, background 0.3s;
    cursor: default;
}

.beta-pill:hover {
    opacity: 1;
    background: rgba(24, 33, 63, 0.1);
}

/* --- since phones exist --- */
@media (max-width: 1200px) {
    .app-container {
        grid-template-columns: 300px 1fr;
    }
    .content {
        padding: 40px;
    }
}
                                            /* zeus wuz here, and made 90% of this work*/
@media (max-width: 992px) {
    .app-container {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .content {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    .sidebar {
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .sidebar-header {
        padding: 30px 20px;
    }
    .event-list {
        display: none;
    }
    .mobile-dropdown {
        display: block;
    }
    .quick-stats {
        flex-wrap: wrap;
        gap: 15px;
    }
    .form-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px;
        margin-top: 15px;
    }
    .form-group-span-2,
    .submit-btn {
        width: 100%;
    }
    .participant-card {
        padding: 15px;
    }
    .section-title {
        margin-top: 20px;
        padding-top: 15px;
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(3rem, 20vw, 6rem);
    }
    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 8px;
        white-space: normal;
        text-align: center;
        padding: 0 10px;
    }
    .content {
        padding: 20px;
    }
    .event-title {
        font-size: 2.5rem;
    }
    .accordion-header {
        padding: 18px 20px;
    }
    .accordion-content {
        padding: 0 20px;
    }
    .accordion-item.open .accordion-content {
        padding: 20px;
    }
    .reg-card {
        padding: 25px;
    }
    .submit-btn {
        position: sticky;
        bottom: 20px;
        z-index: 100;
        width: 100%;
        margin-top: 30px;
    }
    .reg-card {
        border-radius: 0;
        margin-top: 0;
        box-shadow: none;
        border: none;
    }
}

/* --- form error msgs --- */
.form-error {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease-out;
}

.form-error::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.1rem;
}

.form-error.form-error::before {
    content: "\f06a";
    color: #e74c3c;
}

.form-error.form-warning::before {
    content: "\f071";
    color: #f39c12;
}

.form-error.form-error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #c0392b;
}

.form-error.form-warning {
    background: rgba(243, 156, 18, 0.1);
    border: 1px solid rgba(243, 156, 18, 0.3);
    color: #d68910;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- tuirnstile widget --- */
.turnstile-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
}

.turnstile-status {
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.turnstile-status.turnstile-success {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
}

.turnstile-status.turnstile-warning {
    background: rgba(243, 156, 18, 0.1);
    color: #d68910;
}

.turnstile-status.turnstile-error {
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
}

/* yes, we still care about mobile. responsive turnstile */
@media (max-width: 768px) {
    .turnstile-container {
        align-items: center;
    }
    
    .cf-turnstile {
        transform: scale(0.9);
        transform-origin: center;
    }
}
