/* ================================================================
   GEMSHUB — ENTERPRISE TRUST SIGNALS CSS
   Advanced animations, social proof, urgency elements
   ================================================================ */

/* ── READING PROGRESS BAR ── */
#readingProgress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
    z-index: 9999;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(201,168,76,0.5);
}

/* ── LIVE VIEWERS BADGE ── */
#liveViewers {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F0FDF4;
    border: 1px solid #86EFAC;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #166534;
    margin-bottom: 14px;
}
.live-dot {
    width: 8px; height: 8px;
    background: #22C55E;
    border-radius: 50%;
    animation: livePulse 1.5s ease infinite;
    flex-shrink: 0;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* ── BLINK ANIMATION ── */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ── CART BOUNCE ── */
@keyframes cartBounce {
    0%, 100% { transform: scale(1); }
    30% { transform: scale(1.4); }
    60% { transform: scale(0.9); }
    80% { transform: scale(1.1); }
}

/* ── WHATSAPP PULSE ── */
@keyframes whatsappPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-5deg); }
    75% { transform: scale(1.1) rotate(5deg); }
}

/* ── COUNTDOWN TIMER ── */
.countdown-wrap {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--primary);
    border-radius: 10px;
    padding: 10px 16px;
    margin: 12px 0;
}
.countdown-unit {
    text-align: center;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 6px 10px;
    min-width: 48px;
}
.countdown-unit strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--gold-light);
    line-height: 1;
}
.countdown-unit small {
    font-size: 10px;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.countdown-sep {
    color: var(--gold);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 2px;
}

/* ── SOCIAL PROOF TICKER ── */
#socialProofTicker {
    animation: none !important;
}

/* ── TRUST BADGES (Enhanced) ── */
.trust-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 25px;
    padding: 7px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    transition: var(--transition);
    cursor: default;
}
.trust-badge i { color: var(--gold-dark); font-size: 14px; }
.trust-badge:hover {
    border-color: var(--gold);
    background: var(--gold-pale);
    color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201,168,76,0.15);
}

/* ── ENTERPRISE TRUST SECTION ── */
.enterprise-trust-bar {
    background: var(--primary);
    padding: 20px 0;
    overflow: hidden;
}
.trust-scroll-inner {
    display: flex;
    gap: 0;
    animation: trustScroll 30s linear infinite;
    width: max-content;
}
.trust-scroll-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 32px;
    border-right: 1px solid rgba(255,255,255,0.1);
    white-space: nowrap;
    color: rgba(255,255,255,0.8);
    font-size: 13.5px;
    font-weight: 500;
}
.trust-scroll-item i { color: var(--gold); font-size: 16px; }
@keyframes trustScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── STICKY ADD TO CART ── */
#stickyAddToCart {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--white);
    border-top: 2px solid var(--gold-border);
    padding: 14px 20px;
    z-index: 500;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
#stickyAddToCart .sticky-product-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#stickyAddToCart .sticky-price {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--gold-dark);
    font-weight: 700;
    flex-shrink: 0;
}

/* ── COOKIE CONSENT ── */
#cookieConsent {
    animation: slideUpConsent 0.5s ease 2s both;
}
@keyframes slideUpConsent {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* ── MEGA MENU (ShubhGems style) ── */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    padding: 28px;
    display: none;
    z-index: 999;
    min-width: 700px;
    max-width: 100vw;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}
.nav-item-mega:hover .mega-menu { display: grid; }
.mega-col { padding: 0 24px; border-right: 1px solid var(--border); }
.mega-col:last-child { border-right: none; }
.mega-col-title {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold-dark);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gold-border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.mega-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    font-size: 13.5px;
    color: var(--text);
    border-radius: 6px;
    transition: var(--transition);
    text-decoration: none;
}
.mega-link:hover {
    color: var(--gold-dark);
    padding-left: 4px;
}
.mega-link .mega-icon {
    width: 26px; height: 26px;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    background: var(--gold-pale);
}
.mega-link-count {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-muted);
    background: var(--light);
    padding: 2px 7px;
    border-radius: 10px;
}
.mega-footer {
    grid-column: 1 / -1;
    border-top: 1px solid var(--border);
    margin-top: 16px;
    padding-top: 14px;
    display: flex;
    gap: 12px;
}
.mega-promo {
    flex: 1;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}
