/* ===================================================
   69SHOP.IN - CATEGORY GRID HERO
   Modern grid-based hero section for better discovery
   =================================================== */

/* ===== HERO SECTION CONTAINER ===== */
.category-grid-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    padding: 20px 0 40px;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

/* Subtle animated background pattern */
.category-grid-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* ===== HERO HEADER ===== */
.hero-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.hero-branding {
    flex: 1;
    min-width: 280px;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin: 0;
    font-weight: 400;
}

/* ===== HERO SEARCH ===== */
.hero-search-wrapper {
    flex: 1;
    max-width: 520px;
}

.hero-search {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.hero-search i {
    padding: 0 16px;
    color: #64748b;
    font-size: 1.1rem;
}

.hero-search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 12px 0;
    background: transparent;
    color: #1e293b;
}

.hero-search input::placeholder {
    color: #94a3b8;
}

.hero-search-btn {
    background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-search-btn:hover {
    background: linear-gradient(135deg, #0052cc 0%, #003d99 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

/* Popular Searches */
.hero-popular-searches {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.hero-popular-searches span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.hero-popular-searches a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    text-decoration: none;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-popular-searches a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

/* ===== CATEGORY GRID ===== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto;
    gap: 20px;
    margin-bottom: 40px;
}

/* Category Card Base */
.category-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 180px;
}

.category-card.featured {
    min-height: 260px;
}

.category-card.compact {
    min-height: 140px;
}

.category-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
    transition: background 0.3s ease;
}

.category-card:hover .category-card-bg {
    transform: scale(1.1);
}

.category-card:hover .category-card-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.8) 100%);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* Category Card Content */
.category-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    z-index: 2;
}

.category-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.category-card h3 {
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 6px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.category-card.compact h3 {
    font-size: 1.15rem;
}

.category-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
}

.category-deal {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    animation: dealPulse 2s ease-in-out infinite;
}

@keyframes dealPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

/* Category Badges */
.category-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #0066ff 0%, #00a3ff 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.4);
}

.category-card-badge.gold {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* ===== TRUST BAR ===== */
.hero-trust-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.trust-item i {
    color: #10b981;
    font-size: 1.1rem;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet - 4 columns in row 2, 3 in row 3 */
@media (max-width: 1024px) {
    .hero-header {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-search-wrapper {
        max-width: 100%;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-card.featured {
        min-height: 220px;
    }

    .hero-title {
        font-size: 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .category-grid-hero {
        padding: 30px 0 40px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-search {
        flex-direction: column;
        padding: 12px;
        gap: 10px;
    }

    .hero-search i {
        display: none;
    }

    .hero-search input {
        width: 100%;
        text-align: center;
    }

    .hero-search-btn {
        width: 100%;
    }

    .hero-popular-searches {
        justify-content: center;
    }

    .category-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .category-card.featured,
    .category-card,
    .category-card.compact {
        min-height: 160px;
    }

    .category-card-content {
        padding: 20px;
    }

    .category-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .category-card h3 {
        font-size: 1.2rem;
    }

    .hero-trust-bar {
        gap: 20px;
    }

    .trust-item {
        font-size: 0.8rem;
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }

    .trust-item i {
        font-size: 1.25rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .category-grid {
        gap: 12px;
    }

    .hero-popular-searches a {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    .hero-trust-bar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* ===== ACCESSIBILITY ===== */
.category-card:focus {
    outline: 3px solid #0066ff;
    outline-offset: 4px;
}

.category-card:focus-visible {
    outline: 3px solid #0066ff;
    outline-offset: 4px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .category-card,
    .category-card-bg,
    .category-icon,
    .hero-search-btn {
        transition: none;
    }

    .category-deal {
        animation: none;
    }
}
