/* ==========================================================================
   Core Page Structure & Configuration
   ========================================================================== */
body { 
    font-family: 'Inter', sans-serif; 
    background-color: #f8f9fa; 
    padding-bottom: 80px; /* Space added so bottom navbar doesn't block content cards */
    scroll-behavior: smooth;
}

/* Mobile Spacing Custom Rules Overrides */
@media (max-width: 576px) {
    .container-mobile-fix {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* ==========================================================================
   Buyer Request Content Grid Items & Card Layouts
   ========================================================================== */
.quick-item-card {
    display: flex; 
    flex-direction: column; 
    height: 100%; 
    width: 100%; 
    background: #fff; 
    border-radius: 16px !important; 
    overflow: hidden; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.06); 
    border: 1px solid #eaeaea; 
    transition: transform 0.2s;
}
.quick-item-card:hover { 
    transform: translateY(-3px); 
}

.share-btn {
    background: #f1f3f5;
    border: none;
    color: #495057;
    font-size: 15px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    cursor: pointer;
}
.share-btn:hover {
    background: #e2e6ea;
    color: #212529;
}

/* Lightning Pulse Effect Animation */
@keyframes lightningPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 153, 0, 0.5); }
    70% { box-shadow: 0 0 0 6px rgba(255, 153, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 153, 0, 0); }
}

/* Electric Lightning Badge Style styling */
.hot-lightning-badge {
    background: linear-gradient(135deg, #FF9900 0%, #FF5E00 100%);
    color: #ffffff !important;
    font-size: 11px;
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(255, 94, 0, 0.2);
    animation: lightningPulse 2s infinite;
}
.hot-lightning-badge i {
    color: #FFF200;
    text-shadow: 0 0 4px rgba(0,0,0,0.2);
}

/* ==========================================================================
   Global Floating UI Navigation Elements
   ========================================================================== */

/* Floating Back To Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 95px; /* Sits directly above the navigation bar line layout */
    right: 20px;
    width: 46px;
    height: 46px;
    background-color: #495057;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1020;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}
.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}
.back-to-top-btn:hover {
    background-color: #212529;
    transform: translateY(-2px);
}

/* Sticky Bottom Navigation Bar Layout */
.bottom-nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: #ffffff;
    border-top: 1px solid #eaeaea;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 999; /* Ensure it stays above main content context */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 0 10px;
    transition: transform 0.3s ease-in-out; /* Smooth transition for sliding up and down */
}

/* This class will be added via JavaScript when scrolling down */
.bottom-nav-bar.nav-hidden {
    transform: translateY(100%); /* Moves the nav entirely off-screen downwards */
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #28a745;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    flex: 1;
    text-align: center;
    transition: color 0.2s;
}
.bottom-nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}
.bottom-nav-item:hover {
    color: #1e7e34;
}

/* Central Plus (+) Action Circular Button Container */
.bottom-nav-center {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.center-add-btn {
    width: 54px;
    height: 54px;
    background-color: #28a745;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    text-decoration: none !important;
    transition: transform 0.2s, background-color 0.2s;
}
.center-add-btn:hover {
    transform: scale(1.05);
    background-color: #218838;
}