/**
 * BloxToolbox - Professional Dark Theme
 * Built on Bootstrap 5 with Raleway font
 */

/* ==========================================
   CSS Variables & Theme
   ========================================== */
:root {
    /* Primary Colors */
    --rh-primary: #6366f1;
    --rh-primary-light: #818cf8;
    --rh-primary-dark: #4f46e5;
    --rh-primary-glow: rgba(99, 102, 241, 0.3);

    /* Accent Colors */
    --rh-accent: #22d3ee;
    --rh-accent-light: #67e8f9;
    --rh-success: #10b981;
    --rh-danger: #ef4444;
    --rh-warning: #f59e0b;
    --rh-info: #3b82f6;

    /* Background Colors */
    --rh-bg-darkest: #0a0a0f;
    --rh-bg-dark: #0f0f1a;
    --rh-bg-card: #16162a;
    --rh-bg-elevated: #1e1e38;
    --rh-bg-hover: #252545;

    /* Border & Surface */
    --rh-border: rgba(255, 255, 255, 0.08);
    --rh-border-light: rgba(255, 255, 255, 0.12);
    --rh-surface: rgba(255, 255, 255, 0.03);

    /* Text Colors */
    --rh-text: #f1f5f9;
    --rh-text-secondary: #94a3b8;
    --rh-text-muted: #64748b;

    /* Special Colors */
    --rh-robux: #00b06f;
    --rh-robux-light: #00d884;
    --rh-gold: #fbbf24;

    /* Gradients */
    --rh-gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --rh-gradient-accent: linear-gradient(135deg, #22d3ee 0%, #6366f1 100%);
    --rh-gradient-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --rh-gradient-dark: linear-gradient(180deg, var(--rh-bg-dark) 0%, var(--rh-bg-darkest) 100%);

    /* Shadows */
    --rh-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --rh-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --rh-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --rh-shadow-glow: 0 0 30px var(--rh-primary-glow);

    /* Transitions */
    --rh-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --rh-transition-fast: all 0.15s ease;

    /* Border Radius */
    --rh-radius-sm: 8px;
    --rh-radius-md: 12px;
    --rh-radius-lg: 16px;
    --rh-radius-xl: 24px;
    --rh-radius-full: 9999px;
}

/* ==========================================
   Global Styles
   ========================================== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--rh-gradient-dark);
    background-attachment: fixed;
    color: var(--rh-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--rh-text);
}

a {
    color: var(--rh-primary-light);
    text-decoration: none;
    transition: var(--rh-transition-fast);
}

a:hover {
    color: var(--rh-accent);
}

::selection {
    background: var(--rh-primary);
    color: white;
}

/* ==========================================
   Navbar
   ========================================== */
.navbar {
    background: rgba(15, 15, 26, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--rh-border);
    padding: 0.75rem 0;
    transition: var(--rh-transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95) !important;
    box-shadow: var(--rh-shadow-md);
}

.navbar-brand {
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--rh-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    background: var(--rh-gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--rh-text-secondary) !important;
    padding: 0.5rem 0.65rem !important;
    border-radius: var(--rh-radius-sm);
    transition: var(--rh-transition-fast);
    position: relative;
    font-size: 0.9rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--rh-text) !important;
    background: var(--rh-surface);
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--rh-gradient-primary);
    border-radius: var(--rh-radius-full);
}

#navSearchInput {
    background: var(--rh-bg-elevated);
    border: 1px solid var(--rh-border);
    color: var(--rh-text);
    border-radius: var(--rh-radius-full) 0 0 var(--rh-radius-full);
    padding: 0.5rem 1.25rem;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    min-width: 220px;
    transition: var(--rh-transition);
}

#navSearchInput:focus {
    background: var(--rh-bg-hover);
    border-color: var(--rh-primary);
    color: var(--rh-text);
    box-shadow: 0 0 0 3px var(--rh-primary-glow);
    outline: none;
}

#navSearchInput::placeholder {
    color: var(--rh-text-muted);
}

.navbar .btn-outline-light {
    border-radius: 0 var(--rh-radius-full) var(--rh-radius-full) 0;
    border: 1px solid var(--rh-border);
    border-left: none;
    background: var(--rh-bg-elevated);
    color: var(--rh-text-secondary);
    transition: var(--rh-transition);
}

