/*
 * LIV BLACK FRIDAY 2025 - SPECIAL PROMO CSS
 * Standalone file - no conflicts with existing styles
 * Duration: Black Friday weekend only
 * =============================================
 * 
 * Usage: <link rel="stylesheet" href="/Portals/0/liv-black-friday-2025.css">
 */

/* ============================================
   BLACK FRIDAY CONTAINER
   ============================================ */

.liv-bf-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.liv-bf-wrapper {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Decorative corner accents */
.liv-bf-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    opacity: 0.1;
    border-radius: 0 0 0 100%;
}

/* ============================================
   BLACK FRIDAY HEADER IMAGE
   ============================================ */

.liv-bf-image-wrapper {
    position: relative;
    overflow: hidden;
    max-height: 250px;
}

.liv-bf-promo-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Optional: Add overlay gradient for better text readability */
.liv-bf-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

/* ============================================
   PROGRESS SECTION
   ============================================ */

.liv-bf-progress-section {
    padding: 40px 30px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    position: relative;
}

/* Main heading */
.liv-bf-heading {
    text-align: center;
    margin: 0 0 30px 0;
    color: #ffffff;
    font-size: 1.8em;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.liv-bf-heading-icon {
    font-size: 1.2em;
    margin-right: 10px;
    animation: liv-bf-pulse 2s ease-in-out infinite;
}

/* ============================================
   PROGRESS BAR CONTAINER
   ============================================ */

.liv-bf-progress-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 8px;
    margin: 20px 0 25px 0;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.liv-bf-progress-bar {
    height: 50px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50px;
    position: relative;
    overflow: hidden;
}

.liv-bf-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    background-size: 200% 100%;
    border-radius: 50px;
    position: relative;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    animation: liv-bf-shimmer 3s ease-in-out infinite;
    min-width: 60px; /* Ensure text is always visible */
}

/* Animated shimmer effect */
@keyframes liv-bf-shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Progress text inside the bar */
.liv-bf-progress-text {
    font-size: 1.1em;
    font-weight: 700;
    color: #1a1a1a;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
    z-index: 2;
    white-space: nowrap;
}

/* When progress is complete, add celebration effect */
.liv-bf-progress-fill.liv-bf-complete {
    background: linear-gradient(90deg, #00ab54 0%, #00c569 50%, #00ab54 100%);
    background-size: 200% 100%;
    animation: liv-bf-shimmer 3s ease-in-out infinite, liv-bf-celebrate 0.6s ease-out;
    box-shadow: 0 4px 15px rgba(0, 171, 84, 0.5);
}

@keyframes liv-bf-celebrate {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}

/* ============================================
   MESSAGE STATES
   Two different messages based on PV
   ============================================ */

.liv-bf-message {
    text-align: center;
    padding: 25px;
    border-radius: 12px;
    margin-top: 20px;
    font-size: 1.2em;
    font-weight: 600;
    transition: all 0.4s ease;
}

/* BELOW 80 PV - Encouragement Message */
.liv-bf-message-pending {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    color: #ffd700;
}

.liv-bf-message-pending .liv-bf-pv-needed {
    color: #ffed4e;
    font-weight: 800;
    font-size: 1.3em;
}

/* 80+ PV - Success Message */
.liv-bf-message-success {
    background: rgba(0, 171, 84, 0.15);
    border: 2px solid rgba(0, 171, 84, 0.4);
    color: #00c569;
    animation: liv-bf-success-pulse 1s ease-out;
}

.liv-bf-message-success .liv-bf-celebration {
    font-size: 1.5em;
    margin-right: 10px;
    animation: liv-bf-bounce 0.8s ease-in-out infinite;
}

@keyframes liv-bf-success-pulse {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes liv-bf-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ============================================
   PV STATS - Small info text
   ============================================ */

.liv-bf-stats {
    text-align: center;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95em;
}

.liv-bf-current-pv {
    color: #ffd700;
    font-weight: 700;
}

.liv-bf-target-pv {
    color: #ffffff;
    font-weight: 700;
}

/* ============================================
   CTA BUTTON (Optional)
   ============================================ */

.liv-bf-cta-wrapper {
    text-align: center;
    margin-top: 25px;
    padding-bottom: 10px;
}

.liv-bf-cta {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05em;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.liv-bf-cta:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #fff176 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    color: #1a1a1a;
    text-decoration: none;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.liv-bf-hide {
    display: none !important;
}

.liv-bf-show {
    display: block !important;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes liv-bf-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Fade in on page load */
.liv-bf-wrapper {
    animation: liv-bf-fadeIn 0.6s ease-out;
}

@keyframes liv-bf-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .liv-bf-container {
        padding: 0 15px;
        margin: 20px auto;
    }

    .liv-bf-progress-section {
        padding: 30px 20px;
    }

    .liv-bf-heading {
        font-size: 1.4em;
    }

    .liv-bf-progress-bar {
        height: 45px;
    }

    .liv-bf-progress-text {
        font-size: 1em;
    }

    .liv-bf-message {
        font-size: 1.1em;
        padding: 20px;
    }

    .liv-bf-message-success .liv-bf-celebration {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    .liv-bf-heading {
        font-size: 1.2em;
    }

    .liv-bf-progress-bar {
        height: 40px;
    }

    .liv-bf-progress-text {
        font-size: 0.9em;
    }

    .liv-bf-message {
        font-size: 1em;
        padding: 18px;
    }

    .liv-bf-cta {
        padding: 12px 24px;
        font-size: 0.95em;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.liv-bf-progress-bar:focus-within {
    outline: 3px solid #ffd700;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .liv-bf-wrapper,
    .liv-bf-progress-fill,
    .liv-bf-message-success {
        animation: none !important;
        transition: none !important;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .liv-bf-wrapper {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .liv-bf-cta {
        display: none;
    }
}
