/* PSPN - Decentralized UFC Betting Platform Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #0b0e14;
    --bg-card: #151a24;
    --bg-card-hover: #1c2330;
    --primary: #8a2be2;
    --primary-glow: rgba(138, 43, 226, 0.4);
    --secondary: #ff007f;
    --secondary-glow: rgba(255, 0, 127, 0.4);
    --text-main: #f5f6f8;
    --text-muted: #8b9bb4;
    --border-color: rgba(255, 255, 255, 0.08);
    --accent: #00f0ff;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(138, 43, 226, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 0, 127, 0.1) 0%, transparent 45%);
    background-attachment: fixed;
}

/* Glassmorphism Navigation */
.navbar-custom {
    background: rgba(21, 26, 36, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

.navbar-brand-custom {
    font-weight: 800;
    font-size: 1.6rem;
    background: linear-gradient(45deg, var(--accent), var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.nav-link-custom {
    color: var(--text-muted) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
}

.nav-link-custom:hover, .nav-link-custom.active {
    color: var(--text-main) !important;
    text-shadow: 0 0 10px var(--primary-glow);
}

/* Connect Wallet Button */
.btn-connect-wallet {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-connect-wallet:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.6), 0 0 0 3px rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-connect-wallet:active {
    transform: translateY(0);
}

/* Hero Section */
.hero-section {
    padding: 6rem 0 4rem 0;
    text-align: center;
    position: relative;
}

.hero-badge {
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid rgba(138, 43, 226, 0.3);
    color: var(--accent);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-title span {
    background: linear-gradient(90deg, var(--accent), var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
}

/* Cards & Content */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(138, 43, 226, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(138, 43, 226, 0.1);
    background: var(--bg-card-hover);
}

.glass-card:hover::before {
    opacity: 1;
}

/* Match Cards */
.match-card {
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(21, 26, 36, 0.8) 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.match-card:hover {
    border-color: rgba(255, 0, 127, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 0, 127, 0.1);
}

.fighter-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #252e3d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    border: 3px solid var(--border-color);
    margin: 0 auto 1rem auto;
    transition: all 0.3s ease;
    object-fit: cover;
}

.match-card:hover .fighter-avatar {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.vs-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    display: inline-block;
    margin-top: 1.5rem;
}

.bet-odds {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 0.8rem;
    margin-top: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.bet-odds:hover {
    background: rgba(138, 43, 226, 0.1);
    border-color: var(--primary);
    color: var(--accent);
}

/* Footer */
.footer-custom {
    background: #080a0e;
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    margin-top: 5rem;
    color: var(--text-muted);
}

/* Contrast Typography Fixes */
.text-muted {
    color: #a0aec0 !important;
}

.form-label {
    color: #cbd5e0 !important;
    font-weight: 500;
}

.form-control {
    color: #f5f6f8 !important;
}

.form-control::placeholder {
    color: #718096 !important;
}

/* Premium Horizontal Match Card CSS */
.premium-match-card {
    background: rgba(21, 26, 36, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    min-height: 200px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.premium-match-card:hover {
    border-color: rgba(138, 43, 226, 0.35);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.18), 0 0 25px rgba(255, 0, 127, 0.05);
    background: rgba(26, 32, 44, 0.9);
}

/* Left & Right Fighter Cutout Containers (Absolute Flush Aligned) */
.fighter-img-container-left {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 160px;
    height: 195px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.fighter-img-container-right {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 160px;
    height: 195px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.fighter-img-container-left img,
.fighter-img-container-right img {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.8));
    transition: transform 0.3s ease;
}

.premium-match-card:hover .fighter-img-container-left img {
    transform: scale(1.06) translateY(-2px);
}

.premium-match-card:hover .fighter-img-container-right img {
    transform: scale(1.06) translateY(-2px);
}

/* Middle Details Area (Gutter offsets prevent text from overlapping side cutouts) */
.match-details-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 1.2rem 170px;
    z-index: 2;
    width: 100%;
}

/* Top metadata row */
.match-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 500;
}

.match-status-premium {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #cbd5e0;
}

.match-status-premium.completed {
    color: #a0aec0;
}
.match-status-premium.live {
    color: var(--secondary);
    animation: flash-pulse 1.5s infinite;
}
.match-status-premium.upcoming {
    color: var(--accent);
}

@keyframes flash-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.match-odds-premium {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(90deg, #8a2be2, #00f0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: monospace;
    letter-spacing: 0.5px;
}

.match-pool-premium {
    color: #a0aec0;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
}

.match-pool-premium strong {
    color: #e0a82e;
    margin-left: 4px;
}

/* Divider line */
.match-divider-premium {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1) 20%, rgba(255, 255, 255, 0.1) 80%, transparent);
    margin: 0.5rem 0;
}

/* Bottom Matchup details */
.match-bottom-row-premium {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fighter-info-premium {
    width: 32%;
}

.fighter-name-premium {
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
}

.fighter-record-premium {
    color: #718096;
    font-size: 0.75rem;
}

/* VS Center Block */
.vs-center-container-premium {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36%;
}

.vs-medal-icon-premium {
    font-size: 1.8rem;
    color: #e0a82e;
    filter: drop-shadow(0 0 5px rgba(224, 168, 46, 0.4));
}

.vs-details-premium {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.division-text-premium {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #8a2be2;
    text-transform: uppercase;
}

.vs-badge-premium-pill {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.25), rgba(255, 0, 127, 0.25));
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 0.1rem 0.7rem;
    border-radius: 4px;
    margin: 0.15rem 0;
    box-shadow: 0 0 8px rgba(138, 43, 226, 0.2);
}

.date-text-premium {
    font-size: 0.65rem;
    color: #a0aec0;
}

/* Media Query for Mobile and Tablet Adaptations */
@media (max-width: 767.98px) {
    .premium-match-card {
        min-height: auto;
        flex-direction: column;
        padding: 1.5rem 1rem;
    }
    
    .fighter-img-container-left,
    .fighter-img-container-right {
        position: static;
        width: 70px;
        height: 70px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
        margin-bottom: 0.5rem;
        display: none; /* Hide images on very small screens to maximize space */
    }
    
    .match-details-container {
        padding: 0;
    }
    
    .match-bottom-row-premium {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .fighter-info-premium {
        width: 100% !important;
        text-align: center !important;
        padding: 0 !important;
    }
    
    .vs-center-container-premium {
        width: 100% !important;
        margin: 0.4rem 0;
    }
}

/* Premium Dashboard Metric Cards & Accents */
.glass-card.premium-metric-card {
    background: rgba(21, 26, 36, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.glass-card.premium-metric-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 4px;
    border-radius: 0 4px 4px 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* When hovered, grow the side glow accent line and translate */
.glass-card.premium-metric-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(26, 32, 44, 0.8);
}

.glass-card.premium-metric-card:hover::after {
    height: 90%;
    top: 5%;
}

/* Card Accent Types */
/* Info Card Accent (Total Users) */
.premium-metric-card.card-info::after {
    background: #00f0ff;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}
.premium-metric-card.card-info:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 240, 255, 0.2);
}

/* Primary Card Accent (Total Bets) */
.premium-metric-card.card-primary::after {
    background: #8a2be2;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.6);
}
.premium-metric-card.card-primary:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(138, 43, 226, 0.2);
}

/* Success Card Accent (Total Revenue / Blockchain Status) */
.premium-metric-card.card-success::after {
    background: #00e676;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.6);
}
.premium-metric-card.card-success:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 230, 118, 0.2);
}

/* Warning Card Accent (Active Wallets / Pending Bets) */
.premium-metric-card.card-warning::after {
    background: #ffab00;
    box-shadow: 0 0 10px rgba(255, 171, 0, 0.6);
}
.premium-metric-card.card-warning:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 171, 0, 0.2);
}

/* Secondary Card Accent (Today's Matches) */
.premium-metric-card.card-secondary::after {
    background: #ff007f;
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.6);
}
.premium-metric-card.card-secondary:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 0, 127, 0.2);
}

