﻿/* =========================
GLOBAL RESET
========================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;

    background: #000;
    color: #fff;

    font-family: Arial, sans-serif;

    min-height: 100vh;
}
.search-row{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
    width:100%;
    margin:25px 0;
}
/* =========================
LINKS
========================= */

a {
    color: #00e5ff;
    text-decoration: none;
    transition: .2s ease;
}

a:hover {
    color: #fff;
    text-shadow: 0 0 8px #00e5ff;
}

/* =========================
PUBLIC HEADER
========================= */

.site-header {
    width: 100%;

    background: #050505;

    border-bottom: 1px solid #222;

    box-shadow: 0 2px 12px rgba(0,0,0,.6);
}
.site-title {
    text-align: center;

    padding: 22px 10px 12px;

    font-size: 32px;
    font-weight: bold;
}

.site-title a {
    color: #fff;
}

.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    gap: 20px;

    padding: 12px 20px 18px;
}

.main-nav a {
    font-size: 16px;
    font-weight: 600;
}

.main-nav a.active {
    color: #fff;
    text-shadow: 0 0 10px #00e5ff;
}

/* =========================
ADMIN LAYOUT
========================= */

.admin-sidebar {
    position: fixed;

    top: 0;
    left: 0;

    width: 240px;
    height: 100vh;

    background: #050505;

    border-right: 1px solid #222;

    padding: 20px;

    overflow-y: auto;

    z-index: 1000;
}

.admin-content {
    margin-left: 260px;

    width: calc(100% - 260px);

    padding: 30px;

    box-sizing: border-box;

    position: relative;
}

/* =========================
SIDEBAR
========================= */

.admin-logo {
    font-size: 28px;
    font-weight: bold;

    margin-bottom: 25px;

    text-align: center;
}

.sidebar-section {
    margin-bottom: 28px;
}

.sidebar-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;

    color: #666;

    margin-bottom: 10px;
}

.sidebar-link {
    display: block;

    padding: 10px 12px;

    border-radius: 8px;

    margin-bottom: 6px;

    color: #ddd;
}

.sidebar-link:hover {
    background: #111;
}

/* =========================
PAGE WRAP
========================= */

.page-wrap {
    padding: 25px;
}

/* =========================
HEADINGS
========================= */

.page-title {
    font-size: 36px;
    font-weight: bold;

    margin-bottom: 10px;
}

.page-subtitle {
    display: block;
    width: 100%;
    text-align: center;
    color: #888;
    margin: 10px 0 30px 0;
    position: static !important;
    float: none !important;
    left: auto !important;
    right: auto !important;
}
.section-title {
    font-size: 24px;
    font-weight: bold;

    margin-bottom: 18px;
}
.round-row {
    display: flex;

    justify-content: center;

    gap: 12px;

    width: 100%;

    margin-bottom: 12px;
}


.board {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;

    overflow-x: auto;
    overflow-y: hidden;

    width: 100%;
    max-width: 100%;

    box-sizing: border-box;

    padding-bottom: 20px;
}

/* =========================
CARDS
========================= */

.card {
    background: #111;

    border: 1px solid #222;

    border-radius: 14px;

    padding: 24px;

    box-sizing: border-box;
}

.home-grid,
.season-grid,
.player-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));

    gap: 20px;
}
.season-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(320px, 420px));

    gap: 24px;

    margin-top: 25px;

    justify-content: center;
}
/* =========================
SEASON CARDS
========================= */

.season-card {
    background: #111;

    border: 1px solid #222;

    border-radius: 14px;

    padding: 24px;

    box-sizing: border-box;

    transition: .2s ease;

    box-shadow:
        0 0 18px rgba(0,0,0,.35);
        
}

.season-card:hover {
    border-color: #333;

    transform: translateY(-2px);

    box-shadow:
        0 0 22px rgba(0,255,204,.08);
}

.season-card h2 {
    margin-top: 0;

    margin-bottom: 14px;

    font-size: 24px;

    color: #fff;
}

.season-card p {
    color: #999;

    line-height: 1.6;

    margin-bottom: 22px;
}


