/* ========================================================
   Gamers Price - Custom Overrides & Gaming Theme System
   High-contrast palettes for Bootswatch Brite & Morph
   ======================================================== */

/* 1. Global High-Contrast Gaming Navbar */
.gp-navbar {
    background: #0b0f19 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.gp-navbar .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.gp-navbar .nav-link:hover,
.gp-navbar .nav-link:focus {
    color: #00d2ff !important;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.6);
}

.gp-navbar .nav-link.active {
    color: #00d2ff !important;
    font-weight: 700;
}

/* 2. Custom High-Contrast Text Colors */
.gp-text-neon-cyan {
    color: #00e5ff !important;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

.gp-text-neon-green {
    color: #10b981 !important;
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.gp-text-neon-magenta {
    color: #ff007f !important;
    text-shadow: 0 0 8px rgba(255, 0, 127, 0.5);
}

.gp-text-gold {
    color: #ffb703 !important;
    text-shadow: 0 0 8px rgba(255, 183, 3, 0.4);
}

.gp-text-neon-purple {
    color: #b388ff !important;
    text-shadow: 0 0 8px rgba(179, 136, 255, 0.4);
}

/* 3. Custom Gaming Buttons */
.gp-btn-neon-gold {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    color: #000 !important;
    font-weight: 700;
    border: none;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gp-btn-neon-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.7);
    color: #000 !important;
}

.gp-btn-neon-cyan {
    background: linear-gradient(135deg, #00d2ff 0%, #0077ff 100%) !important;
    color: #fff !important;
    font-weight: 700;
    border: none;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gp-btn-neon-cyan:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.7);
    color: #fff !important;
}

.gp-btn-neon-magenta {
    background: linear-gradient(135deg, #ff007f 0%, #7928ca 100%) !important;
    color: #fff !important;
    font-weight: 700;
    border: none;
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gp-btn-neon-magenta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 0, 127, 0.7);
    color: #fff !important;
}

.gp-btn-outline-cyan {
    border: 2px solid #00d2ff !important;
    color: #00d2ff !important;
    background: transparent;
    font-weight: 600;
    transition: all 0.2s ease;
}

.gp-btn-outline-cyan:hover {
    background: #00d2ff !important;
    color: #000 !important;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.5);
}

/* 4. High-Contrast Badges */
.gp-badge-gold {
    background: #fbbf24 !important;
    color: #0f172a !important;
    font-weight: 700;
}

.gp-badge-cyan {
    background: #06b6d4 !important;
    color: #0f172a !important;
    font-weight: 700;
}

.gp-badge-green {
    background: #10b981 !important;
    color: #ffffff !important;
    font-weight: 700;
}

.gp-badge-purple {
    background: #8b5cf6 !important;
    color: #ffffff !important;
    font-weight: 700;
}

.gp-badge-admin {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

/* 5. Discord-Style Username Effects */
.gp-username {
    font-weight: 600;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.gp-effect-sparkle {
    background: linear-gradient(90deg, #ff007f, #7928ca, #00d2ff, #ff007f);
    background-size: 300% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gp-rainbow 4s linear infinite;
    font-weight: 700;
}

.gp-effect-glow {
    color: #00d2ff;
    text-shadow: 0 0 8px rgba(0, 210, 255, 0.8), 0 0 16px rgba(0, 210, 255, 0.4);
    font-weight: 700;
}

.gp-effect-holo {
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

@keyframes gp-rainbow {
    to { background-position: 300% center; }
}

/* 6. Hero and Surfaces */
.gp-hero {
    border-radius: 1rem;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    background: radial-gradient(circle at 50% 0%, rgba(0, 210, 255, 0.12) 0%, rgba(15, 23, 42, 0) 70%),
                linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(236, 72, 153, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-bs-theme="light"] .gp-hero {
    background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* 7. Flag Icons */
.fi {
    background-size: cover;
    background-position: center;
    line-height: 1em;
}

/* 8. DataTables Tweaks & High-Contrast Platform Badges */
table.dataTable td, table.dataTable th {
    vertical-align: middle;
}

.gp-platform-pill,
[data-bs-theme="light"] .gp-platform-pill,
[data-theme="morph"] .gp-platform-pill {
    font-size: 10.5px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    padding: 2px 7px !important;
    border-radius: 4px !important;
    background-color: #1e293b !important; /* Rich dark slate for high contrast on light Morph theme */
    color: #ffffff !important;           /* Pure white text */
    border: 1px solid rgba(0, 0, 0, 0.25) !important;
    display: inline-block !important;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
}

[data-bs-theme="dark"] .gp-platform-pill,
[data-theme="brite"] .gp-platform-pill {
    background-color: #0f172a !important;
    color: #38bdf8 !important;           /* Neon cyan */
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
}

/* Official Digital Store Brand Icon Colors (Guaranteed across Morph & Brite themes) */
.fa-playstation, [class*="fa-playstation"], i.fa-brands.fa-playstation {
    color: #0070d1 !important;
}
.fa-steam, [class*="fa-steam"], i.fa-brands.fa-steam {
    color: #66c0f4 !important;
}
.fa-xbox, [class*="fa-xbox"], i.fa-brands.fa-xbox {
    color: #107c10 !important;
}
.fa-nintendo-switch, [class*="fa-nintendo-switch"], i.fa-brands.fa-nintendo-switch {
    color: #e60012 !important;
}

/* 8.1 DataTables Search Input Expansion */
div.dt-container div.dt-search {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

div.dt-container div.dt-search input,
#dt-search-0 {
    min-width: 280px !important;
    width: 350px !important;
    max-width: 100% !important;
    padding: 0.45rem 0.85rem !important;
    font-size: 0.92rem !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: inherit !important;
    transition: all 0.25s ease-in-out;
}

[data-bs-theme="light"] div.dt-container div.dt-search input,
[data-bs-theme="light"] #dt-search-0 {
    background-color: #ffffff !important;
    border: 1px solid #ced4da !important;
    color: #212529 !important;
}

div.dt-container div.dt-search input:focus,
#dt-search-0:focus {
    width: 420px !important;
    border-color: #00d2ff !important;
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.35) !important;
    outline: none !important;
}

@media (max-width: 768px) {
    div.dt-container div.dt-search {
        justify-content: stretch;
        width: 100%;
    }
    div.dt-container div.dt-search input,
    #dt-search-0 {
        width: 100% !important;
        min-width: 100% !important;
    }
    div.dt-container div.dt-search input:focus,
    #dt-search-0:focus {
        width: 100% !important;
    }
}

.dt-child-row-card {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 0.5rem;
}

/* ========================================================
   9. Gaming Logo Styles & Neon Animations
   ======================================================== */

/* Option 1: Cyberpunk Neon Pulse */
.gp-logo-cyberpunk {
    text-decoration: none;
    font-size: 1.35rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.gp-logo-cyberpunk .gp-logo-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 210, 255, 0.15);
    border: 2px solid #00d2ff;
    border-radius: 10px;
    color: #00e5ff;
    font-size: 20px;
    animation: gp-neon-pulse 2s infinite ease-in-out;
}

@keyframes gp-neon-pulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 210, 255, 0.5), inset 0 0 8px rgba(0, 210, 255, 0.2);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 22px rgba(0, 210, 255, 0.9), inset 0 0 14px rgba(0, 210, 255, 0.5);
        transform: scale(1.07);
    }
}

