/* ===== PAGE HEADER ===== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 40px;
    background: radial-gradient(ellipse at top left, #0d0d2e 0%, #0a0a0f 60%);
    border-bottom: 1px solid #1a1a2e;
    gap: 40px;
}
.page-header h1 { font-size: 42px; font-weight: 900; color: #fff; margin-bottom: 10px; }
.page-header p { font-size: 16px; color: #aaa; line-height: 1.6; max-width: 500px; }
.page-header-stats { display: flex; gap: 40px; flex-shrink: 0; }
.ph-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ph-value { font-size: 36px; font-weight: 900; color: #00f5ff; }
.ph-label { font-size: 12px; color: #aaa; text-transform: uppercase; letter-spacing: 1px; }

/* ===== FILTERS ===== */
.filters-bar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 40px; background: #0d0d1a;
    border-bottom: 1px solid #1a1a2e; gap: 20px; flex-wrap: wrap;
}
.filter-group { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-btn {
    background: transparent; border: 1px solid #1a1a2e; border-radius: 20px;
    padding: 8px 20px; color: #aaa; font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.filter-btn:hover { border-color: #00f5ff; color: #00f5ff; }
.filter-active { background: rgba(0,245,255,0.1); border-color: #00f5ff; color: #00f5ff; }
.filter-select {
    background: #0a0a0f; border: 1px solid #1a1a2e; border-radius: 8px;
    padding: 8px 16px; color: #aaa; font-size: 13px; font-family: inherit;
    cursor: pointer; outline: none; transition: border-color 0.2s;
}
.filter-select:focus { border-color: #00f5ff; color: #fff; }

/* ===== TOURNAMENTS GRID ===== */
.tournaments-page { padding: 40px; background: #0a0a0f; }
.tournaments-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px; max-width: 1200px; margin: 0 auto;
}

/* ===== TOURNAMENT CARD ===== */
.tournament-card {
    background: #0d0d1a; border: 1px solid #1a1a2e;
    border-radius: 16px; overflow: hidden;
    display: flex; flex-direction: column;
    transition: all 0.3s; cursor: pointer;
}
.tournament-card:hover {
    border-color: #00f5ff; transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,245,255,0.1);
}
.tournament-card-header {
    padding: 16px 20px; display: flex;
    align-items: center; justify-content: space-between;
    border-bottom: 1px solid #1a1a2e;
    background: #0a0a14;
}
.tc-game-icon { font-size: 1.6rem; }
.tc-status {
    font-size: 11px; font-weight: 700; letter-spacing: 1px;
    padding: 4px 10px; border-radius: 4px; text-transform: uppercase;
}
.status-live { background: rgba(255,50,50,0.12); color: #ff3232; }
.status-upcoming { background: rgba(0,245,255,0.1); color: #00f5ff; }
.status-ended { background: rgba(255,255,255,0.05); color: #555; }

.tournament-card-body { padding: 20px; flex: 1; }
.tc-title { font-size: 17px; font-weight: 800; color: #fff; margin-bottom: 10px; line-height: 1.3; }
.tc-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: #555; margin-bottom: 10px; }
.tc-desc { font-size: 13px; color: #555; line-height: 1.6; }

.tournament-card-footer { padding: 16px 20px; border-top: 1px solid #1a1a2e; }
.tc-details {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 8px 16px; margin-bottom: 14px;
}
.tc-detail { display: flex; flex-direction: column; gap: 2px; }
.tc-detail-label { font-size: 10px; color: #444; text-transform: uppercase; letter-spacing: 1px; }
.tc-detail-val { font-size: 13px; font-weight: 700; color: #ccc; }

.btn-register {
    width: 100%; background: linear-gradient(135deg, #00f5ff, #0080ff);
    color: #000; border: none; border-radius: 8px; padding: 11px;
    font-size: 13px; font-weight: 900; cursor: pointer; letter-spacing: 1px;
    transition: all 0.2s; font-family: inherit;
}
.btn-register:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,245,255,0.3); }
.btn-register-disabled {
    background: #1a1a2e; color: #555; cursor: not-allowed;
    box-shadow: none; transform: none;
}
.btn-register-disabled:hover { transform: none; box-shadow: none; }

/* ===== EMPTY STATE ===== */
.tournament-empty-state {
    grid-column: 1 / -1; text-align: center; padding: 80px 20px;
    border: 1px dashed #1a1a2e; border-radius: 16px; background: #0a0a0f;
    display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.tournament-empty-icon { font-size: 64px; }
.tournament-empty-state h3 { font-size: 24px; font-weight: 800; color: #fff; }
.tournament-empty-state p { font-size: 15px; color: #aaa; line-height: 1.7; margin-bottom: 8px; }

/* ===== HOST CTA ===== */
.host-cta { padding: 50px 40px; background: #0d0d1a; border-top: 1px solid #1a1a2e; }
.host-cta-content {
    display: flex; justify-content: space-between; align-items: center;
    max-width: 1000px; margin: 0 auto; gap: 40px;
}
.host-cta h2 { font-size: 28px; font-weight: 900; color: #fff; margin-bottom: 10px; }
.host-cta p { font-size: 15px; color: #aaa; line-height: 1.6; max-width: 500px; }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .page-header { flex-direction: column; padding: 30px 20px; text-align: center; }
    .page-header-stats { gap: 24px; }
    .filters-bar { padding: 16px 20px; flex-direction: column; align-items: flex-start; }
    .tournaments-page { padding: 20px; }
    .tournaments-grid { grid-template-columns: 1fr; }
    .host-cta { padding: 30px 20px; }
    .host-cta-content { flex-direction: column; text-align: center; }
}
@media (max-width: 1024px) and (min-width: 769px) {
    .tournaments-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== REGISTRATION BUTTON STATES ===== */
.btn-register-registered {
    background: linear-gradient(135deg, #00ff64, #00c84a) !important;
    color: #000 !important;
}
.btn-register-registered:hover {
    background: linear-gradient(135deg, #ff3232, #cc0000) !important;
    color: #fff !important;
}
.btn-register-registered:hover::after {
    content: ' — CANCEL?';
}
.btn-register-login {
    background: transparent !important;
    border: 1px solid rgba(0,245,255,0.3) !important;
    color: #00f5ff !important;
}

/* ===== PROGRESS BAR ===== */
.tc-progress-wrap {
    display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.tc-progress-bar {
    flex: 1; background: #1a1a2e; border-radius: 4px; height: 5px; overflow: hidden;
}
.tc-progress-fill {
    height: 100%; background: linear-gradient(135deg, #00f5ff, #0080ff);
    border-radius: 4px; transition: width 0.6s ease;
}
.tc-progress-label { font-size: 11px; color: #444; white-space: nowrap; }

/* Toast animation */
@keyframes slideIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
