/* Early 2000s “bro site” theme (simple + readable) */
body {
    background:
        radial-gradient(circle at 12% 18%, rgba(255,255,255,0.9) 0 1px, rgba(0,0,0,0) 2px),
        radial-gradient(circle at 72% 30%, rgba(255,255,255,0.7) 0 1px, rgba(0,0,0,0) 2px),
        radial-gradient(circle at 40% 72%, rgba(255,255,255,0.55) 0 1px, rgba(0,0,0,0) 2px),
        radial-gradient(circle at 88% 78%, rgba(255,255,255,0.6) 0 1px, rgba(0,0,0,0) 2px),
        radial-gradient(circle at 22% 86%, rgba(255,255,255,0.4) 0 1px, rgba(0,0,0,0) 2px),
        radial-gradient(circle at 55% 48%, rgba(255,255,255,0.35) 0 1px, rgba(0,0,0,0) 2px),
        radial-gradient(1200px 700px at 20% 10%, rgba(120, 70, 255, 0.22), rgba(0,0,0,0) 60%),
        radial-gradient(900px 600px at 80% 20%, rgba(0, 220, 255, 0.16), rgba(0,0,0,0) 55%),
        radial-gradient(1000px 700px at 70% 90%, rgba(255, 60, 180, 0.12), rgba(0,0,0,0) 55%),
        linear-gradient(180deg, #070a14 0%, #0a1022 50%, #05070f 100%);
    font-family: "Verdana", "Tahoma", "Arial", sans-serif;
    color: #e8ecff;
    margin: 0;
    padding: 16px;
    min-height: 100vh;
}

/* Animations (keep super minimal; no neon/rainbow) */
@keyframes marquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.75; }
    100% { opacity: 1; }
}

@keyframes slowSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Common Components */
.drafter-container {
    max-width: 1400px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 30px;
}

.page-title {
    font-size: 42px;
    font-weight: 800;
    color: #d7dcff;
    margin: 0 0 6px 0;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(120, 70, 255, 0.35), 0 0 18px rgba(0, 220, 255, 0.18);
}

.drafter-header-icon {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 6px;
    margin: 0 10px;
    vertical-align: middle;
    border: 1px solid rgba(255,255,255,0.22);
    box-shadow: 0 0 10px rgba(0, 220, 255, 0.12);
    animation: slowSpin 12s linear infinite;
}

.page-subtitle {
    font-size: 16px;
    color: rgba(232, 236, 255, 0.82);
    margin: 0;
}

.marquee {
    background: linear-gradient(90deg, rgba(120, 70, 255, 0.22), rgba(0, 220, 255, 0.14), rgba(255, 60, 180, 0.12));
    color: #e8ecff;
    padding: 8px 10px;
    margin: 12px 0 18px;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,0.18);
    border-top-color: rgba(255,255,255,0.28);
    border-left-color: rgba(255,255,255,0.28);
}

.marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 15s linear infinite;
}

.hit-counter {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: rgba(232, 236, 255, 0.7);
}

/* Buttons */
.drafter-btn {
    background: linear-gradient(180deg, rgba(255,255,255,0.16) 0%, rgba(120,70,255,0.14) 55%, rgba(0,220,255,0.12) 100%);
    border: 1px solid rgba(255,255,255,0.18);
    border-top-color: rgba(255,255,255,0.28);
    border-left-color: rgba(255,255,255,0.28);
    color: #e8ecff;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-family: "Verdana", "Tahoma", "Arial", sans-serif;
}

.drafter-btn:hover {
    background: linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(120,70,255,0.18) 55%, rgba(0,220,255,0.16) 100%);
    border-color: rgba(0, 220, 255, 0.35);
}

.drafter-btn:active {
    border-top-color: rgba(255,255,255,0.14);
    border-left-color: rgba(255,255,255,0.14);
    border-bottom-color: rgba(255,255,255,0.28);
    border-right-color: rgba(255,255,255,0.28);
}

/* Form Elements */
.drafter-input {
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.18);
    border-top-color: rgba(255,255,255,0.12);
    border-left-color: rgba(255,255,255,0.12);
    color: #e8ecff;
    padding: 6px 8px;
    border-radius: 0;
    font-family: "Verdana", "Tahoma", "Arial", sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.drafter-input:focus {
    outline: none;
    border-color: rgba(0, 220, 255, 0.55);
    box-shadow: 0 0 0 2px rgba(0, 220, 255, 0.18);
}

.drafter-label {
    color: rgba(232, 236, 255, 0.9);
    font-weight: 700;
    margin-bottom: 5px;
    display: block;
}

