/* Homepage Custom Stylesheet */

.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

.promo-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    padding: 3rem 2.5rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
}

.promo-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 60%);
    z-index: 2;
    pointer-events: none;
}

.promo-card.dark-theme::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
}

.promo-card.light-theme::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
}

/* Grid dot pattern for premium texture */
.promo-card-dots {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.promo-card.dark-theme .promo-card-dots {
    opacity: 0.04;
    background-image: radial-gradient(rgba(255, 255, 255, 0.3) 1.5px, transparent 0);
    background-size: 20px 20px;
}

.promo-card.light-theme .promo-card-dots {
    opacity: 0.15;
    background-image: radial-gradient(rgba(15, 23, 42, 0.15) 1.5px, transparent 0);
    background-size: 20px 20px;
}

.promo-card:hover {
    transform: translateY(-8px);
}

.promo-card.dark-theme:hover {
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 15px 1px rgba(20, 184, 166, 0.15);
    border-color: rgba(20, 184, 166, 0.3);
}

.promo-card.light-theme:hover {
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.08), 0 0 15px 1px rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.2);
}

.promo-badge {
    font-family: 'Outfit', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.promo-card.dark-theme .promo-badge {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.promo-card.light-theme .promo-badge {
    background: rgba(225, 29, 72, 0.08);
    color: #e11d48;
    border: 1px solid rgba(225, 29, 72, 0.12);
}

.promo-icon-container {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    transition: all 0.3s ease;
}

.promo-card.dark-theme .promo-icon-container {
    background: rgba(255, 255, 255, 0.08);
    color: #14b8a6;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.promo-card.light-theme .promo-icon-container {
    background: rgba(99, 102, 241, 0.06);
    color: #4f46e5;
    border: 1px solid rgba(99, 102, 241, 0.08);
}

.promo-card:hover .promo-icon-container {
    transform: scale(1.1) rotate(5deg);
}

.promo-card.dark-theme:hover .promo-icon-container {
    background: rgba(20, 184, 166, 0.15);
    color: #2dd4bf;
}

.promo-card.light-theme:hover .promo-icon-container {
    background: rgba(99, 102, 241, 0.12);
    color: #6366f1;
}

.promo-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.3;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.promo-card.dark-theme .promo-title {
    color: #ffffff !important;
}

.promo-card.light-theme .promo-title {
    color: #0f172a !important;
}

.promo-subtitle {
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 0;
    font-weight: 400;
}

.promo-card.dark-theme .promo-subtitle {
    color: rgba(255, 255, 255, 0.85) !important;
}

.promo-card.light-theme .promo-subtitle {
    color: #475569 !important;
}

.promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
}

.promo-card.dark-theme .promo-btn {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.promo-card.dark-theme .promo-btn:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.promo-card.light-theme .promo-btn {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.promo-card.light-theme .promo-btn:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
}

.promo-btn i {
    transition: transform 0.3s ease;
}

.promo-btn:hover i {
    transform: translateX(4px);
}

/* Responsive Category & Filter Bar */
.category-filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
    width: 100%;
}

.category-pills-scroll {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-grow: 1;
    transition: all 0.3s ease;
}

.filter-sort-trigger-container {
    flex-shrink: 0;
}

/* On mobile/tablet screens */
@media (max-width: 991px) {
    .category-filter-row {
        gap: 1rem;
        flex-wrap: nowrap; /* Prevent vertical wrapping */
    }

    .category-pills-scroll {
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE 10+ */
        padding-bottom: 4px; /* Tiny spacing to avoid vertical scroll cut-off on shadow */
    }

    .category-pills-scroll::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

    .category-pill {
        flex-shrink: 0; /* Keep pill shape complete */
    }
}

@media (max-width: 576px) {
    .promo-card {
        padding: 2.25rem 1.75rem;
        min-height: 250px;
    }

    .promo-title {
        font-size: 1.35rem;
        margin-top: 1.25rem;
    }
}

/* Hero Search Clear Button */
.btn-hero-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50% !important;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    padding: 0;
}

.btn-hero-clear:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
    transform: scale(1.05);
}