.navbar .btn-outline-light:hover {
    background: var(--rh-primary);
    color: white;
    border-color: var(--rh-primary);
}

.dropdown-menu-dark {
    background: var(--rh-bg-card);
    border: 1px solid var(--rh-border);
    border-radius: var(--rh-radius-md);
    box-shadow: var(--rh-shadow-lg);
    padding: 0.5rem;
    backdrop-filter: blur(10px);
}

.dropdown-menu-dark .dropdown-item {
    color: var(--rh-text-secondary);
    border-radius: var(--rh-radius-sm);
    padding: 0.6rem 1rem;
    font-weight: 500;
    transition: var(--rh-transition-fast);
}

.dropdown-menu-dark .dropdown-item:hover {
    background: var(--rh-bg-hover);
    color: var(--rh-text);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero-section {
    background: var(--rh-bg-dark);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--rh-border);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--rh-primary-glow) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.5;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--rh-bg-darkest), transparent);
    pointer-events: none;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    background: linear-gradient(135deg, var(--rh-text) 0%, var(--rh-text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section h1 i {
    background: var(--rh-gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section .lead {
    font-size: 1.25rem;
    color: var(--rh-text-secondary);
    font-weight: 400;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.hero-search {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-search .form-control {
    background: var(--rh-bg-card);
    border: 2px solid var(--rh-border-light);
    color: var(--rh-text);
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    border-radius: var(--rh-radius-full) 0 0 var(--rh-radius-full);
    transition: var(--rh-transition);
}

.hero-search .form-control:focus {
    background: var(--rh-bg-elevated);
    border-color: var(--rh-primary);
    color: var(--rh-text);
    box-shadow: 0 0 0 4px var(--rh-primary-glow), var(--rh-shadow-lg);
    outline: none;
}

.hero-search .form-control::placeholder {
    color: var(--rh-text-muted);
    font-weight: 400;
}

.hero-search .btn-primary {
    background: var(--rh-gradient-primary);
    border: none;
    border-radius: 0 var(--rh-radius-full) var(--rh-radius-full) 0;
    padding: 1.25rem 2rem;
    font-weight: 600;
    font-family: 'Raleway', sans-serif;
    transition: var(--rh-transition);
}

.hero-search .btn-primary:hover {
    transform: scale(1.02);
    box-shadow: var(--rh-shadow-glow);
}

/* Search Tabs */
.search-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.search-tabs .btn {
    border-radius: var(--rh-radius-full);
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-family: 'Raleway', sans-serif;
    font-size: 0.875rem;
    transition: var(--rh-transition);
}

.search-tabs .btn-primary {
    background: var(--rh-gradient-primary);
    border: none;
}

.search-tabs .btn-outline-primary {
    border: 1px solid var(--rh-border-light);
    color: var(--rh-text-secondary);
    background: transparent;
}

.search-tabs .btn-outline-primary:hover,
.search-tabs .btn-outline-primary.active {
    background: var(--rh-gradient-primary);
    border-color: transparent;
    color: white;
}

/* ==========================================
   Cards
   ========================================== */
.card {
    background: var(--rh-bg-card);
    border: 1px solid var(--rh-border);
    border-radius: var(--rh-radius-lg);
    transition: var(--rh-transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--rh-border-light);
    box-shadow: var(--rh-shadow-lg);
}

.card-header {
    background: var(--rh-surface);
    border-bottom: 1px solid var(--rh-border);
    font-weight: 600;
    padding: 1rem 1.25rem;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background: var(--rh-surface);
    border-top: 1px solid var(--rh-border);
    padding: 1rem 1.25rem;
}

/* Tool Cards */
.tool-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--rh-gradient-primary);
    transform: scaleX(0);
    transition: var(--rh-transition);
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-card .tool-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--rh-gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--rh-transition);
}

.tool-card:hover .tool-icon {
    transform: scale(1.1);
}

.tool-card h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--rh-text);
}

.tool-card p {
    color: var(--rh-text-secondary);
    font-size: 0.9rem;
}

/* Feature Cards */
.feature-card {
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--rh-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card h6 {
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--rh-text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* User Card */
.user-card {
    cursor: pointer;
}

.user-card .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--rh-border);
    transition: var(--rh-transition);
}

.user-card:hover .avatar {
    border-color: var(--rh-primary);
    box-shadow: 0 0 20px var(--rh-primary-glow);
}

.user-card .avatar-lg {
    width: 150px;
    height: 150px;
}

/* Game Card */
.game-card .game-icon {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--rh-radius-md);
}

