/**
 * Fabify Hero Upgrade 2.0 CSS
 */

/* ============================================
   PRODUCT CAROUSEL
   ============================================ */
.hero-product-carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    overflow: hidden;
}

.carousel-item {
    display: none;
    animation: fadeSlide 0.5s ease;
}

.carousel-item.active {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

@keyframes fadeSlide {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.carousel-img-wrap {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
}

.carousel-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.carousel-item:hover .carousel-img-wrap img {
    transform: scale(1.1);
}

.sale-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff4444;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.carousel-info {
    text-align: left;
    max-width: 300px;
}

.carousel-info h4 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.carousel-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--seasonal-accent, #00ff88);
    margin-bottom: 10px;
}

.carousel-price del {
    color: rgba(255,255,255,0.4);
    font-size: 18px;
    margin-right: 10px;
}

.carousel-rating {
    color: #ffd700;
    font-size: 16px;
    margin-bottom: 20px;
}

.carousel-add-cart {
    background: var(--seasonal-accent, #00ff88);
    color: #000;
    border: none;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.carousel-add-cart:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,255,136,0.3);
}

.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.carousel-prev, .carousel-next {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-prev:hover, .carousel-next:hover {
    background: var(--seasonal-accent, #00ff88);
    color: #000;
}

.carousel-dots {
    display: flex;
    gap: 10px;
}

.carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dots .dot.active {
    background: var(--seasonal-accent, #00ff88);
    transform: scale(1.2);
}

/* ============================================
   SOCIAL PROOF FEED
   ============================================ */
.social-proof-feed {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    max-width: 350px;
}

.proof-notification {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.proof-notification.animate-in {
    animation: slideInLeft 0.5s ease;
}

.proof-notification.animate-out {
    animation: slideOutLeft 0.5s ease forwards;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-100%); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideOutLeft {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(-100%); }
}

.proof-icon {
    font-size: 20px;
}

.proof-notification strong {
    color: var(--seasonal-accent, #00ff88);
}

.proof-location {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.viewer-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
}

.viewer-count::before {
    content: "";
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================
   COUNTDOWN TIMER
   ============================================ */
.hero-countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.countdown-item {
    text-align: center;
    background: rgba(255,255,255,0.05);
    padding: 15px 25px;
    border-radius: 12px;
    min-width: 80px;
}

.countdown-num {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--seasonal-accent, #00ff88);
    line-height: 1;
}

.countdown-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.6);
    margin-top: 5px;
}

.countdown-ended {
    font-size: 24px;
    font-weight: 700;
    color: #ff4444;
}

/* ============================================
   VIBE QUIZ
   ============================================ */
.vibe-quiz-trigger {
    background: transparent;
    border: 2px solid var(--seasonal-accent, #00ff88);
    color: var(--seasonal-accent, #00ff88);
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vibe-quiz-trigger:hover {
    background: var(--seasonal-accent, #00ff88);
    color: #000;
}

.vibe-quiz-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.vibe-quiz-modal.active {
    display: flex;
}

.quiz-content {
    background: #1a1a1a;
    border-radius: 20px;
    padding: 50px;
    max-width: 600px;
    text-align: center;
}

.quiz-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.quiz-content p {
    color: rgba(255,255,255,0.6);
    margin-bottom: 40px;
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.quiz-option {
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-option:hover {
    border-color: var(--seasonal-accent, #00ff88);
    transform: translateY(-5px);
}

.quiz-option .icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.quiz-option h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.quiz-option p {
    font-size: 13px;
    margin: 0;
}

.quiz-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

/* ============================================
   VIBE TOAST
   ============================================ */
.vibe-toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--seasonal-accent, #00ff88);
    color: #000;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    z-index: 10001;
    transition: bottom 0.3s ease;
}

.vibe-toast.show {
    bottom: 30px;
}

/* ============================================
   BUTTON RIPPLE
   ============================================ */
.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    width: 100px;
    height: 100px;
    margin-left: -50px;
    margin-top: -50px;
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    from { transform: scale(0); opacity: 1; }
    to { transform: scale(4); opacity: 0; }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal-on-scroll.animate-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .carousel-item.active {
        flex-direction: column;
        text-align: center;
    }

    .carousel-img-wrap {
        width: 250px;
        height: 250px;
    }

    .carousel-info {
        text-align: center;
    }

    .hero-countdown {
        gap: 10px;
    }

    .countdown-item {
        padding: 10px 15px;
        min-width: 60px;
    }

    .countdown-num {
        font-size: 24px;
    }

    .social-proof-feed {
        left: 10px;
        right: 10px;
        max-width: none;
    }

    .proof-notification {
        font-size: 14px;
    }

    .quiz-options {
        grid-template-columns: 1fr;
    }

    .quiz-content {
        padding: 30px;
        margin: 20px;
    }
}

/* Mobile bottom CTA bar */
.mobile-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(20,20,20,0.98);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    z-index: 9999;
    box-shadow: 0 -5px 30px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .mobile-cta-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
    }

    .mobile-cta-bar .price {
        font-size: 22px;
        font-weight: 800;
        color: var(--seasonal-accent, #00ff88);
    }

    .mobile-cta-bar .add-btn {
        flex: 1;
        background: var(--seasonal-accent, #00ff88);
        color: #000;
        border: none;
        padding: 15px 30px;
        border-radius: 30px;
        font-weight: 700;
        font-size: 16px;
    }

    body {
        padding-bottom: 80px;
    }
}
