/* portal/assets/css/portal.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #6366f1;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --bg-main: #fcfcfd;
    --card-bg: rgba(255, 255, 255, 0.7);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --accent: #f59e0b;
    --nav-height: 80px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    background: var(--bg-main);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
.brand-logo {
    font-family: 'Outfit', sans-serif;
}

/* Stunning Mesh Background */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 100% 0%, rgba(168, 85, 247, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(245, 158, 11, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(99, 102, 241, 0.08) 0%, transparent 40%);
}

/* Premium Navbar */
.navbar-portal {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    height: var(--nav-height);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    z-index: 1050;
}

.brand-logo {
    font-weight: 800;
    font-size: 1.75rem;
    letter-spacing: -0.04em;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Point Badge - Elevated */
.points-badge {
    background: #000;
    color: #fff;
    padding: 0.6rem 1.4rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.points-badge:hover {
    transform: scale(1.05) rotate(-1deg);
}

.points-badge i {
    color: var(--accent);
}

/* Category Pills - Minimalistic Premium */
.category-pill {
    padding: 0.7rem 1.5rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text-muted);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    margin-right: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.category-pill.active,
.category-pill:hover {
    background: #000;
    color: #fff;
    border-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Product Card - The Masterpiece */
.product-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 28px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    height: 100%;
    backdrop-filter: blur(10px);
}

.product-card:hover {
    background: #fff;
    transform: translateY(-12px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.12), 0 18px 36px -18px rgba(0, 0, 0, 0.08);
}

.product-image-container {
    padding: 1rem;
    position: relative;
}

.product-image-wrapper {
    width: 100%;
    padding-top: 85%;
    position: relative;
    border-radius: 22px;
    overflow: hidden;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.card-title {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8rem;
}

.btn-redeem {
    width: 100%;
    background: #000;
    color: #fff;
    border: none;
    padding: 0.9rem;
    border-radius: 18px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-redeem:hover {
    background: var(--primary-color);
    letter-spacing: 0.5px;
    transform: translateY(-2px);
}

/* Hero Carousel Customization */
.carousel-inner {
    border-radius: 40px;
}

.carousel-caption {
    bottom: 10%;
    padding: 3rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
    z-index: 1;
}

.fw-black {
    font-weight: 900;
}

.fw-900 {
    font-weight: 900;
}

.fw-800 {
    font-weight: 800;
}

.bg-accent {
    background-color: var(--accent);
}

.x-small {
    font-size: 0.75rem;
}

.shadow-premium {
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.12);
}

/* Custom Toasts */
.toast-container-custom {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.custom-toast {
    background: #fff;
    border-radius: 16px;
    padding: 1rem 1.5rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 4px solid #000;
}

.custom-toast.show {
    transform: translateX(0);
}

.custom-toast.success {
    border-left-color: #22c55e;
}

.custom-toast.error {
    border-left-color: #ef4444;
}

.custom-toast i {
    font-size: 1.25rem;
}

.custom-toast.success i {
    color: #22c55e;
}

.custom-toast.error i {
    color: #ef4444;
}

.custom-toast span {
    font-weight: 600;
    font-size: 0.95rem;
}