/* =========================
FANTASY TEAMS
========================= */

.team-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(320px, 420px));

    gap: 20px;

    margin-top: 20px;

    justify-content: center;
}
.team-card {
    background: #111;

    border: 1px solid #333;

    border-radius: 12px;

    padding: 20px;

    text-align: center;
}

.team-logo {
    width: 90px;
    height: 90px;

    object-fit: cover;

    border-radius: 50%;

    background: #222;

    margin-bottom: 15px;
}

.team-card .team-name {
    font-size: 22px;
    font-weight: bold;

    margin-bottom: 15px;
}

.team-btn {
    display: inline-block;

    padding: 10px 18px;

    background: #0a84ff;

    color: #fff;

    border-radius: 8px;
}

.team-btn:hover {
    background: #3395ff;
}

/* =========================
BUTTONS
========================= */

.btn,
.action-btn,
.confirm-btn,
.login-btn,
.register-btn {
    display: inline-block;

    padding: 12px 18px;

    border: none;

    border-radius: 8px;

    font-weight: bold;

    cursor: pointer;

    transition: .2s ease;
}

.btn:hover,
.action-btn:hover,
.confirm-btn:hover,
.login-btn:hover,
.register-btn:hover {
    transform: translateY(-1px);
}

.primary {
    background: #0099ff;
    color: #fff;
}

.success {
    background: #008f5f;
    color: #fff;
}

.warning {
    background: #996600;
    color: #fff;
}

.danger,
.confirm-btn {
    background: #8b0000;
    color: #fff;
}

/* =========================
FORMS
========================= */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    color: #bbb;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    padding: 14px;

    background: #000;

    border: 1px solid #333;

    border-radius: 10px;

    color: #fff;

    font-size: 16px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00ffcc;
}

/* =========================
TABLES
========================= */

table {
    width: 100%;

    border-collapse: collapse;

    background: #111;
}

th,
td {
    padding: 12px;

    border-bottom: 1px solid #222;

    text-align: center;
}

th {
    background: #1a1a1a;

    color: #00ffcc;
}

tr:hover {
    background: #151515;
}

/* =========================
MESSAGES
========================= */

.success {
    background: #113311;

    border: 1px solid #00aa55;

    padding: 16px;

    border-radius: 10px;

    margin-bottom: 20px;
}

.error {
    background: #330000;

    border: 1px solid #aa0000;

    padding: 16px;

    border-radius: 10px;

    margin-bottom: 20px;
}

.warning-box {
    background: #2a0000;

    border: 1px solid #ff0000;

    padding: 24px;

    border-radius: 10px;

    margin-bottom: 25px;
}

.notice-box {
    background: #111;

    border: 1px solid #333;

    padding: 20px;

    border-radius: 10px;
}

/* =========================
PLAYER LIST
========================= */
.player-left{
    display:flex;
    align-items:center;
    gap:12px;
    flex:1;
}

.draft-btn,
.drafted-btn{
    flex-shrink:0;
}
.player-list{
    width:100%;
    max-width:700px;
    margin:25px auto;
}
player-row:hover {
    background: #111;
}

.player-left{
    display:flex;
    align-items:center;
    gap:12px;
    flex:1;
}

.draft-btn,
.drafted-btn{
    flex-shrink:0;
}
.player-img {
    width: 48px;
    height: 48px;

    border-radius: 8px;

    object-fit: cover;
}

.player-meta {
    font-size: 13px;
    color: #999;
}

/* =========================
FOOTER
========================= */

.footer {
    margin-top: 40px;

    text-align: center;

    color: #666;

    font-size: 13px;
    
    width: 100% !important;

    max-width: 100% !important;

    margin: 0 !important;

    padding-left: 40px !important;

    padding-right: 40px !important;

    box-sizing: border-box !important;


}
/* =========================
MENU BUTTON
========================= */

.menu-toggle {

    display: block;

    width: 100%;

    max-width: 250px;

    margin: 15px auto;

    padding: 12px;

    border: none;

    border-radius: 8px;

    background: #111;

    color: #fff;

    font-size: 18px;

    font-weight: bold;

    cursor: pointer;

}

