/* ========================================================
   FF BAZAR BD - Modern Gaming & PWA Stylesheet
   Theme: Free Fire Cyber/Flame Dark UI
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&display=swap');

:root {
    --bg-main: #0b0f19;
    --bg-card: #131b2e;
    --bg-card-hover: #1a253e;
    --border-color: #233150;
    --primary: #f97316;
    --primary-hover: #ea580c;
    --primary-glow: rgba(249, 115, 22, 0.35);
    --accent: #eab308;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --bottom-nav-height: 64px;
}

* {
    box-sizing: border-box;
    font-family: 'Hind Siliguri', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: var(--bottom-nav-height);
}

@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #f97316;
}

/* Glassmorphism Cards */
.ff-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.ff-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -10px var(--primary-glow);
}

/* Gradient Borders */
.gradient-border {
    position: relative;
    border-radius: 1rem;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    padding: 1px;
}
.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 1.5px;
    background: linear-gradient(135deg, #f97316, transparent 60%, #eab308);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Gaming Gradient Buttons */
.btn-primary {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    font-weight: 600;
    border-radius: 0.75rem;
    box-shadow: 0 4px 14px 0 var(--primary-glow);
    transition: all 0.2s ease-in-out;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
    transform: translateY(-1px);
}

/* Floating Bottom Navigation for Mobile */
.mobile-nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid #1e293b;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.75rem;
    text-decoration: none;
    transition: color 0.15s ease;
    width: 20%;
}
.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: #f97316;
}

.mobile-nav-item i {
    font-size: 1.25rem;
    margin-bottom: 2px;
}

/* Pulsing Badge Indicator */
.pulse-badge {
    position: relative;
}
.pulse-badge::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

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

/* Deal Room Chat Bubbles */
.chat-bubble-buyer {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 1rem 1rem 1rem 0;
    color: #f8fafc;
}
.chat-bubble-seller {
    background: #1a2e35;
    border: 1px solid #0d9488;
    border-radius: 1rem 1rem 0 1rem;
    color: #f8fafc;
}
.chat-bubble-admin {
    background: #2b1b17;
    border: 1px solid #ea580c;
    border-radius: 1rem;
    color: #f8fafc;
}
.chat-bubble-system {
    background: #0f172a;
    border: 1px dashed #475569;
    border-radius: 0.75rem;
    color: #cbd5e1;
}

/* Attributes Grid */
.attr-pill {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(51, 65, 85, 0.8);
    border-radius: 0.5rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #cbd5e1;
}
