@tailwind base;
@tailwind components;
@tailwind utilities;

/* ═══════════════════════════════════════════
   ORAFRESH — Premium Skincare Brand Styles
   ═══════════════════════════════════════════ */

/* Typography */
.font-brand {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.font-body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* ─── Hero Slider ─── */
.slide {
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: all;
}

.slide.active .slide-content {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Swiper Custom Styles ─── */
.swiper {
    overflow: visible !important;
}

.swiper-wrapper {
    align-items: stretch;
}

.swiper-slide {
    height: auto !important;
}

.swiper-slide .product-card {
    height: 100%;
}

/* Custom Swiper Navigation */
.swiper-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: #374151;
}

.swiper-nav-btn:hover {
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    border-color: transparent;
    color: white;
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(244, 63, 94, 0.3);
}

/* Custom Swiper Pagination */
.swiper-custom-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}

.swiper-custom-pagination .swiper-pagination-bullet {
    width: 24px;
    height: 3px;
    border-radius: 2px;
    background: #e5e7eb;
    opacity: 1;
    transition: all 0.5s ease;
}

.swiper-custom-pagination .swiper-pagination-bullet-active {
    width: 40px;
    background: linear-gradient(90deg, #f43f5e, #ec4899);
}

/* Promo Swiper Pagination */
.promo-pagination .swiper-pagination-bullet-active {
    background: linear-gradient(90deg, #f97316, #ef4444);
}

/* ─── Section Decorators ─── */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 9999px;
    border: 1px solid;
}

.section-badge-rose {
    color: #e11d48;
    border-color: rgba(225, 29, 72, 0.15);
    background: rgba(255, 228, 230, 0.4);
}

.section-badge-amber {
    color: #ea580c;
    border-color: rgba(234, 88, 12, 0.15);
    background: rgba(255, 237, 213, 0.4);
}

/* ─── Scrollbar Hidden ─── */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ─── Animations ─── */
@layer utilities {
    .animate-slide-in {
        animation: slideIn 0.3s ease-out;
    }

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

/* ─── Fade-in on scroll ─── */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Premium Glass Card ─── */
.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ─── Elegant Divider ─── */
.elegant-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #f43f5e, transparent);
}

/* ─── Product Card in Swiper ─── */
.swiper-slide .product-card > div {
    height: 100%;
}