/* Danger Card Accent (Today's Bets) */
.premium-metric-card.card-danger::after {
    background: #ff1744;
    box-shadow: 0 0 10px rgba(255, 23, 68, 0.6);
}
.premium-metric-card.card-danger:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 23, 68, 0.2);
}

/* Metric Icon Wrappers & Translucents */
.metric-icon-wrapper {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.premium-metric-card:hover .metric-icon-wrapper {
    transform: scale(1.1) rotate(8deg);
}

.bg-info-transparent {
    background: rgba(0, 240, 255, 0.1) !important;
}
.bg-primary-transparent {
    background: rgba(138, 43, 226, 0.15) !important;
}
.bg-success-transparent {
    background: rgba(0, 230, 118, 0.1) !important;
}
.bg-warning-transparent {
    background: rgba(255, 171, 0, 0.1) !important;
}
.bg-secondary-transparent {
    background: rgba(255, 0, 127, 0.1) !important;
}
.bg-danger-transparent {
    background: rgba(255, 23, 68, 0.1) !important;
}

.text-primary-custom {
    color: var(--primary) !important;
}
.text-secondary-custom {
    color: var(--secondary) !important;
}

/* Blockchain pulsing status dot */
.status-pulse-green {
    width: 8px;
    height: 8px;
    background-color: #00e676;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7);
    animation: pulse-green 1.5s infinite;
    display: inline-block;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(0, 230, 118, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0);
    }
}

/* Extra Small Buttons */
.btn-xs {
    padding: 0.3rem 0.65rem !important;
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
    border-radius: 4px !important;
    font-weight: 500;
}

/* Premium Sport Status Badges */
.status-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-badge-upcoming {
    background: rgba(255, 171, 0, 0.08);
    border: 1px solid rgba(255, 171, 0, 0.2);
    color: #ffab00 !important;
}

.status-badge-live {
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.2);
    color: #00f0ff !important;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.25);
}

.status-badge-completed {
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.2);
    color: #00e676 !important;
}

.status-badge-cancelled {
    background: rgba(255, 23, 68, 0.08);
    border: 1px solid rgba(255, 23, 68, 0.25);
    color: #ff1744 !important;
}

/* Live Status Pulsing Dot */
.status-pulse-live {
    width: 6px;
    height: 6px;
    background-color: #00f0ff;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7);
    animation: pulse-live 1.5s infinite;
    display: inline-block;
}

@keyframes pulse-live {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 5px rgba(0, 240, 255, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 240, 255, 0);
    }
}

/* ============================================================
   5-Column Grid Helper (used in customer dashboard)
   20% wide on lg+ screens, falls back to col-6 / col-12
   ============================================================ */
@media (min-width: 992px) {
    .col-lg-2-4 {
        flex: 0 0 auto;
        width: 20%;
    }
}

/* Red Highlight Button */
.btn-red-highlight {
    background: linear-gradient(135deg, #ff3f5c, #c0002a) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(255, 63, 92, 0.4) !important;
    border: none !important;
}

.btn-red-highlight:hover {
    box-shadow: 0 6px 20px rgba(255, 63, 92, 0.7), 0 0 0 3px rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