.game-card .player-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    padding: 0.375rem 0.75rem;
    border-radius: var(--rh-radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.game-card .player-count i {
    color: var(--rh-success);
}

/* Item Card */
.item-card .item-thumbnail {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: var(--rh-surface);
    border-radius: var(--rh-radius-md);
}

.item-card .price {
    color: var(--rh-robux);
    font-weight: 700;
}

.item-card .limited-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--rh-gradient-gold);
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: var(--rh-radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================
   Profile Page
   ========================================== */
.profile-header {
    background: linear-gradient(135deg, var(--rh-bg-card) 0%, var(--rh-bg-elevated) 100%);
    padding: 2.5rem;
    border-radius: var(--rh-radius-xl);
    margin-bottom: 2rem;
    border: 1px solid var(--rh-border);
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--rh-gradient-primary);
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--rh-primary);
    object-fit: cover;
    box-shadow: 0 0 30px var(--rh-primary-glow);
}

.profile-stats .stat-item {
    text-align: center;
    padding: 1.25rem;
}

.profile-stats .stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--rh-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-stats .stat-label {
    font-size: 0.85rem;
    color: var(--rh-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.presence-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    border-radius: var(--rh-radius-full);
    font-size: 0.85rem;
    font-weight: 600;
}

.presence-badge.online {
    background: rgba(16, 185, 129, 0.15);
    color: var(--rh-success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.presence-badge.offline {
    background: var(--rh-surface);
    color: var(--rh-text-muted);
    border: 1px solid var(--rh-border);
}

.presence-badge.ingame {
    background: rgba(99, 102, 241, 0.15);
    color: var(--rh-primary-light);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.presence-badge.instudio {
    background: rgba(245, 158, 11, 0.15);
    color: var(--rh-warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ==========================================
   Game Details
   ========================================== */
.game-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.game-header .game-icon-large {
    width: 200px;
    height: 200px;
    border-radius: var(--rh-radius-lg);
    object-fit: cover;
    border: 2px solid var(--rh-border);
}

.game-stats {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.game-stat {
    text-align: center;
    padding: 1rem 1.5rem;
    background: var(--rh-surface);
    border-radius: var(--rh-radius-md);
}

.game-stat .value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--rh-text);
}

.game-stat .label {
    font-size: 0.8rem;
    color: var(--rh-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.like-bar {
    height: 8px;
    background: var(--rh-danger);
    border-radius: var(--rh-radius-full);
    overflow: hidden;
}

.like-bar .like-fill {
    height: 100%;
    background: var(--rh-success);
    transition: width 0.5s ease;
}

/* Server List */
.server-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--rh-bg-card);
    border: 1px solid var(--rh-border);
    border-radius: var(--rh-radius-md);
    margin-bottom: 0.75rem;
    transition: var(--rh-transition);
}

.server-item:hover {
    border-color: var(--rh-primary);
    background: var(--rh-bg-elevated);
}

.server-item .player-avatars {
    display: flex;
}

.server-item .player-avatars img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--rh-bg-card);
    margin-left: -10px;
}

.server-item .player-avatars img:first-child {
    margin-left: 0;
}

/* ==========================================
   Limiteds Table
   ========================================== */
.limited-table img {
    width: 44px;
    height: 44px;
    border-radius: var(--rh-radius-sm);
}

.demand-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--rh-radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.demand-badge.amazing { background: rgba(16, 185, 129, 0.15); color: var(--rh-success); }
.demand-badge.high { background: rgba(59, 130, 246, 0.15); color: var(--rh-info); }
.demand-badge.normal { background: var(--rh-surface); color: var(--rh-text-secondary); }
.demand-badge.low { background: rgba(245, 158, 11, 0.15); color: var(--rh-warning); }
.demand-badge.terrible { background: rgba(239, 68, 68, 0.15); color: var(--rh-danger); }

.trend-indicator {
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.trend-indicator.rising { color: var(--rh-success); }
.trend-indicator.lowering { color: var(--rh-danger); }
.trend-indicator.stable { color: var(--rh-text-muted); }
.trend-indicator.fluctuating { color: var(--rh-warning); }

/* ==========================================
   Tools Pages
   ========================================== */
.inventory-value-summary {
    background: var(--rh-gradient-primary);
    color: white;
    padding: 2.5rem;
    border-radius: var(--rh-radius-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.inventory-value-summary::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.inventory-value-summary .value {
    font-size: 3rem;
    font-weight: 800;
    position: relative;
}

.inventory-value-summary .label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* Trade Calculator */
.trade-side {
    background: var(--rh-bg-card);
    border: 1px solid var(--rh-border);
    border-radius: var(--rh-radius-xl);
    padding: 1.5rem;
    min-height: 400px;
}

.trade-side .trade-items {
    min-height: 300px;
    border: 2px dashed var(--rh-border);
    border-radius: var(--rh-radius-md);
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-content: flex-start;
}

.trade-side .trade-total {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--rh-robux);
}

/* ==========================================
   Search Results Dropdown
   ========================================== */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--rh-bg-card);
    border: 1px solid var(--rh-border);
    border-radius: var(--rh-radius-lg);
    max-height: 450px;
    overflow-y: auto;
    z-index: 1050;
    box-shadow: var(--rh-shadow-lg);
    display: none;
    margin-top: 0.5rem;
}

.search-results-dropdown.show {
    display: block;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--rh-border);
    cursor: pointer;
    transition: var(--rh-transition-fast);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--rh-bg-hover);
}

.search-result-item img {
    width: 48px;
    height: 48px;
    border-radius: var(--rh-radius-sm);
    margin-right: 1rem;
    object-fit: cover;
}

.search-result-item .result-info {
    flex: 1;
}

.search-result-item .result-name {
    font-weight: 600;
    color: var(--rh-text);
}

.search-result-item .result-type {
    font-size: 0.75rem;
    color: var(--rh-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    border-radius: var(--rh-radius-sm);
    transition: var(--rh-transition);
    padding: 0.5rem 1.25rem;
}

.btn-primary {
    background: var(--rh-gradient-primary);
    border: none;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--rh-shadow-md);
    background: var(--rh-gradient-primary);
}

.btn-outline-primary {
    border: 1px solid var(--rh-primary);
    color: var(--rh-primary-light);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--rh-primary);
    border-color: var(--rh-primary);
    color: white;
}

