/* ============================================
   HOMEPAGE SECTIONS STYLING
   Stats, Categories, Trending, Locations
   ============================================ */

/* Section Base Styles */
.bj-section-intro,
.bj-section-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.6s ease forwards;
}

.bj-section-title {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px 0;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.bj-section-subtitle,
.bj-section-description {
    font-size: 16px;
    color: #64748b;
    margin: 0 0 20px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.bj-section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    transition: all 0.3s ease;
}

.bj-section-link:hover {
    gap: 12px;
    color: #1d4ed8;
}

/* ============================================
   STATS COUNTER SECTION
   ============================================ */

.bj-stats-counter {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.bj-stats-counter::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

/* Stats Grid */
.bj-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

/* Stat Card */
.bj-stat-card {
    background: white;
    border-radius: 14px;
    padding: 30px;
    border: 1.5px solid #e5e7eb;
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
    animation: slideUp 0.6s ease forwards;
    opacity: 0;
}

.bj-stat-card:hover {
    border-color: #2563eb;
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.12);
    transform: translateY(-8px);
}

.bj-stat-animated {
    animation: slideUp 0.6s ease forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stat Icon */
.bj-stat-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f4ff 0%, #fef3ff 100%);
    color: #2563eb;
}

.bj-stat-icon svg {
    width: 32px;
    height: 32px;
}

.bj-stat-card:hover .bj-stat-icon {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: white;
    transform: rotateY(10deg);
}

/* Stat Content */
.bj-stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bj-stat-counter {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.bj-stat-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 8px 0 0 0;
}

.bj-stat-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    color: #7c3aed;
    background: #fef3ff;
    padding: 4px 10px;
    border-radius: 20px;
    margin-top: 6px;
    width: fit-content;
}

/* Trust Badges Row */
.bj-trust-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 1;
}

.bj-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    background: white;
    border-radius: 10px;
    border: 1.5px solid #e5e7eb;
    text-decoration: none;
    color: #111827;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
}

.bj-badge:hover {
    border-color: #2563eb;
    transform: translateY(-4px);
}

.bj-badge svg {
    flex-shrink: 0;
}

/* ============================================
   CATEGORIES SECTION
   ============================================ */

.bj-section-categories {
    padding: 80px 0;
    background: white;
}

.bj-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

/* Category Card */
.bj-category-card {
    background: white;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: fadeInScale 0.6s ease forwards;
    animation-delay: var(--delay, 0s);
    opacity: 0;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.bj-category-card:hover {
    border-color: #2563eb;
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.12);
    transform: translateY(-8px);
}

/* Category Icon */
.bj-category-icon {
    flex-shrink: 0;
    font-size: 40px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f4ff 0%, #fef3ff 100%);
    border-radius: 10px;
}

/* Category Info */
.bj-category-info {
    flex: 1;
}

.bj-category-name {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.bj-category-count {
    font-size: 12px;
    color: #64748b;
    margin: 4px 0 0 0;
}

/* Category Arrow */
.bj-category-arrow {
    flex-shrink: 0;
    color: #cbd5e1;
    transition: all 0.3s ease;
}

.bj-category-card:hover .bj-category-arrow {
    color: #2563eb;
    transform: translateX(4px);
}

/* Category Stats */
.bj-category-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.bj-stat-badge {
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    background: #f3f4f6;
    padding: 8px 16px;
    border-radius: 20px;
}

/* ============================================
   TRENDING SECTION
   ============================================ */

.bj-section-trending {
    padding: 80px 0;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.bj-trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 60px;
}

/* Trending Card */
.bj-trending-card {
    background: white;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
}

.bj-trending-card:hover {
    border-color: #2563eb;
    background: linear-gradient(135deg, #f0f4ff 0%, #fef3ff 100%);
    transform: translateY(-4px);
}

/* Trending Rank */
.bj-trending-rank {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bj-rank-number {
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 30px;
    text-align: center;
}

.bj-rank-badge {
    font-size: 12px;
    margin-left: -6px;
}

/* Trending Content */
.bj-trending-content {
    flex: 1;
}

.bj-trending-title {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.bj-trending-count {
    font-size: 11px;
    color: #64748b;
    margin: 4px 0 0 0;
}

/* Section CTA */
.bj-section-cta {
    text-align: center;
}

.bj-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: white;
    border: 2px solid #2563eb;
    color: #2563eb;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.bj-btn-secondary:hover {
    background: #f0f4ff;
    transform: translateY(-2px);
}

/* ============================================
   LOCATIONS SECTION
   ============================================ */

.bj-section-locations {
    padding: 80px 0;
    background: white;
}

.bj-locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

/* Location Card */
.bj-location-card {
    background: white;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
}

.bj-location-card:hover {
    border-color: #2563eb;
    background: linear-gradient(135deg, #f0f4ff 0%, #fef3ff 100%);
    transform: translateY(-4px);
}

.bj-location-info {
    flex: 1;
}

.bj-location-name {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.bj-location-count {
    font-size: 12px;
    color: #64748b;
    margin: 4px 0 0 0;
}

.bj-location-badge {
    font-size: 20px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.bj-location-card:hover .bj-location-badge {
    opacity: 1;
}

/* Locations Stats */
.bj-locations-stats {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f0f4ff 0%, #fef3ff 100%);
    border-radius: 10px;
    border: 1px solid #e0e7ff;
}

.bj-stats-text {
    font-size: 13px;
    color: #111827;
    margin: 0;
}

.bj-stats-text strong {
    color: #2563eb;
    font-weight: 600;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .bj-section-title {
        font-size: 28px;
    }

    .bj-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bj-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bj-trending-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .bj-locations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .bj-section-intro,
    .bj-section-header {
        margin-bottom: 40px;
    }

    .bj-section-title {
        font-size: 24px;
    }

    .bj-section-subtitle,
    .bj-section-description {
        font-size: 14px;
    }

    .bj-stats-counter,
    .bj-section-categories,
    .bj-section-trending,
    .bj-section-locations {
        padding: 60px 0;
    }

    .bj-stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .bj-stat-card {
        padding: 20px;
        gap: 16px;
    }

    .bj-stat-icon {
        width: 60px;
        height: 60px;
    }

    .bj-categories-grid {
        grid-template-columns: 1fr;
    }

    .bj-trending-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bj-locations-grid {
        grid-template-columns: 1fr;
    }

    .bj-trust-badges {
        grid-template-columns: 1fr;
    }

    .bj-category-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .bj-section-title {
        font-size: 20px;
    }

    .bj-stats-grid {
        gap: 12px;
    }

    .bj-stat-card {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }

    .bj-stat-icon {
        width: 50px;
        height: 50px;
    }

    .bj-stat-counter {
        font-size: 24px;
    }

    .bj-trending-grid {
        grid-template-columns: 1fr;
    }

    .bj-category-card {
        padding: 16px;
    }
}

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

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
