/* استایل‌های عمومی */
:root {
    --primary-red: #e63946;
    --dark-red: #9b2226;
    --neon-red: #dc2626;
    --blood-gradient: linear-gradient(45deg, #7f1d1d, #dc2626);
}

body {
    font-family: 'Vazirmatn', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000000;
    color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* افکت نئونی برای تیترهای اصلی */
.neon-text {
    color: #ffffff !important;
    text-shadow: none;
    animation: pulse-glow 2.5s ease-in-out infinite;
}

/* افکت نئونی اختصاصی برای متن Hero */
.hero-neon {
    color: #ffffff !important;
    text-shadow: none;
    animation: pulse-glow 2.5s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        text-shadow: none;
    }
    50% {
        text-shadow: 0 0 6px var(--neon-red),
                     0 0 12px var(--neon-red),
                     0 0 18px var(--neon-red);
    }
}

/* هدر مدرن */
.header-main {
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--dark-red);
    min-height: 80px;
}

/* نویگیشن */
.nav-item {
    position: relative;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--neon-red);
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
    left: 0;
}

/* دکمه پنل کاربری در هدر */
.header-user-btn {
    margin-right: 2rem;
}

/* منوی موبایل */
.mobile-menu {
    transition: all 0.3s ease;
}

.animate-slide-in {
    animation: slide-in 0.3s ease forwards;
}

@keyframes slide-in {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* دکمه‌ها */
.blood-btn {
    background: var(--blood-gradient);
    border: 2px solid transparent;
    padding: 12px 28px;
    border-radius: 50px;
    color: #ffffff;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blood-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5),
                0 0 10px var(--neon-red),
                0 0 20px var(--neon-red);
    border-color: var(--neon-red);
    animation: neon-border 1s ease-in-out infinite;
}

.blood-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.3), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.blood-btn:hover::before {
    width: 200%;
    height: 200%;
}

@keyframes neon-border {
    0%, 100% {
        border-color: var(--neon-red);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5),
                    0 0 10px var(--neon-red);
    }
    50% {
        border-color: #ff4d4d;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5),
                    0 0 15px var(--neon-red),
                    0 0 25px var(--neon-red);
    }
}

/* دکمه‌های کوچک (مثل افزودن به سبد) */
.product-card .blood-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* انیمیشن قطره خون */
.blood-drip-container {
    pointer-events: none;
    z-index: 15;
    max-height: 100%;
    overflow: hidden;
}

.blood-drip {
    position: absolute;
    font-size: 16px;
    color: var(--primary-red) !important;
    text-shadow: 0 0 5px var(--neon-red), 0 0 10px var(--neon-red) !important;
    animation: drip-animation 4s linear infinite;
    will-change: transform, opacity;
}

.blood-drip i {
    color: var(--primary-red) !important;
    display: block;
}

@keyframes drip-animation {
    0% {
        transform: translateY(-50px);
        opacity: 1;
    }
    80% {
        transform: translateY(calc(90vh - 50px));
        opacity: 0.2;
    }
    100% {
        transform: translateY(calc(100vh - 50px));
        opacity: 0;
    }
}

/* محصولات */
.product-card {
    background: rgba(20, 20, 20, 0.6) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(230, 57, 70, 0.3) !important;
    border-radius: 16px;
    transition: all 0.3s ease;
    padding: 20px;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.product-card img {
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

/* تایمر معکوس */
.countdown-item {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

/* فوتر */
.footer-main {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a0000 100%);
    border-top: 2px solid var(--dark-red);
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .header-main {
        min-height: 70px;
        padding: 8px;
    }

    .hero-neon {
        text-shadow: none;
        animation: pulse-glow 2.5s ease-in-out infinite;
    }

    .neon-text {
        text-shadow: none;
        animation: pulse-glow 2.5s ease-in-out infinite;
    }

    .header-user-btn {
        margin-right: 1rem;
    }

    .blood-btn {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .product-card .blood-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .product-card {
        margin: 10px 0;
    }

    .countdown-item {
        width: 70px;
        height: 70px;
        padding: 10px;
    }

    .countdown-item span {
        font-size: 1.2rem;
    }

    .footer-main {
        padding: 20px 10px;
    }

    .blood-btn::before {
        width: 0;
        height: 0;
    }

    .blood-btn:hover::before {
        width: 300%;
        height: 300%;
    }

    .blood-drip {
        font-size: 14px;
    }

    @keyframes drip-animation {
        0% {
            transform: translateY(-50px);
            opacity: 1;
        }
        80% {
            transform: translateY(calc(90vh - 50px));
            opacity: 0.2;
        }
        100% {
            transform: translateY(calc(100vh - 50px));
            opacity: 0;
        }
    }
}

@media (max-width: 640px) {
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
}