/* =========================
DROPDOWN NAV
========================= */

.main-nav {

    max-width: 1000px;

    margin: 0 auto 20px;

    background: #111;

    border-radius: 10px;

    overflow: hidden;

    display: grid;

    grid-template-columns:
        repeat(
            2,
            1fr
        );

}
.main-nav a {

    display: block;

    padding: 14px;

    border-bottom: 1px solid #222;

    border-right: 1px solid #222;

}
.main-nav a:last-child {

    border-bottom: none;

}

.menu-hidden {

    display: none;

}

.menu-visible {

    display: grid;

    grid-template-columns:
        repeat(
            2,
            1fr
        );

}

/* =========================
MOBILE
========================= */

@media (max-width: 700px) {

    .main-nav {

        grid-template-columns:
            1fr;

    }

}

@media (max-width: 900px) {

    .admin-sidebar {
        position: relative;

        width: 100%;
        height: auto;

        border-right: none;
        border-bottom: 1px solid #222;
    }

    .admin-content {
        margin-left: 0;
        width: 100%;
    }

    .main-nav {
        gap: 12px;
    }

}

/* =========================
EMPTY STATES
========================= */

.empty-roster {
    margin-top: 20px;

    padding: 25px;

    background: #111;

    border: 1px solid #222;

    border-radius: 12px;

    color: #888;

    font-size: 18px;

    text-align: center;

    max-width: 700px;
}
/* =========================
STANDINGS TABLE
========================= */

.standings-wrap {
    max-width: 950px;

    margin: 25px auto;
}

.standings-table {
    width: 100%;

    border-collapse: collapse;

    background: #111;

    border: 1px solid #222;

    border-radius: 14px;

    overflow: hidden;
}

.standings-table th {
    background: #0d0d0d;

    color: #00e5ff;

    padding: 14px 10px;

    font-size: 13px;

    text-transform: uppercase;

    letter-spacing: 1px;

    border-bottom: 1px solid #222;
}

.standings-table td {
    padding: 14px 10px;

    border-bottom: 1px solid #1d1d1d;

    text-align: center;

    color: #ddd;

    font-size: 15px;
}

.standings-table tr:hover {
    background: #151515;
}

.standings-table tr:last-child td {
    border-bottom: none;
}

/* TEAM COLUMN */

.standings-table td.team-name,
.standings-table th.team-name {
    text-align: left;

    padding-left: 18px;

    font-weight: bold;

    width: 40%;
}

/* RANK COLUMN */

.standings-table td.rank-col,
.standings-table th.rank-col {
    width: 70px;
}
/* TEAM COLUMN */

.standings-table td.team-name {
    text-align: left;

    font-weight: bold;

    color: #fff;
}
/* =========================
DRAFT TIMER BUTTONS
========================= */

.controls {
    display: flex;

    justify-content: center;

    gap: 10px;

    margin-top: 12px;
}

.controls button {
    padding: 10px 16px;

    background: #111;

    border: 1px solid #333;

    border-radius: 8px;

    color: #fff;

    font-size: 14px;

    font-weight: bold;

    cursor: pointer;

    transition: .2s ease;
}

.controls button:hover {
    background: #1b1b1b;

    border-color: #00e5ff;

    color: #00e5ff;

    transform: translateY(-1px);
}

.controls button:active {
    transform: scale(.98);
}
/* =========================
NEXT PICK
========================= */

.next-pick {
    background: #002b36 !important;

    border: 2px solid #00e5ff;

    box-shadow: 0 0 14px rgba(255,0,0,.7);

    color: #fff !important;
    
    
}

.next-pick .team-name,
.next-pick .pick-num,
.next-pick .next-label {
    color: #fff !important;
}

.next-label {
    color: #ff4d4d;

    font-size: 13px;

    font-weight: bold;

    margin-bottom: 6px;
}
/* =========================
PLAYER RANKINGS
========================= */
@media (max-width: 900px) {

    .ranking-card {
        width: 100%;
    }

}

