/* ========================================
   MAIN.CSS - Additional Styles
   Jag's Fashion - Notification & UI System
   ======================================== */

/* ========================================
   NOTIFICATION BADGE SYSTEM
   Red dot indicator for actions/updates
   ======================================== */

/* Base notification badge - red dot */
.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.5);
    animation: badgePulse 2s ease-in-out infinite;
    z-index: 100;
}

/* Badge with count number */
.notification-badge.has-count {
    width: auto;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    top: -6px;
    right: -6px;
}

/* Large count (99+) */
.notification-badge.large-count {
    min-width: 24px;
    font-size: 10px;
    right: -10px;
}

/* Badge pulse animation */
@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 71, 87, 0.5);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 2px 12px rgba(255, 71, 87, 0.7);
    }
}

/* Badge appear animation */
@keyframes badgeAppear {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.notification-badge.animate-in {
    animation: badgeAppear 0.4s ease-out forwards, badgePulse 2s ease-in-out infinite 0.4s;
}

/* Badge for bottom nav icons */
.bottom-nav ul li {
    position: relative;
}

.bottom-nav .notification-badge {
    top: 0;
    right: 2px;
}

/* Badge for cart icon specifically */
.bottom-nav li a[href="cart.html"] .notification-badge,
.cart-badge {
    top: -4px;
    right: -4px;
}

/* Badge colors variants */
.notification-badge.success {
    background: linear-gradient(135deg, #2ed573, #7bed9f);
    box-shadow: 0 2px 8px rgba(46, 213, 115, 0.5);
}

.notification-badge.warning {
    background: linear-gradient(135deg, #ffa502, #ffcd02);
    box-shadow: 0 2px 8px rgba(255, 165, 2, 0.5);
}

.notification-badge.info {
    background: linear-gradient(135deg, #3742fa, #5352ed);
    box-shadow: 0 2px 8px rgba(55, 66, 250, 0.5);
}

/* New item indicator (smaller, subtle) */
.new-indicator {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    background: #ff4757;
    border-radius: 50%;
    animation: badgePulse 2s ease-in-out infinite;
}

/* "New" text badge */
.new-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
    animation: badgePulse 2s ease-in-out infinite;
}

/* Hide badge when empty */
.notification-badge:empty:not(.dot-only) {
    display: none;
}

.notification-badge.hidden {
    display: none !important;
}

/* Dot only badge (always visible) */
.notification-badge.dot-only {
    width: 10px;
    height: 10px;
    min-width: unset;
    padding: 0;
}

/* ========================================
   END NOTIFICATION BADGE SYSTEM
   ======================================== */

/* ========================================
   CART TAB BADGES
   Notification badges for cart page tabs
   ======================================== */

/* Tab icon wrapper for badge positioning */
.cart-tabs .tab-icon-wrapper {
    position: relative;
    display: inline-block;
}

/* Badge on cart tabs */
.cart-tabs .notification-badge {
    top: -8px;
    right: -10px;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-width: 1.5px;
}

.cart-tabs .notification-badge.dot-only {
    width: 8px;
    height: 8px;
    min-width: unset;
    padding: 0;
    top: -4px;
    right: -6px;
}

/* Active tab badge styling */
.cart-tab-btn.active .notification-badge {
    background: linear-gradient(135deg, #ff4757, #ff6b81);
}

/* ========================================
   END CART TAB BADGES
   ======================================== */