/* Option 2: Retro Arcade Glitch */
.gp-logo-arcade {
    text-decoration: none;
    font-size: 1.35rem;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.gp-logo-arcade .gp-icon-float {
    display: inline-block;
    font-size: 22px;
    animation: gp-float 2s ease-in-out infinite;
}

@keyframes gp-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.gp-cursor-blink {
    display: inline-block;
    color: #ff007f;
    font-weight: 900;
    animation: gp-blink 0.8s step-start infinite;
}

@keyframes gp-blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Option 3: RGB Chroma Wave */
.gp-logo-chroma {
    text-decoration: none;
    font-size: 1.35rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.gp-logo-chroma .gp-icon-spin {
    display: inline-block;
    font-size: 22px;
    animation: gp-spin-slow 6s linear infinite;
}

@keyframes gp-spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.gp-logo-chroma-text {
    background: linear-gradient(90deg, #ff007f, #7928ca, #00d2ff, #10b981, #ffb703, #ff007f);
    background-size: 300% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gp-chroma-wave 4s linear infinite;
    font-weight: 800;
}

@keyframes gp-chroma-wave {
    to { background-position: 300% center; }
}

/* Option 4: Gold Trophy / HUD Gamer */
.gp-logo-hud {
    text-decoration: none;
    font-size: 1.35rem;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.gp-icon-glow-gold {
    font-size: 22px;
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.8));
    transition: transform 0.3s ease;
}

.gp-logo-hud:hover .gp-icon-glow-gold {
    transform: rotate(15deg) scale(1.2);
}

/* ========================================================
   Form Inputs & High-Contrast Placeholders (Light & Dark)
   ======================================================== */
.form-control,
.form-select {
    color: #0f172a !important;
}

.form-control::placeholder {
    color: #475569 !important; /* Visible high contrast in light mode */
    opacity: 1 !important;
}

/* Dark Mode Form Styling (Brite & Morph Dark) */
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background-color: #111827 !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background-color: #1e293b !important;
    color: #ffffff !important;
    border-color: #00d2ff !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 229, 255, 0.25) !important;
}

[data-bs-theme="dark"] .form-control::placeholder {
    color: #94a3b8 !important; /* Crisp silver placeholder in dark mode */
    opacity: 1 !important;
}

[data-bs-theme="dark"] .form-select option {
    background-color: #111827 !important;
    color: #f8fafc !important;
}

[data-bs-theme="dark"] .input-group-text {
    background-color: #1f2937 !important;
    color: #94a3b8 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* ========================================================
   Table Styles - Sleek Gaming Theming (No White Header Box)
   ======================================================== */
.gp-table-header th,
.table thead th {
    background-color: #0b0f19 !important;
    color: #00e5ff !important;
    border-bottom: 2px solid rgba(0, 229, 255, 0.4) !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    padding: 14px 10px;
    vertical-align: middle;
}

[data-bs-theme="light"] .gp-table-header th,
[data-bs-theme="light"] .table thead th {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    border-bottom: 2px solid #cbd5e1 !important;
}

[data-bs-theme="dark"] .table-light,
[data-bs-theme="dark"] .table-light th,
[data-bs-theme="dark"] .table thead.table-light th {
    background-color: #0b0f19 !important;
    color: #00e5ff !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* DataTables pagination and length controls in dark mode */
[data-bs-theme="dark"] .page-link {
    background-color: #111827;
    border-color: rgba(255, 255, 255, 0.15);
    color: #94a3b8;
}

[data-bs-theme="dark"] .page-item.active .page-link {
    background-color: #00d2ff;
    border-color: #00d2ff;
    color: #000;
    font-weight: bold;
}

/* ========================================================
   Dropdown Menus - High Contrast Gaming Styles & Positioning
   ======================================================== */
.dropdown-menu {
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7) !important;
    padding: 0.5rem 0 !important;
    min-width: 200px !important;
    z-index: 1060 !important;
}

.dropdown-menu.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.dropdown-menu-end {
    right: 0 !important;
    left: auto !important;
}

.dropdown-item {
    color: #cbd5e1 !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.9rem !important;
    transition: all 0.15s ease !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: #1e293b !important;
    color: #00d2ff !important;
}

.dropdown-item.active,
.dropdown-item:active {
    background: #00d2ff !important;
    color: #0b0f19 !important;
    font-weight: 700 !important;
}

/* High-Contrast Theme Switcher (Moon / Sun) */
.gp-icon-moon {
    color: #818cf8 !important; /* Night lavender/indigo on dark background */
}

.gp-icon-sun {
    color: #fbbf24 !important; /* Golden sun */
}

#gp-mode-icon.fa-moon {
    color: #4f46e5 !important; /* Deep indigo for high contrast on light navbar pill */
}

#gp-mode-icon.fa-sun {
    color: #d97706 !important; /* Rich amber on light navbar pill */
}

