/* Cyber-FF Sci-Fi Frontend Theme CSS */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;800;900&family=Rajdhani:wght@500;600;700&display=swap');

.cyber-ff-container {
    font-family: 'Rajdhani', sans-serif;
    background-color: #070a12;
    color: #cbd5e1;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.cyber-ff-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, #00f3ff, #ff0055, transparent);
}

/* Header & Glitch Title */
.cyber-lobby-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.cyber-glitch-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.cyber-subheading {
    color: #00f3ff;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 5px;
}

.cyber-user-chip {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid #00f3ff;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

/* Live Stream Embed Card */
.cyber-stream-card {
    background: #090d16;
    border: 1px solid #ff0055;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 25px rgba(255, 0, 85, 0.25);
    margin-bottom: 25px;
}

.stream-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.live-pulse-badge {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    background: rgba(255, 0, 85, 0.15);
    border: 1px solid #ff0055;
    color: #ff0055;
    padding: 4px 12px;
    border-radius: 20px;
    animation: live-pulse 1.5s infinite;
}

@keyframes live-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

.stream-title {
    font-family: 'Orbitron', sans-serif;
    color: #ffffff;
    font-size: 1.1rem;
    margin: 0;
}

.stream-video-wrap {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000000;
}

.stream-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Filter Bar */
.cyber-filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.cyber-tab-btn {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    background: #0f172a;
    color: #94a3b8;
    border: 1px solid #1e293b;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cyber-tab-btn:hover, .cyber-tab-btn.active {
    background: rgba(0, 243, 255, 0.1);
    color: #00f3ff;
    border-color: #00f3ff;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

/* Match Grid Cards */
.cyber-match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.cyber-match-card {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid #1e293b;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cyber-match-card:hover {
    transform: translateY(-5px);
    border-color: #00f3ff;
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.2);
}

.match-card-banner {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.match-card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cyber-match-card:hover .match-card-banner img {
    transform: scale(1.05);
}

.match-mode-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #00f3ff;
    color: #00f3ff;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.match-status-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.status-upcoming { background: #00f3ff; color: #070a12; }
.status-live { background: #ff0055; color: #ffffff; }
.status-completed { background: #10b981; color: #ffffff; }

.match-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.match-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: #ffffff;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.match-specs {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 15px;
}

.match-prizes {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background: #090d16;
    border: 1px solid #1e293b;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    margin-bottom: 15px;
}

.prize-item {
    display: flex;
    flex-direction: column;
}

.prize-label {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 700;
}

.prize-val {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
}

/* Slot Progress */
.cyber-slot-progress {
    margin-bottom: 20px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 5px;
}

.progress-track {
    height: 8px;
    background: #1e293b;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00f3ff, #ff0055);
    border-radius: 4px;
    transition: width 0.4s ease;
}

/* Buttons */
.cyber-btn-sci {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 12px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 100%;
}

.cyber-btn-primary {
    background: linear-gradient(135deg, #00f3ff 0%, #0088ff 100%);
    color: #070a12;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

.cyber-btn-primary:hover {
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.8);
    transform: scale(1.02);
}

.cyber-btn-cyan {
    background: transparent;
    border: 1px solid #00f3ff;
    color: #00f3ff;
}

.cyber-btn-cyan:hover {
    background: rgba(0, 243, 255, 0.15);
}

.cyber-btn-disabled {
    background: #1e293b;
    color: #64748b;
    cursor: not-allowed;
}

/* Interactive Slot Selector Modal */
.cyber-modal-frontend {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.cyber-modal-frontend.active {
    display: flex;
}

.cyber-modal-container {
    background: #0b0f19;
    border: 1px solid #00f3ff;
    box-shadow: 0 0 35px rgba(0, 243, 255, 0.3);
    border-radius: 10px;
    width: 750px;
    max-width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 25px;
}

.cyber-modal-header-sci {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #00f3ff;
    font-size: 1.2rem;
}

.modal-title-wrap h3 {
    font-family: 'Orbitron', sans-serif;
    margin: 0;
    font-size: 1.1rem;
    color: #ffffff;
}

.cyber-modal-close-sci {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.8rem;
    cursor: pointer;
}

.cyber-section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    color: #00f3ff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.legend-box {
    font-size: 0.75rem;
    color: #94a3b8;
}

.legend-box span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-left: 8px;
}

.box-avail { background: #1e293b; border: 1px solid #334155; }
.box-taken { background: #ef4444; }
.box-mine { background: #00f3ff; }

/* Slot Grid Matrix */
.cyber-slot-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    background: #070a12;
    padding: 15px;
    border: 1px solid #1e293b;
    border-radius: 8px;
    max-height: 240px;
    overflow-y: auto;
}

.grid-slot-item {
    aspect-ratio: 1;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.grid-slot-item:hover:not(.taken) {
    border-color: #00f3ff;
    background: rgba(0, 243, 255, 0.1);
    transform: scale(1.08);
}

.grid-slot-item.selected {
    border-color: #00f3ff;
    background: #00f3ff;
    color: #070a12;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.8);
}

.grid-slot-item.taken {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #ef4444;
    cursor: not-allowed;
}

.cyber-input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.cyber-input-group label {
    display: block;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 5px;
}

.cyber-input-group input {
    width: 100%;
    background: #070a12;
    border: 1px solid #1e293b;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 6px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
}

.cyber-input-group input:focus {
    border-color: #00f3ff;
    outline: none;
}

.cyber-checkout-summary {
    background: #0f172a;
    border: 1px solid #1e293b;
    padding: 12px;
    border-radius: 6px;
    margin: 15px 0;
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.cyber-alert {
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.cyber-alert-danger { background: rgba(239, 68, 68, 0.2); border: 1px solid #ef4444; color: #fca5a5; }
.cyber-alert-success { background: rgba(16, 185, 129, 0.2); border: 1px solid #10b981; color: #6ee7b7; }

/* Profile Cyber-Deck HUD */
.cyber-profile-hud {
    background: linear-gradient(135deg, #0b0f19 0%, #151d30 100%);
    border: 1px solid #00f3ff;
    border-radius: 10px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

.hud-avatar img {
    border-radius: 50%;
    border: 2px solid #00f3ff;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
}

.hud-username {
    font-family: 'Orbitron', sans-serif;
    color: #ffffff;
    font-size: 1.4rem;
    margin: 0 0 5px 0;
}

.hud-badge {
    font-size: 0.8rem;
    color: #00f3ff;
    background: rgba(0, 243, 255, 0.1);
    padding: 3px 10px;
    border-radius: 12px;
}

.hud-wallet {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.wallet-title { font-size: 0.75rem; color: #64748b; font-weight: 700; }
.wallet-amount { font-family: 'Orbitron', sans-serif; font-size: 1.6rem; font-weight: 800; }

/* Tickets */
.cyber-ticket-card {
    background: #090d16;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 15px;
}

.cyber-ticket-card.flex-col {
    display: flex;
    flex-direction: column;
}

.ticket-top-row {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.ticket-slot-box {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid #00f3ff;
    color: #00f3ff;
    padding: 10px 15px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ticket-match-title {
    font-family: 'Orbitron', sans-serif;
    color: #ffffff;
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.ticket-meta {
    font-size: 0.85rem;
    color: #94a3b8;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Proof Upload Box */
.proof-upload-box {
    background: #0f172a;
    border: 1px dashed #334155;
    padding: 12px 15px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.proof-title {
    font-size: 0.8rem;
    color: #00f3ff;
    font-weight: 700;
}

.proof-upload-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.proof-file-input {
    font-size: 0.8rem;
    color: #94a3b8;
}

.upload-proof-btn {
    padding: 6px 12px !important;
    font-size: 0.75rem !important;
}

/* Leaderboard */
.cyber-sci-table {
    width: 100%;
    border-collapse: collapse;
}

.cyber-sci-table th {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    color: #64748b;
    background: #04060c;
    padding: 15px;
    text-align: left;
}

.cyber-sci-table td {
    padding: 15px;
    border-bottom: 1px solid #1e293b;
}

.top-rank { background: rgba(0, 243, 255, 0.03); }
.warrior-cell { display: flex; align-items: center; gap: 12px; }
.warrior-avatar { width: 36px; height: 36px; border-radius: 50%; }

.rank-badge {
    font-family: 'Orbitron', sans-serif;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.85rem;
}

.rank-gold { background: #ffb700; color: #070a12; }
.rank-silver { background: #cbd5e1; color: #070a12; }
.rank-bronze { background: #d97706; color: #ffffff; }