.ranking-columns {
    display: flex;

    flex-wrap: wrap;

    gap: 20px;

    margin-bottom: 40px;
}
.ranking-card {
    width: calc(50% - 10px);

    display: flex;

    align-items: center;

    gap: 16px;

    background: #111;

    border: 1px solid #222;

    border-radius: 12px;

    padding: 18px;

    color: #fff;

    box-sizing: border-box;

    min-height: 90px;
}

.ranking-num {
    width: 44px;
    height: 44px;

    border-radius: 50%;

    background: #00e5ff;

    color: #000;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: bold;

    flex-shrink: 0;
}

.ranking-info {
    display: flex;

    flex-direction: column;
}

.ranking-name {
    font-size: 20px;

    font-weight: bold;

    color: #fff;
}

.ranking-meta {
    color: #999;

    font-size: 14px;

    margin-top: 4px;
}

/* =========================
TOP PICKS
========================= */

.ranking-columns {
    display: flex;

    flex-wrap: wrap;

    gap: 18px;

    margin-bottom: 40px;
}

.ranking-card {
    width: calc(50% - 9px);

    display: flex;

    align-items: center;

    gap: 16px;

    background: #111;

    border: 1px solid #222;

    border-radius: 12px;

    padding: 18px;

    color: #fff;

    box-sizing: border-box;
}

.ranking-num {
    width: 44px;
    height: 44px;

    border-radius: 50%;

    background: #00e5ff;

    color: #000;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: bold;

    flex-shrink: 0;
}

.ranking-info {
    flex: 1;
}

.ranking-name {
    font-size: 19px;

    font-weight: bold;

    margin-bottom: 4px;
}

.ranking-meta {
    color: #999;

    font-size: 14px;
}

/* STATUS */

.status-form {
    margin-left: auto;
}

.status-btn {
    width: 42px;
    height: 42px;

    border-radius: 8px;

    border: 1px solid #333;

    background: #0d0d0d;

    color: #fff;

    font-size: 22px;

    font-weight: bold;

    cursor: pointer;

    transition: .2s ease;
}

.status-btn.check {
    background: #004d2b;

    border-color: #00cc66;

    color: #00ff88;
}

.status-btn.x {
    background: #4d0000;

    border-color: #ff3333;

    color: #ff6666;
}

.status-btn:hover {
    transform: scale(1.05);
}

.page-wrap{
    margin-left:240px;
    padding:30px;
}

.player-name{
    font-size:18px;
    line-height:1.1;
    word-break:break-word;
    overflow-wrap:break-word;
    white-space:normal;
    max-width:100%;
}

.mobile-menu-btn {
    display: none;
}

@media (max-width: 900px) {

    .page-wrap {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px !important;
        box-sizing: border-box !important;
    }

    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        width: calc(100% - 30px);
        margin: 10px auto;
        padding: 12px;
        background: #222;
        color: #fff;
        border: 1px solid #444;
        border-radius: 10px;
        font-size: 18px;
        font-weight: bold;
        cursor: pointer;
    }

}
.mobile-menu-btn {
    display: none !important;
}

@media (max-width: 900px) {

    .mobile-menu-btn {
        display: block !important;
        width: calc(100% - 30px);
        margin: 10px auto;
        padding: 12px;

        background: #222;
        color: #fff;

        border: 1px solid #444;
        border-radius: 10px;

        font-size: 18px;
        font-weight: bold;

        cursor: pointer;

        position: relative;
        z-index: 10001;
    }

}