/* When dropdown item is active (cyan background) -> all icons become bold dark black/navy */
.dropdown-item.active .gp-icon-moon,
.dropdown-item.active .gp-icon-sun,
.dropdown-item.active .gp-theme-check,
.dropdown-item.active i {
    color: #0b0f19 !important;
}

.dropdown-header {
    color: #94a3b8 !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.5px !important;
    padding: 0.5rem 1rem 0.25rem 1rem !important;
}

.dropdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin: 0.35rem 0 !important;
}

/* Custom Select Enhancer (Country SVG Flags & Store Brand Logos) */
.gp-custom-select-btn {
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: inherit !important;
    padding: 0.475rem 0.85rem !important;
    border-radius: 8px !important;
    width: 100% !important;
    text-align: left !important;
    font-size: 0.95rem !important;
    cursor: pointer;
}

[data-bs-theme="light"] .gp-custom-select-btn {
    background-color: #ffffff !important;
    border: 1px solid #ced4da !important;
    color: #212529 !important;
}

.gp-custom-select-btn:focus,
.gp-custom-select-btn[aria-expanded="true"] {
    border-color: #00d2ff !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 210, 255, 0.25) !important;
}

.gp-custom-select-wrapper .dropdown-menu {
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    background-color: #121824 !important;
    border-radius: 8px !important;
}

