/* File: style.css
   Directory: /assets/css/ */

/* ========================================
   GENUINN MARKETPLACE - DESIGN SYSTEM
   Premium Emerald Glassmorphism Theme
   ======================================== */

/* ========================================
   COLOR PALETTE
   ======================================== */

:root {
    /* Backgrounds */
    --color-bg-deep: #0a1f0c;
    --color-bg-rich: #0d2818;

    /* Brand & Accents */
    --color-emerald-primary: #10b981;
    --color-emerald-light: #6ee7b7;
    --color-emerald-mint: #34d399;

    /* Text */
    --color-text-cream: #e8f5e9;
    --color-text-mint: #a7f3d0;
    --color-text-white: #ffffff;

    /* Utility */
    --color-warning: #fbbf24;
    --color-error: #f87171;
    --color-success: #10b981;

    /* Glass Effect */
    --glass-bg: rgba(16, 185, 129, 0.08);
    --glass-border: rgba(16, 185, 129, 0.2);
    --glass-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

/* ========================================
   BASE STYLES
   ======================================== */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--color-bg-deep) 0%, var(--color-bg-rich) 100%);
    color: var(--color-text-cream);
    min-height: 100vh;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* ========================================
   GLASSMORPHISM COMPONENTS
   ======================================== */

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}

.glass-card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.6);
    border-color: var(--color-emerald-light);
}

.glass-header {
    background: rgba(10, 31, 12, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-emerald-primary), var(--color-emerald-mint));
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--color-emerald-light);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--color-emerald-primary);
}

/* ========================================
   SPARKLE ANIMATION
   ======================================== */

@keyframes sparkleUp {
    0% {
        opacity: 0;
        transform: scale(0) translateY(0) rotate(0deg);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(2) translateY(-40px) rotate(180deg);
    }
}

.sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--color-emerald-light);
    border-radius: 50%;
    pointer-events: none;
    animation: sparkleUp 1.2s ease-out forwards;
    box-shadow: 0 0 10px var(--color-emerald-light);
}

/* ========================================
   PRODUCT CARD
   ======================================== */

.product-card {
    position: relative;
    overflow: hidden;
}

.product-card .verified-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--color-emerald-primary), var(--color-emerald-mint));
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.5);
}

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    transition: transform 0.4s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

/* ========================================
   TRUST BADGES
   ======================================== */

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.trust-badge-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--color-emerald-primary), var(--color-emerald-mint));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.trust-badge-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

/* ========================================
   VETTING TIMELINE
   ======================================== */

.vetting-timeline {
    position: relative;
    padding-left: 2rem;
}

.vetting-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-emerald-primary), var(--color-emerald-mint));
}

.vetting-stage {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.vetting-stage::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 16px;
    height: 16px;
    background: var(--color-emerald-primary);
    border-radius: 50%;
    border: 3px solid var(--color-bg-deep);
    box-shadow: 0 0 10px var(--color-emerald-primary);
}

.vetting-stage.completed::before {
    background: var(--color-success);
    box-shadow: 0 0 15px var(--color-success);
}

/* ========================================
   STOCK ALERTS
   ======================================== */

.stock-alert {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-block;
}

.stock-alert.low {
    background: rgba(251, 191, 36, 0.15);
    color: var(--color-warning);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.stock-alert.out {
    background: rgba(248, 113, 113, 0.15);
    color: var(--color-error);
    border: 1px solid rgba(248, 113, 113, 0.3);
}

/* ========================================
   FADE-IN ANIMATION (IntersectionObserver)
   ======================================== */

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ========================================
   RATING STARS
   ======================================== */

.rating-stars {
    display: inline-flex;
    gap: 0.25rem;
}

.star {
    color: var(--color-warning);
    font-size: 1.25rem;
}

.star.empty {
    color: rgba(251, 191, 36, 0.2);
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */

@media (max-width: 768px) {
    body {
        font-size: 1rem;
    }

    .glass-card {
        border-radius: 12px;
    }

    .product-card img {
        height: 250px;
    }

    .trust-badge {
        padding: 1.5rem;
    }
}

/* ========================================
   SKELETON LOADING
   ======================================== */

.skeleton {
    background: linear-gradient(
        90deg,
        rgba(16, 185, 129, 0.05) 0%,
        rgba(16, 185, 129, 0.15) 50%,
        rgba(16, 185, 129, 0.05) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* ========================================
   CART BADGE
   ======================================== */

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--color-error);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}