.mega-promo:hover { transform: translateY(-2px); color: var(--white); }
.mega-promo-icon { font-size: 24px; }
.mega-promo-text { font-size: 12px; color: rgba(255,255,255,0.8); }
.mega-promo-title { font-size: 14px; font-weight: 700; color: var(--gold-light); }

/* ── SEARCH AUTOCOMPLETE ── */
.search-autocomplete { font-family: var(--font-body); }

/* ── PAGE TRANSITIONS ── */
.page-fade-in {
    animation: pageFadeIn 0.4s ease;
}
@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── PRODUCT CARD ENHANCED ── */
.product-card {
    transition: var(--transition);
    position: relative;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.product-card .wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
    font-size: 15px;
    color: var(--text-muted);
}
.product-card .wishlist-btn:hover,
.product-card .wishlist-btn.active {
    background: #FEF2F2;
    border-color: #EF4444;
    color: #EF4444;
}
.product-card .quick-add {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: var(--primary);
    color: var(--gold-light);
    font-size: 13px;
    font-weight: 700;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    font-family: var(--font-body);
}
.product-card:hover .quick-add {
    transform: translateY(0);
}

/* ── VERIFIED PURCHASE BADGE ── */
.verified-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #F0FDF4;
    color: #166534;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-top: 8px;
}

/* ── IMAGE LOADED ANIMATION ── */
img.loaded {
    animation: imgFadeIn 0.4s ease;
}
@keyframes imgFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ── MOBILE BOTTOM BAR ── */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-top: 2px solid #f0e8d0;
    z-index: 500;
    padding: 6px 0 8px;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}
@media (max-width: 768px) {
    .mobile-bottom-bar { display: flex; }
    body { padding-bottom: 65px; }
}
.mobile-bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    font-weight: 600;
    color: #bbb;
    text-decoration: none;
    padding: 4px 0;
    transition: all 0.2s;
}
.mobile-bar-item i { font-size: 22px; }

/* Home - Blue */
.mobile-bar-item.home-tab { color: #bbb; }
.mobile-bar-item.home-tab.active,
.mobile-bar-item.home-tab:hover { color: #1976D2; }

/* Gems - Purple */
.mobile-bar-item.gems-tab { color: #bbb; }
.mobile-bar-item.gems-tab.active,
.mobile-bar-item.gems-tab:hover { color: #7B1FA2; }

/* Consult - Orange */
.mobile-bar-item.consult-tab { color: #bbb; }
.mobile-bar-item.consult-tab.active,
.mobile-bar-item.consult-tab:hover { color: #E65100; }

/* Wishlist - Pink */
.mobile-bar-item.wishlist-tab { color: #bbb; }
.mobile-bar-item.wishlist-tab.active,
.mobile-bar-item.wishlist-tab:hover { color: #C2185B; }

/* Account - Green */
.mobile-bar-item.account-tab { color: #bbb; }
.mobile-bar-item.account-tab.active,
.mobile-bar-item.account-tab:hover { color: #2E7D32; }

/* ── FLOATING OFFER BANNER ── */
.offer-banner {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--primary);
    text-align: center;
    padding: 10px;
    font-size: 13.5px;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}
.offer-banner::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: rgba(255,255,255,0.15);
    transform: skewX(-20deg);
    animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* ── STAR RATINGS ── */
.star-filled { color: #F59E0B; }
.star-empty { color: #E5E7EB; }
.review-stars {
    color: #F59E0B;
    font-size: 16px;
    letter-spacing: 2px;
}

/* ── GST + TRUST FOOTER BADGES ── */
.footer-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: rgba(255,255,255,0.5);
}
.footer-trust-item i { color: var(--gold); }