[data-bs-theme="light"] .gp-custom-select-wrapper .dropdown-menu {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
}

.gp-custom-select-wrapper .dropdown-item {
    font-size: 0.92rem !important;
    cursor: pointer;
}

.gp-custom-select-wrapper .dropdown-item:hover,
.gp-custom-select-wrapper .dropdown-item:focus {
    background-color: rgba(0, 210, 255, 0.15) !important;
    color: #00d2ff !important;
}

.gp-custom-select-wrapper .dropdown-item.active {
    background-color: #00d2ff !important;
    color: #0b0f19 !important;
    font-weight: 700 !important;
}

/* ========================================================
   Responsive Navbar & Collapsible Drawer (Mobile & Tablet)
   ======================================================== */
.gp-navbar .nav-link,
.gp-navbar .btn {
    white-space: nowrap !important;
}

@media (max-width: 1199.98px) {
    .gp-navbar .navbar-collapse {
        background: #0b0f19;
        padding: 1.25rem;
        border-radius: 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.12);
        margin-top: 0.85rem;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
    }
    .gp-navbar .navbar-nav.me-auto {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 0.75rem;
        margin-bottom: 0.75rem !important;
    }
    .gp-navbar .navbar-nav.ms-auto {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }
    .gp-navbar .navbar-nav.ms-auto .dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100% !important;
        margin-top: 0.5rem !important;
    }
    .gp-navbar .navbar-nav.ms-auto .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================================
   Modals - Sleek Gaming Styling
   ======================================================== */
.modal-backdrop.show {
    opacity: 0.75 !important;
    background-color: #000 !important;
}

[data-bs-theme="dark"] .modal-content {
    background-color: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #f8fafc !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8) !important;
}

[data-bs-theme="dark"] .modal-header,
[data-bs-theme="dark"] .modal-footer {
    border-color: rgba(255, 255, 255, 0.1) !important;
}