/* Cards */
.drafter-card {
    background: rgba(8, 12, 24, 0.72);
    border: 1px solid rgba(255,255,255,0.18);
    border-top-color: rgba(255,255,255,0.28);
    border-left-color: rgba(255,255,255,0.28);
    border-radius: 0;
    padding: 16px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.drafter-card::before {
    content: none;
}

.drafter-card:hover {
    background: rgba(10, 16, 34, 0.78);
}

/* Tables */
.drafter-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255,255,255,0.18);
}

.drafter-table th,
.drafter-table td {
    padding: 8px;
    text-align: left;
    border: 1px solid rgba(255,255,255,0.14);
    color: #e8ecff;
}

.drafter-table th {
    background: linear-gradient(180deg, rgba(120,70,255,0.22), rgba(0,220,255,0.12));
    color: #e8ecff;
    font-weight: 800;
}

.drafter-table tr:hover {
    background: rgba(255,255,255,0.06);
}

/* Current Drafter Highlight */
.current-drafter {
    background: rgba(0, 220, 255, 0.14) !important;
    color: #e8ecff !important;
    font-weight: bold;
    animation: pulse 1.5s ease-in-out infinite;
    outline: 2px solid rgba(0, 220, 255, 0.45);
}

/* Welcome Container */
.welcome-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 12% 18%, rgba(255,255,255,0.9) 0 1px, rgba(0,0,0,0) 2px),
        radial-gradient(circle at 72% 30%, rgba(255,255,255,0.7) 0 1px, rgba(0,0,0,0) 2px),
        radial-gradient(circle at 40% 72%, rgba(255,255,255,0.55) 0 1px, rgba(0,0,0,0) 2px),
        radial-gradient(1200px 700px at 20% 10%, rgba(120, 70, 255, 0.22), rgba(0,0,0,0) 60%),
        radial-gradient(900px 600px at 80% 20%, rgba(0, 220, 255, 0.16), rgba(0,0,0,0) 55%),
        linear-gradient(180deg, #070a14 0%, #0a1022 50%, #05070f 100%);
}

.welcome-card {
    background: rgba(8, 12, 24, 0.75);
    border: 1px solid rgba(255,255,255,0.18);
    border-top-color: rgba(255,255,255,0.28);
    border-left-color: rgba(255,255,255,0.28);
    border-radius: 0;
    padding: 24px;
    text-align: center;
    max-width: 560px;
    width: 100%;
}

.app-title {
    font-size: 3rem;
    font-weight: bold;
    color: #d7dcff;
    text-shadow: 0 0 10px rgba(120, 70, 255, 0.35), 0 0 18px rgba(0, 220, 255, 0.18);
    margin-bottom: 1rem;
}

.app-subtitle {
    color: rgba(232, 236, 255, 0.8);
    font-size: 14px;
    margin-bottom: 2rem;
}

.create-league-btn {
    background: linear-gradient(180deg, rgba(255,255,255,0.16) 0%, rgba(120,70,255,0.14) 55%, rgba(0,220,255,0.12) 100%);
    border: 1px solid rgba(255,255,255,0.18);
    border-top-color: rgba(255,255,255,0.28);
    border-left-color: rgba(255,255,255,0.28);
    color: #e8ecff;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.create-league-btn:hover {
    background: linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(120,70,255,0.18) 55%, rgba(0,220,255,0.16) 100%);
    border-color: rgba(0, 220, 255, 0.35);
    color: #e8ecff;
}

/* Custom modal (theme-matching; used by Index.cshtml) */
.drafter-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.drafter-modal.is-open {
    display: flex;
}

.drafter-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
}

.drafter-modal-dialog {
    position: relative;
    width: min(520px, calc(100vw - 32px));
    background: rgba(8, 12, 24, 0.88);
    border: 1px solid rgba(255,255,255,0.20);
    border-top-color: rgba(255,255,255,0.30);
    border-left-color: rgba(255,255,255,0.30);
    box-shadow:
        0 14px 40px rgba(0,0,0,0.55),
        0 0 0 2px rgba(120, 70, 255, 0.18),
        0 0 0 5px rgba(0, 220, 255, 0.10);
}

.drafter-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: linear-gradient(90deg, rgba(120, 70, 255, 0.24), rgba(0, 220, 255, 0.14));
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.drafter-modal-title {
    font-weight: 800;
    color: #e8ecff;
}

.drafter-modal-body {
    padding: 14px;
}

/* Global Home / Start Over bar */
.drafter-homebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 12px;
    display: flex;
    justify-content: center;
    background: linear-gradient(90deg, rgba(8, 12, 24, 0.92), rgba(12, 18, 40, 0.92));
    border-top: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.45);
    z-index: 9998;
}