@media (max-width: 768px) {

    /* =========================
       LOGIN
    ========================= */

    .login-title {
        font-size: 42px !important;
        line-height: 1.1 !important;
    }

    .login-subtitle {
        font-size: 18px !important;
    }

    .form-group label {
        font-size: 16px !important;
    }

    .login-card input {
        font-size: 18px !important;
        padding: 14px !important;
    }

    .login-btn {
        font-size: 20px !important;
        padding: 16px !important;
    }

    /* =========================
       SETTINGS / PAGE LAYOUT
    ========================= */

    .page-wrap {
        margin-left: 0 !important;
        padding-left: 0 !important;

        width: 100% !important;
        max-width: 100% !important;

        overflow-x: auto !important;
    }

    .settings-wrap {
        width: 100% !important;
        max-width: 100% !important;

        margin: 0 !important;
        padding: 20px 12px !important;

        display: block !important;

        overflow-x: auto !important;
    }

    .settings-card {
        width: 100% !important;
        max-width: 100% !important;

        margin: 0 auto !important;

        padding: 20px !important;

        box-sizing: border-box !important;
    }

    /* =========================
       MOBILE NAV
    ========================= */

    .main-nav {
    display: none;

    flex-direction: column;

    width: 100%;

    background: #000;

    padding: 15px 0;

    margin-top: 20px;
}
    /* =========================
       DRAFT TOP
    ========================= */

    .onclock,
    .draft-status,
    .clock-wrap,
    .timer-wrap {
        width: 100% !important;

        text-align: center !important;

        margin: 0 auto 20px auto !important;
    }

    .team,
    .onclock-team {
        font-size: 34px !important;
        line-height: 1.1 !important;
    }

    #timer,
    .timer {
        font-size: 64px !important;
        line-height: 1 !important;

        margin-top: 10px !important;
    }

}
html,
body {
    overflow-x: auto !important;
}
.login-register-link {

    margin-top: 24px;

    text-align: center;

    font-size: 18px;

    font-weight: 600;

    color: #ddd;
}

.login-register-link a {

    display: inline-block;

    margin-left: 6px;

    padding: 10px 16px;

    background: #00e5ff;

    color: #000;

    border-radius: 10px;

    text-decoration: none;

    font-weight: 700;

    transition: .15s;
}

.login-register-link a:hover {

    transform: translateY(-2px);

    box-shadow:
        0 0 14px rgba(0,229,255,.45);
}
/* =========================
PROFILE TEAM LOGO
========================= */
.team-logo-preview {
    width: 160px;
    height: 160px;

    object-fit: cover;

    border-radius: 14px;

    border: 2px solid #222;

    box-shadow: 0 0 18px rgba(0,0,0,.5);

    display: block;

    margin-top: 10px;
}
.team-logo-preview {
    width: 160px;
    height: 160px;

    object-fit: cover;

    border-radius: 14px;

    border: 2px solid #3b82f6;

    box-shadow:
        0 0 12px rgba(59,130,246,.7),
        0 0 28px rgba(59,130,246,.45);

    display: block;

    margin-top: 10px;
}
.active-logo {
    border: 2px solid #3b82f6 !important;

    box-shadow:
        0 0 12px rgba(59,130,246,.9),
        0 0 28px rgba(59,130,246,.7) !important;

    transform: scale(1.05);

    opacity: 1 !important;
}
.selectable-logo.active-logo {
    border: 3px solid #3b82f6 !important;

    box-shadow:
        0 0 12px rgba(59,130,246,.9),
        0 0 28px rgba(59,130,246,.7) !important;

    opacity: 1 !important;

    transform: scale(1.05);
}
.selectable-logo {
    position: relative !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
}

.dashboard-grid {

    align-items: start !important;
}

.dashboard-card {

    height: auto !important;

    align-self: start !important;
}
.dashboard-card img {

    max-width: 100% !important;

    height: auto !important;

    object-fit: contain !important;
}
/* =========================
MOBILE NAV BUTTON
========================= */

.mobile-menu-btn {

    display: none;

    background: none;

    border: 0;

    color: #fff;

    font-size: 28px;

    cursor: pointer;

    padding: 6px 10px;

}

/* =========================
MOBILE NAV
========================= */

@media (max-width: 900px) {

    .mobile-menu-btn {

        display: block;

    }

    .main-nav {

        display: none;

        position: absolute;

        top: 70px;

        right: 10px;

        width: 260px;

        background: #111;

        border: 1px solid #333;

        border-radius: 10px;

        padding: 14px;

        z-index: 99999;

        flex-direction: column;

        gap: 12px;

    }

    .main-nav.show {

        display: flex;

    }

}