.btn-secondary {
    background: var(--rh-bg-elevated);
    border: 1px solid var(--rh-border);
    color: var(--rh-text-secondary);
}

.btn-secondary:hover {
    background: var(--rh-bg-hover);
    color: var(--rh-text);
}

/* ==========================================
   Form Controls
   ========================================== */
.form-control,
.form-select {
    font-family: 'Raleway', sans-serif;
    background: var(--rh-bg-elevated);
    border: 1px solid var(--rh-border);
    color: var(--rh-text);
    border-radius: var(--rh-radius-sm);
    padding: 0.625rem 1rem;
    transition: var(--rh-transition);
}

.form-control:focus,
.form-select:focus {
    background: var(--rh-bg-hover);
    border-color: var(--rh-primary);
    color: var(--rh-text);
    box-shadow: 0 0 0 3px var(--rh-primary-glow);
    outline: none;
}

.form-control::placeholder {
    color: var(--rh-text-muted);
}

.form-label {
    font-weight: 600;
    color: var(--rh-text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

/* ==========================================
   Loading States
   ========================================== */
.skeleton {
    background: linear-gradient(90deg, var(--rh-bg-card) 25%, var(--rh-bg-elevated) 50%, var(--rh-bg-card) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--rh-radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-text.short { width: 40%; }
.skeleton-text.medium { width: 70%; }

/* Spinner */
.spinner-border {
    color: var(--rh-primary) !important;
}

/* ==========================================
   Badges & Tags
   ========================================== */
.badge {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: var(--rh-radius-full);
}

.badge.bg-primary {
    background: var(--rh-gradient-primary) !important;
}

.badge.bg-success {
    background: rgba(16, 185, 129, 0.15) !important;
    color: var(--rh-success) !important;
}

.badge.bg-danger {
    background: rgba(239, 68, 68, 0.15) !important;
    color: var(--rh-danger) !important;
}

/* ==========================================
   Tables
   ========================================== */
.table {
    color: var(--rh-text);
    border-color: var(--rh-border);
}

.table > thead {
    background: var(--rh-bg-elevated);
}

.table > thead th {
    font-weight: 700;
    color: var(--rh-text-secondary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--rh-border);
    padding: 1rem;
}

.table > tbody td {
    padding: 1rem;
    border-bottom: 1px solid var(--rh-border);
    vertical-align: middle;
}

.table > tbody tr {
    transition: var(--rh-transition-fast);
}

.table > tbody tr:hover {
    background: var(--rh-bg-hover);
}

/* DataTables Override */
.dataTables_wrapper {
    color: var(--rh-text);
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    color: var(--rh-text-secondary);
    font-family: 'Raleway', sans-serif;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    background: var(--rh-bg-elevated);
    border: 1px solid var(--rh-border);
    color: var(--rh-text);
    border-radius: var(--rh-radius-sm);
}

.page-item .page-link {
    background: var(--rh-bg-card);
    border: 1px solid var(--rh-border);
    color: var(--rh-text-secondary);
    font-weight: 600;
}

.page-item.active .page-link {
    background: var(--rh-gradient-primary);
    border-color: var(--rh-primary);
    color: white;
}

.page-item .page-link:hover {
    background: var(--rh-bg-hover);
    color: var(--rh-text);
}

/* ==========================================
   Nav Tabs & Pills
   ========================================== */
.nav-tabs {
    border-bottom: 1px solid var(--rh-border);
}

.nav-tabs .nav-link {
    color: var(--rh-text-secondary);
    font-weight: 600;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 1rem 1.5rem;
    transition: var(--rh-transition);
}

.nav-tabs .nav-link:hover {
    color: var(--rh-text);
    border-color: var(--rh-border-light);
}

.nav-tabs .nav-link.active {
    color: var(--rh-primary-light);
    background: transparent;
    border-color: var(--rh-primary);
}

.nav-pills .nav-link {
    color: var(--rh-text-secondary);
    font-weight: 600;
    border-radius: var(--rh-radius-sm);
    padding: 0.75rem 1.25rem;
}

.nav-pills .nav-link.active {
    background: var(--rh-gradient-primary);
    color: white;
}

/* ==========================================
   Utilities
   ========================================== */
.text-robux {
    color: var(--rh-robux) !important;
}

.text-gradient {
    background: var(--rh-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-card {
    background-color: var(--rh-bg-card);
}

.bg-elevated {
    background-color: var(--rh-bg-elevated);
}

.border-custom {
    border-color: var(--rh-border) !important;
}

.cursor-pointer {
    cursor: pointer;
}

.glass {
    background: rgba(22, 22, 42, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ==========================================
   Scrollbar
   ========================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--rh-bg-darkest);
}

::-webkit-scrollbar-thumb {
    background: var(--rh-bg-elevated);
    border-radius: var(--rh-radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--rh-bg-hover);
}

/* ==========================================
   Toast Notifications
   ========================================== */
.toast {
    background: var(--rh-bg-card);
    border: 1px solid var(--rh-border);
    border-radius: var(--rh-radius-md);
    box-shadow: var(--rh-shadow-lg);
}

.toast-header {
    background: var(--rh-bg-elevated);
    color: var(--rh-text);
    border-bottom: 1px solid var(--rh-border);
}

.toast-body {
    color: var(--rh-text);
}

/* ==========================================
   Footer
   ========================================== */
.footer-main {
    background: var(--rh-bg-darkest);
    border-top: 1px solid var(--rh-border);
    padding: 3rem 0 2rem;
    margin-top: auto;
}

.footer-brand h5 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--rh-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand h5 i {
    -webkit-text-fill-color: var(--rh-primary-light);
}

.footer-brand p {
    color: var(--rh-text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social .social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rh-bg-card);
    border: 1px solid var(--rh-border);
    border-radius: var(--rh-radius-sm);
    color: var(--rh-text-secondary);
    font-size: 1.1rem;
    transition: var(--rh-transition);
}

.footer-social .social-link:hover {
    background: var(--rh-primary);
    border-color: var(--rh-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--rh-shadow-md);
}

.footer-heading {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--rh-text);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 24px;
    height: 2px;
    background: var(--rh-gradient-primary);
    border-radius: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: var(--rh-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--rh-transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--rh-primary-light);
    transform: translateX(4px);
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--rh-border), transparent);
    margin: 1.5rem 0;
}

.footer-copyright {
    color: var(--rh-text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.footer-disclaimer {
    color: var(--rh-text-muted);
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 992px) {
    .hero-section {
        padding: 3rem 0;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .navbar-collapse {
        background: var(--rh-bg-card);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: var(--rh-radius-md);
        border: 1px solid var(--rh-border);
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-search .form-control {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }

    .hero-search .btn-primary {
        padding: 1rem 1.5rem;
    }

    .profile-header {
        text-align: center;
    }

    .profile-avatar {
        width: 120px;
        height: 120px;
    }

    .game-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .game-header .game-icon-large {
        width: 150px;
        height: 150px;
    }

    .game-stats {
        justify-content: center;
    }

    .tool-card {
        padding: 1.5rem 1rem;
    }
}

/* ==========================================
   Animations
   ========================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease;
}

.animate-slide-up {
    animation: slideUp 0.5s ease;
}

/* Staggered animation for cards */
.stagger > * {
    animation: slideUp 0.5s ease forwards;
    opacity: 0;
}

.stagger > *:nth-child(1) { animation-delay: 0.1s; }
.stagger > *:nth-child(2) { animation-delay: 0.2s; }
.stagger > *:nth-child(3) { animation-delay: 0.3s; }
.stagger > *:nth-child(4) { animation-delay: 0.4s; }
.stagger > *:nth-child(5) { animation-delay: 0.5s; }
.stagger > *:nth-child(6) { animation-delay: 0.6s; }

/* ==========================================
   Velocity Showcase - Data Moat Hype
   ========================================== */

/* Pulse animation for hot items */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.pulse-animation {
    animation: pulse 1.5s infinite;
}

/* Glow effect for exclusive content */
@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(245, 158, 11, 0.5); }
    50% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.8), 0 0 30px rgba(245, 158, 11, 0.4); }
}

.glow-animation {
    animation: glow 2s infinite;
}

/* Ticker scroll animation */
@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-scroll {
    display: flex;
    gap: 2rem;
    animation: tickerScroll 30s linear infinite;
    white-space: nowrap;
}

.ticker-scroll:hover {
    animation-play-state: paused;
}

/* Velocity leaderboard styles */
#velocityLeaderboard a:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    transform: translateX(4px);
}

#velocityLeaderboard .badge {
    font-size: 0.7rem;
    padding: 0.35rem 0.6rem;
}

/* Counter animation flash */
@keyframes counterFlash {
    0% { color: inherit; }
    50% { color: var(--rh-warning); text-shadow: 0 0 10px var(--rh-warning); }
    100% { color: inherit; }
}

.counter-flash {
    animation: counterFlash 0.3s ease;
}

/* Exclusive badge shimmer */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.badge-shimmer {
    background: linear-gradient(90deg,
        var(--rh-warning) 0%,
        #fff 50%,
        var(--rh-warning) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Market intelligence cards */
#moatSection .card {
    transition: var(--rh-transition);
}

#moatSection .card:hover {
    transform: translateY(-2px);
    box-shadow: var(--rh-shadow-md);
}

/* Velocity showcase gradient border */
#velocityShowcase > .card {
    position: relative;
    border-radius: var(--rh-radius-xl);
    overflow: hidden;
}

#velocityShowcase > .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--rh-radius-xl);
    padding: 2px;
    background: linear-gradient(135deg, var(--rh-primary), var(--rh-warning), var(--rh-danger));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Live indicator pulse */
@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.badge .bi-broadcast {
    animation: livePulse 1s infinite;
}

/* Hot items fire animation */
@keyframes fireGlow {
    0%, 100% { filter: drop-shadow(0 0 2px rgba(245, 158, 11, 0.5)); }
    50% { filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.8)); }
}

.text-warning .bi-fire {
    animation: fireGlow 1s infinite;
}

/* Min width utility for flex truncation */
.min-width-0 {
    min-width: 0;
}
