/**
 * Afriyah FOMO & Savings - Premium UX with Round Edges
 * Beautiful, conversion-focused design with urgency and savings visuals
 * Design System: Premium rounded edges, smooth animations, FOMO tactics
 */

/* Design System Variables */
:root {
    --fomo-primary: #ff4757;
    --fomo-primary-dark: #ee5a6f;
    --fomo-gradient: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    --fomo-gradient-hover: linear-gradient(135deg, #ff4757 0%, #ee5a6f 100%);
    --fomo-shadow: 0 4px 20px rgba(255, 71, 87, 0.3);
    --fomo-shadow-hover: 0 6px 30px rgba(255, 71, 87, 0.4);
    --savings-primary: #FFD700;
    --savings-primary-dark: #FFA500;
    --savings-gradient: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    --savings-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
    --fomo-radius: 16px;
    --fomo-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Premium FOMO Bar */
.afriyah-fomo-bar {
    background: var(--fomo-gradient);
    color: #ffffff;
    padding: 16px 24px;
    border-radius: var(--fomo-radius);
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: var(--fomo-shadow);
    position: relative;
    overflow: hidden;
    animation: fomoPulse 2s infinite;
    letter-spacing: -0.2px;
}

.afriyah-fomo-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes fomoPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: var(--fomo-shadow);
    }
    50% {
        transform: scale(1.01);
        box-shadow: var(--fomo-shadow-hover);
    }
}

.afriyah-fomo-bar.fomo-bar-small {
    padding: 12px 16px;
    font-size: 14px;
    margin: 12px 0;
    border-radius: 12px;
}

/* Premium FOMO Icon */
.fomo-icon {
    font-size: 28px;
    margin-right: 0;
    animation: flicker 1.5s infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: var(--fomo-transition);
}

.fomo-bar-small .fomo-icon {
    font-size: 20px;
}

@keyframes flicker {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    25% {
        opacity: 0.8;
        transform: scale(0.95);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    75% {
        opacity: 0.9;
        transform: scale(1);
    }
}

/* Premium FOMO Text */
.fomo-text {
    flex: 1;
    line-height: 1.5;
}

.fomo-text strong {
    font-weight: 700;
    letter-spacing: 0.3px;
}

.stock-count {
    font-size: 20px;
    color: #FFD700;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: stockPulse 1s infinite;
    display: inline-block;
    padding: 0 4px;
}

.fomo-bar-small .stock-count {
    font-size: 16px;
}

@keyframes stockPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Premium Savings Tag */
.afriyah-savings-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--savings-gradient);
    color: #1a1a1a;
    padding: 10px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: var(--savings-shadow);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 70px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: savingsFloat 3s infinite ease-in-out;
    transition: var(--fomo-transition);
}

@keyframes savingsFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-5px) rotate(2deg);
    }
}

.afriyah-savings-tag:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 30px rgba(255, 215, 0, 0.5);
    animation: none;
}

.savings-tag-single {
    position: relative;
    top: auto;
    right: auto;
    display: inline-flex;
    flex-direction: row;
    margin: 16px 0;
    padding: 14px 28px;
    font-size: 18px;
    min-width: auto;
    border-radius: 30px;
}

/* Premium Savings Percentage */
.savings-percentage {
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
    color: #1a1a1a;
}

.savings-tag-single .savings-percentage {
    font-size: 28px;
    margin-right: 12px;
    color: #1a1a1a;
}

/* Premium Savings Label */
.savings-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
    color: #1a1a1a;
    opacity: 0.9;
}

.savings-tag-single .savings-label {
    font-size: 16px;
    margin-top: 0;
    letter-spacing: 0.5px;
}

/* Mobile Responsive - Premium Design */
@media (max-width: 768px) {
    .afriyah-fomo-bar {
        padding: 14px 20px;
        font-size: 15px;
        margin: 16px 0;
    }
    
    .fomo-icon {
        font-size: 24px;
    }
    
    .stock-count {
        font-size: 18px;
    }
    
    .afriyah-savings-tag {
        top: 8px;
        right: 8px;
        padding: 8px 12px;
        font-size: 13px;
        min-width: 60px;
    }
    
    .savings-percentage {
        font-size: 18px;
    }
    
    .savings-tag-single .savings-percentage {
        font-size: 24px;
    }
    
    .savings-label {
        font-size: 10px;
    }
    
    .savings-tag-single .savings-label {
        font-size: 14px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

