/* HLTV Auth Modal Styles */

.hltv-login-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.hltv-login-overlay.active {
    opacity: 1;
}

.hltv-login-modal {
    background: #1c2333;
    border: 1px solid #30363d;
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 400px;
    margin: 16px;
    position: relative;
    box-shadow: 0 24px 64px rgba(0,0,0,0.6);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.hltv-login-overlay.active .hltv-login-modal {
    transform: translateY(0);
}

.hltv-login-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #8fa3b3;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
}
.hltv-login-close:hover { color: #e6edf3; background: #2d3748; }

.hltv-login-header { text-align: center; margin-bottom: 24px; }

.hltv-login-logo {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    display: block;
}
.hltv-login-logo .logo-text { color: #e6edf3; }
.hltv-login-logo .logo-suffix { color: #e94560; }

.hltv-login-title {
    font-size: 18px;
    font-weight: 700;
    color: #e6edf3;
    margin: 0 0 6px;
}

.hltv-login-subtitle {
    font-size: 13px;
    color: #8fa3b3;
    margin: 0;
}

.hltv-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.hltv-login-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #e6edf3;
}

.hltv-login-btn-icon { flex-shrink: 0; }

.hltv-login-google {
    background: #fff;
    color: #1a1a2e;
    border-color: #e0e0e0;
}
.hltv-login-google:hover { background: #f5f5f5; color: #1a1a2e; }

.hltv-login-steam {
    background: #1b2838;
    border-color: #2a475e;
    color: #c6d4df;
}
.hltv-login-steam:hover { background: #2a3f55; color: #fff; }

.hltv-login-faceit {
    background: #ff5500 !important;
    border-color: #ff5500 !important;
    color: #fff !important;
}
.hltv-login-faceit:hover { background: #e64d00 !important; }

.hltv-login-logout {
    background: #2d1b1b;
    border-color: #5a2020;
    color: #e94560;
    justify-content: center;
}
.hltv-login-logout:hover { background: #3d2020; }

.hltv-login-divider {
    text-align: center;
    margin: 12px 0;
    position: relative;
    color: #4a5a72;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hltv-login-terms {
    text-align: center;
    font-size: 11px;
    color: #4a5a72;
    margin: 0;
    line-height: 1.6;
}
.hltv-login-terms a { color: #58a6ff; text-decoration: none; }
.hltv-login-terms a:hover { text-decoration: underline; }

/* Logged-in state */
.hltv-login-avatar { margin-bottom: 12px; }
.hltv-login-avatar img { border-radius: 50%; border: 2px solid #e94560; }
.hltv-login-username { font-size: 18px; font-weight: 700; color: #e6edf3; margin: 0 0 4px; }
.hltv-login-email { font-size: 12px; color: #8fa3b3; margin: 0; }

/* Logged-in button in header */
.hltv-logged-in-btn {
    background: transparent !important;
    border: 1px solid #30363d !important;
    color: #e6edf3 !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: border-color 0.2s, background 0.2s;
}
.hltv-logged-in-btn:hover {
    border-color: #e94560 !important;
    background: rgba(233,69,96,0.08) !important;
}

/* ── Override Astra global button/link blue ── */
body .login-btn,
body .login-btn:link,
body .login-btn:visited,
body .login-btn:hover,
body .login-btn:focus,
body .login-btn:active,
body button.login-btn,
body a.login-btn,
body .hltv-logged-in-btn,
body .hltv-logged-in-btn:link,
body .hltv-logged-in-btn:visited,
body .hltv-logged-in-btn:hover,
body .hltv-logged-in-btn:focus,
body .hltv-logged-in-btn:active,
body button.hltv-logged-in-btn,
body a.hltv-logged-in-btn {
    color: #e6edf3 !important;
    background-color: transparent !important;
    text-decoration: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    border-color: #30363d !important;
}

body .hltv-logged-in-btn:hover,
body button.hltv-logged-in-btn:hover {
    border-color: #e94560 !important;
    background: rgba(233,69,96,0.08) !important;
    color: #e6edf3 !important;
}

body .login-btn:focus,
body .hltv-logged-in-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

body .login-btn:focus-visible,
body .hltv-logged-in-btn:focus-visible {
    outline: 2px solid #e94560 !important;
    outline-offset: 2px !important;
    box-shadow: none !important;
}

/* ── Match login button to nav menu style ── */
body .login-btn,
body a.login-btn,
body button.login-btn {
    font-size: inherit !important;
    font-weight: inherit !important;
    font-family: inherit !important;
    letter-spacing: inherit !important;
    color: #e6edf3 !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer !important;
    display: inline !important;
    vertical-align: baseline !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    text-decoration: none !important;
}

body .login-btn:hover,
body a.login-btn:hover,
body button.login-btn:hover {
    color: #e94560 !important;
    background: none !important;
}

/* ── Override Astra default table colors ── */
table,
.entry-content table,
.wp-block-table table,
figure.wp-block-table table {
    border-color: #25282d !important;
    background-color: #25282d !important;
}

table th,
table td,
.entry-content table th,
.entry-content table td {
    border-color: #25282d !important;
}

table thead th,
.entry-content table thead th {
    background-color: #1c2333 !important;
    color: #8fa3b3 !important;
    border-color: #25282d !important;
}

table tbody tr:nth-child(even),
.entry-content table tbody tr:nth-child(even) {
    background-color: #161a21 !important;
}

table tbody tr:nth-child(odd),
.entry-content table tbody tr:nth-child(odd) {
    background-color: #0d1117 !important;
}

table tbody tr:hover td,
.entry-content table tbody tr:hover td {
    background-color: #1c2333 !important;
}

table tbody td,
.entry-content table tbody td {
    color: #c9d1d9 !important;
    border-color: #25282d !important;
}
