/* Main site stylesheet
   - Place shared site-wide styles here
   - Loaded on all public pages via includes/header.php
*/

:root {
    --background: #0b1220;
    --surface: #0f172a;
    --surface-2: #0b1220;
    --card: #0f172a;
    --soft: rgba(255, 255, 255, 0.06);
    --muted: #9ca3af;
    --text: #e5e7eb;
    --text-strong: #ffffff;
    --accent: #22c55e;
    --accent-2: #8B5CF6;
}

/* Base layout */
html, body {
    margin: 0;
    padding: 0;
    background: var(--background);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Buttons */
.button {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.25);
}

.button.alt {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--soft);
}

/* Tables */
.table-wrap {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    color: #111827;
}

.table th, .table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    color: #111827;
}

.table thead th {
    background: #f8fafc;
    color: #0f172a;
    text-align: left;
}

.table.striped tbody tr:nth-child(odd) {
    background: #f5f5f5;
}

/* Notices */
.notice {
    background: rgba(34,197,94,0.12);
    color: #bbf7d0;
    border: 1px solid rgba(34,197,94,0.25);
    padding: 10px 12px;
    border-radius: 8px;
}

.danger {
    background: rgba(239,68,68,0.12);
    color: #fecaca;
    border: 1px solid rgba(239,68,68,0.25);
    padding: 10px 12px;
    border-radius: 8px;
}

/* Sections */
.section {
    padding: 20px 0;
}

/* Utility */
.meta {
    color: var(--muted);
    font-size: 12px;
}

.group-row th {
    background: rgba(255,255,255,0.04);
    color: var(--text);
    font-weight: 700;
}

/* Results */
.result.won { color: #22c55e; }
.result.lost { color: #ef4444; }
.result.pending { color: #eab308; }
.result.void { color: #9ca3af; }

/* Forms */
.input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--soft);
    background: #111827;
    color: var(--text);
    border-radius: 8px;
}

.label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-weight: 600;
}

.stack { display: grid; gap: 12px; }

/* Cards */
.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.auth-card {
    background: var(--card);
    border: 1px solid var(--soft);
    border-radius: 10px;
    padding: 16px;
    width: 100%;
    max-width: 520px;
}

.form-header {
    margin: 0 0 12px 0;
}

/* Mini hero/banner */
.mini-hero {
    background: linear-gradient(180deg, rgba(15,23,42,0.90), rgba(15,23,42,0.75));
}

.mini-banner .button.alt {
    border-color: rgba(255,255,255,0.18);
}

/* Responsive */
@media (max-width: 768px) {
    .container { padding: 0 12px; }
}

/* Match tables: disable row hover background */
.match-table tbody tr:hover {
    background: transparent !important;
}
.match-table tbody tr:hover td,
.match-table tbody tr:hover th {
    color: inherit;
}
