/* ==========================================================
   HOME.CSS - BusOva Welcome Page
   Location: root/css/pages/home.css
   ========================================================== */

/* ---- HERO SECTION ---- */
.bo-hero {
    text-align: center;
    padding: 3rem 1.5rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.bo-hero::before,
.bo-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.5;
}

.bo-hero::before {
    top: -80px;
    right: -80px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08), transparent 70%);
}

.bo-hero::after {
    bottom: -60px;
    left: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.06), transparent 70%);
}

.bo-hero-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 20px;
    margin-bottom: 1rem;
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.bo-hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.bo-hero-title span {
    color: #3b82f6;
}

.bo-hero-subtitle {
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto 1.75rem;
    line-height: 1.65;
    opacity: 0.75;
}

.bo-hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* ---- STATS BAR ---- */
.bo-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bo-stat {
    text-align: center;
    padding: 1.25rem 0.5rem;
}

.bo-stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.bo-stat-label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
    opacity: 0.5;
}

/* ---- SECTION HEADERS ---- */
.bo-section-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.35rem;
}

.bo-section-heading {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

/* ---- FEATURE CARDS (3 x 2 grid) ---- */
.bo-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 767.98px) {
    .bo-features-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .bo-features-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 575.98px) {
    .bo-stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

.bo-feature-card {
    border-radius: 12px;
    padding: 1.25rem;
    transition: transform 0.25s ease, border-color 0.25s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.bo-feature-card:hover {
    transform: translateY(-3px);
    color: inherit;
    text-decoration: none;
}

.bo-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 0.85rem;
}

.bo-fi-bus        { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.bo-fi-contribute { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.bo-fi-photos     { background: rgba(244, 114, 182, 0.12); color: #ec4899; }
.bo-fi-tracker    { background: rgba(139, 92, 246, 0.12);  color: #8b5cf6; }
.bo-fi-stops      { background: rgba(245, 158, 11, 0.12);  color: #f59e0b; }
.bo-fi-routes     { background: rgba(6, 182, 212, 0.12);   color: #06b6d4; }

.bo-feature-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.bo-feature-card p {
    font-size: 0.8rem;
    line-height: 1.55;
    margin-bottom: 0;
    opacity: 0.7;
}

/* ---- HOW IT WORKS ---- */
.bo-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
}

@media (max-width: 575.98px) {
    .bo-steps {
        grid-template-columns: 1fr;
    }
}

.bo-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.bo-step h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.bo-step p {
    font-size: 0.78rem;
    opacity: 0.65;
    line-height: 1.5;
    margin-bottom: 0;
}

/* ---- CONTRIBUTORS ---- */
.bo-contributors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.bo-contributor {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}

.bo-contributor:hover {
    text-decoration: none;
    color: inherit;
}

.bo-contributor img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.bo-contributor-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.bo-contributor-name {
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bo-contributor-count {
    font-size: 0.7rem;
    opacity: 0.55;
}

/* ---- CTA SECTION ---- */
.bo-cta-section {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
}

.bo-cta-section h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.bo-cta-section p {
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    opacity: 0.7;
}

/* ---- DARK THEME ---- */
.theme-dark .bo-hero {
    background: rgba(15, 23, 42, 0.4);
}

.theme-dark .bo-stats-bar {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(255, 255, 255, 0.04);
}

.theme-dark .bo-stat {
    background: transparent;
}

.theme-dark .bo-feature-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.6);
}

.theme-dark .bo-feature-card:hover {
    border-color: rgba(71, 85, 105, 0.8);
}

.theme-dark .bo-contributor:hover {
    background: rgba(30, 41, 59, 0.6);
}

.theme-dark .bo-cta-section {
    background: rgba(30, 41, 59, 0.5);
}

/* ---- LIGHT THEME ---- */
.theme-light .bo-hero {
    background: rgba(241, 245, 249, 0.5);
}

.theme-light .bo-hero-badge {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.15);
}

.theme-light .bo-stats-bar {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.theme-light .bo-stat {
    background: transparent;
}

.theme-light .bo-stat-number {
    color: #1e293b;
}

.theme-light .bo-feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.theme-light .bo-feature-card:hover {
    border-color: #cbd5e1;
}

.theme-light .bo-contributor:hover {
    background: #f1f5f9;
}

.theme-light .bo-cta-section {
    background: #f8fafc;
}

.theme-light .bo-step-num {
    background: rgba(59, 130, 246, 0.1);
}

/* ---- ENTRANCE ANIMATIONS ---- */
@keyframes boFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bo-animate {
    animation: boFadeUp 0.5s ease forwards;
    opacity: 0;
}

.bo-animate-d1 { animation-delay: 0.1s; }
.bo-animate-d2 { animation-delay: 0.2s; }
.bo-animate-d3 { animation-delay: 0.3s; }
.bo-animate-d4 { animation-delay: 0.4s; }
.bo-animate-d5 { animation-delay: 0.5s; }
.bo-animate-d6 { animation-delay: 0.6s; }
