/* --- FILE: assets/cbca-style.css --- */
/* --- SINGLE PAGE / GAME ROOM STYLES ONLY --- */

:root {
    --neon: #00ff88;
    --neon-dim: rgba(0, 255, 136, 0.15);
    --red: #ff3333;
    --bg-card: rgba(10, 10, 10, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-sub: #b0b0b0;
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.cbca-single-wrap {
    font-family: var(--font-main);
    color: var(--text-main);
    box-sizing: border-box;
    background-color: transparent !important;
}

/* --- HERO SECTION --- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.cbca-hero { position: relative; height: 400px; background-size: cover; background-position: center right; border-bottom: 2px solid #222; margin-bottom: 30px; background-color: #000; box-shadow: inset 0 0 150px 50px #000000; }
.cbca-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg, #000000 0%, rgba(0,0,0,0.95) 25%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.2) 100%); z-index: 1; }
.cbca-hero-content { position: absolute; bottom: 40px; left: 5%; max-width: 600px; z-index: 2; animation: fadeInUp 0.8s ease; }
.cbca-hero h1 { font-size: 3rem; color: #fff; margin: 15px 0; text-transform: uppercase; font-weight: 800; letter-spacing: 1px; text-shadow: 0 5px 15px rgba(0,0,0,0.9); }
.cbca-badges { display: flex; gap: 10px; }
.cbca-badge { padding: 6px 14px; border-radius: 4px; font-size: 0.8rem; font-weight: bold; text-transform: uppercase; }
.cbca-badge.game { background: var(--neon); color: #000; box-shadow: 0 0 10px var(--neon-dim); }
.cbca-badge.price { background: #000; border: 1px solid var(--neon); color: var(--neon); }

/* --- TABS --- */
.cbca-container { max-width: 1200px; margin: 0 auto; padding: 0 20px 50px 20px; }
.cbca-tabs { display: flex; gap: 10px; margin-bottom: 25px; border-bottom: 1px solid #222; padding-bottom: 15px; overflow-x: auto; }
.cbca-tab { background: rgba(20, 20, 20, 0.8); border: 1px solid #333; color: var(--text-sub); padding: 10px 25px; cursor: pointer; border-radius: 30px; font-weight: 600; font-size: 0.9rem; transition: all 0.3s ease; flex-shrink: 0; }
.cbca-tab:hover { background: #222; color: #fff; }
.cbca-tab.active { background: var(--neon); color: #000; border-color: var(--neon); box-shadow: 0 0 15px var(--neon-dim); }
.cbca-tab-content { animation: fadeInUp 0.4s ease; background: transparent; }

/* --- LOBBY ACTIONS & BUTTONS --- */
#cbca-lobby-actions { display: flex; justify-content: center; margin-bottom: 25px; }
.cbca-btn { padding: 10px 20px; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; text-transform: uppercase; font-size: 0.85rem; transition: 0.2s; }
.cbca-btn.green { background: var(--neon); color: #000; }
.cbca-btn.blue { background: #00d2ff; color: #000; }
.cbca-btn.red { background: var(--red); color: #fff; }
.cbca-btn.disabled { background: #333; color: #777; cursor: not-allowed; border: 1px solid #444; }
.cbca-btn:hover:not(.disabled) { transform: translateY(-2px); filter: brightness(1.1); }
.cbca-btn.big { width: auto; min-width: 200px; padding: 12px 40px; font-size: 1rem; font-weight: 800; border-radius: 50px; box-shadow: 0 5px 20px rgba(0,0,0,0.4); }
.cbca-btn.small { padding: 6px 15px; font-size: 0.75rem; }

/* --- LOBBY PLAYERS --- */
.cbe-player-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; }
.cbe-player-card { display: flex; align-items: center; background: rgba(20, 20, 20, 0.9); border: 1px solid #333; padding: 15px; border-radius: 12px; gap: 15px; transition: 0.3s; }
.cbe-player-card:hover { border-color: var(--neon); transform: translateY(-3px); box-shadow: 0 5px 15px var(--neon-dim); }
.cbe-p-avatar img { border-radius: 50%; width: 50px; height: 50px; border: 2px solid var(--neon); }
.cbe-p-details { flex: 1; }
.cbe-p-details h4 { margin: 0; font-size: 1rem; color: #fff; font-weight: 700; }
.cbe-ign { display: block; font-size: 0.8rem; color: #00d2ff; font-weight: 600; }

/* --- MATCH ROWS --- */
.cbca-match-row { background: rgba(20, 20, 20, 0.6); border: 1px solid #333; padding: 20px; margin-bottom: 15px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; }
.cbca-match-row.active { border: 1px solid var(--neon); background: rgba(0, 255, 136, 0.05); }

/* --- CHAT ROOM --- */
.cbca-chat-box-full { background: rgba(0,0,0,0.5); border: 1px solid #333; border-radius: 8px; display: flex; flex-direction: column; }
.cbca-chat-messages { background: transparent; }
.chat-msg { margin-bottom: 5px; padding: 8px 12px; border-radius: 4px; max-width: 85%; font-size: 0.9rem; }
.chat-msg.me { background: rgba(0, 255, 136, 0.1); color: var(--neon); align-self: flex-end; }
.chat-msg.opp { background: #222; color: #ccc; align-self: flex-start; }
.cbca-chat-input input { background: #000 !important; border: 1px solid #333 !important; color: #fff !important; }

/* --- MODALS --- */
.cbca-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); backdrop-filter: blur(5px); display: none; justify-content: center; align-items: center; z-index: 9999; }
.cbca-modal-box { background: #050505; border: 1px solid #333; padding: 30px; border-radius: 15px; width: 90%; max-width: 400px; text-align: center; position: relative; }
.cbca-close-btn { position: absolute; top: 15px; right: 20px; font-size: 24px; cursor: pointer; color: #777; }
#cbca-challenge-modal .cbca-modal-box { border: 2px solid var(--neon); box-shadow: 0 0 30px var(--neon-dim); }

@media (max-width: 768px) { 
    .cbca-hero { height: 280px; } 
    .cbca-match-row { flex-direction: column; align-items: flex-start; gap: 10px; } 
    .cbca-match-row .actions { width: 100%; } 
}