/* assets/css/custom.css - PES / eSports Gaming League Styling */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --bg-dark: #070a14;
    --card-bg: rgba(14, 20, 36, 0.75);
    --border-color: rgba(56, 189, 248, 0.12);
    --primary-cyan: #06b6d4;
    --primary-blue: #3b82f6;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #070a14;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.04) 0%, transparent 60%);
    background-attachment: fixed;
    color: #f1f5f9;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-heading {
    font-family: 'Outfit', sans-serif;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #090e1d;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Modern HTML Dialog Modal */
dialog {
    border: none;
    border-radius: 1.5rem;
    padding: 0;
    max-width: 95vw;
    background: transparent;
    color: inherit;
    outline: none;
}

dialog::backdrop {
    background-color: rgba(4, 7, 16, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

dialog[open] {
    animation: dialogAppear 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dialogAppear {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(14px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Gaming Glass Card */
.gaming-card {
    background: rgba(13, 19, 35, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(56, 189, 248, 0.12);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    transition: all 0.25s ease;
}

.gaming-card:hover {
    border-color: rgba(56, 189, 248, 0.28);
    transform: translateY(-2px);
    box-shadow: 0 14px 35px -8px rgba(0, 0, 0, 0.6), 0 0 20px 0 rgba(6, 182, 212, 0.08);
}

/* Glowing Neon Elements */
.glow-cyan {
    box-shadow: 0 0 25px -4px rgba(6, 182, 212, 0.4);
}
.glow-gold {
    box-shadow: 0 0 20px -3px rgba(245, 158, 11, 0.4);
}

/* Mobile Touch Tap Feedback */
.tap-effect {
    transition: transform 0.12s ease, opacity 0.12s ease;
}
.tap-effect:active {
    transform: scale(0.96);
}

/* Safe area for mobile home bar */
.safe-bottom {
    padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Player Name Ellipsis / Truncate Helper */
.player-name-truncate {
    display: inline-block;
    max-width: 90px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}
@media (min-width: 380px) {
    .player-name-truncate {
        max-width: 110px;
    }
}
@media (min-width: 480px) {
    .player-name-truncate {
        max-width: 150px;
    }
}
@media (min-width: 640px) {
    .player-name-truncate {
        max-width: 200px;
    }
}
@media (min-width: 1024px) {
    .player-name-truncate {
        max-width: none;
    }
}

/* Scores always stay on one line (never stack) */
.score-badge {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
