/* ============================================
   INDEX.CSS — Landing page specific styles
   AutoHub Connect
   ============================================ */

/* ===== HERO ===== */
.hero-section {
    background: var(--dark);
    position: relative;
    overflow: hidden;
    padding: 100px 0 90px;
    text-align: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(224,90,43,0.18) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -80px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(26,42,68,0.6) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(224,90,43,0.15);
    border: 1px solid rgba(224,90,43,0.4);
    color: #f07a55;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    color: var(--white);
    line-height: 1.0;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero-title span { color: var(--orange); }

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--steel);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.btn-hero-primary {
    background: var(--orange);
    color: white;
    border: none;
    padding: 14px 34px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    font-family: 'DM Sans', sans-serif;
}

.btn-hero-primary:hover {
    background: #c94e22;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(224,90,43,0.35);
}

.btn-hero-secondary {
    background: rgba(255,255,255,0.08);
    color: white;
    border: 1.5px solid rgba(255,255,255,0.2);
    padding: 14px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    font-family: 'DM Sans', sans-serif;
}

.btn-hero-secondary:hover { background: rgba(255,255,255,0.14); color: white; }

/* ===== STATS BAR ===== */
.stats-bar {
    background: var(--white);
    padding: 32px 0;
    border-bottom: 1px solid #e8ecf2;
}

.stat-num {
    font-size: 2.8rem;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-num span { color: var(--orange); }

.stat-label {
    font-size: 0.78rem;
    color: var(--steel);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* ===== OVERVIEW ===== */
.overview-section {
    padding: 80px 0;
    background: var(--light);
}

.ov-card {
    background: var(--white);
    border-radius: 20px;
    padding: 24px 28px;
    border: 1px solid #e8ecf2;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    transition: all 0.25s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.ov-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(26,42,68,0.1);
    border-color: #d0d8e8;
}

.ov-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.ov-card h5 { font-weight: 700; margin-bottom: 5px; color: var(--navy); font-size: 1rem; }
.ov-card p { font-size: 0.875rem; color: var(--steel); line-height: 1.55; margin: 0; }

.why-card {
    background: linear-gradient(135deg, var(--dark) 0%, #1a2a44 100%);
    border-radius: 20px;
    padding: 40px 36px;
    height: 100%;
}

.why-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: white;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.why-card p { color: var(--steel); font-size: 0.92rem; line-height: 1.7; margin-bottom: 20px; }

.why-tip {
    background: rgba(224,90,43,0.15);
    border: 1px solid rgba(224,90,43,0.3);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 0.85rem;
    color: #e0a07a;
}

/* ===== ROLES SECTION ===== */
.roles-section {
    background: var(--dark);
    padding: 80px 0;
}

.role-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 36px 28px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    height: 100%;
}

.role-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--orange);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(224,90,43,0.15);
}

.role-icon-wrap {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: rgba(224,90,43,0.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    transition: all 0.3s;
}

.role-card:hover .role-icon-wrap { background: rgba(224,90,43,0.25); transform: scale(1.1); }

.role-card h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: var(--white);
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.role-card > p { font-size: 0.875rem; color: var(--steel); line-height: 1.6; margin-bottom: 18px; }

.role-features { list-style: none; text-align: left; padding: 0; margin: 0; }
.role-features li {
    font-size: 0.82rem; color: #6a7f9a;
    padding: 5px 0; display: flex; gap: 8px; align-items: flex-start;
}
.role-features li::before { content: '→'; color: var(--orange); font-weight: bold; flex-shrink: 0; }

/* ===== FEED ===== */
.feed-section { background: var(--light); padding: 80px 0; }

.post-card {
    background: var(--white);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    transition: transform 0.3s;
    height: 100%;
}

.post-card:hover { transform: translateY(-6px); }

.post-image { height: 220px; background-size: cover; background-position: center; }

.post-content { padding: 20px; }
.post-content h5 { font-weight: 700; margin-bottom: 4px; }
.hashtags { color: #3a7bd5; font-size: 0.82rem; margin-bottom: 12px; }

.mechanic-reply {
    background: #f0f4fa;
    padding: 12px 14px;
    border-radius: 14px;
    display: flex;
    gap: 10px;
    font-size: 0.78rem;
    border-left: 3px solid var(--navy);
}

.mechanic-reply .icon { font-size: 1.1rem; flex-shrink: 0; }
.mechanic-reply strong { display: block; color: var(--navy); font-weight: 700; margin-bottom: 3px; font-size: 0.78rem; }
.mechanic-reply p { color: #555; margin: 0; line-height: 1.5; font-size: 0.78rem; }
.locked-overlay { color: #aaa; font-style: italic; font-size: 0.8rem; }

/* ===== AUTH MODAL ROLE CARDS (4 roles for login, 3 for signup) ===== */
.signup-roles .col-md-4,
.login-roles .col-md-3 {
    transition: all 0.2s;
}

/* ===== GOOGLE LOGIN BUTTON ===== */
.btn-google-login {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 30px;
    padding: 11px 20px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--navy);
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'DM Sans', sans-serif;
}

.btn-google-login:hover {
    border-color: #aab4c8;
    background: var(--light);
}

/* ===== OR DIVIDER ===== */
.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--steel);
    font-size: 0.82rem;
    margin: 2px 0;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ===== MODAL SCROLLABLE ===== */
.modal-dialog-scrollable .modal-body {
    overflow-y: auto;
    max-height: 75vh;
}

/* ===== LOGIN STEP NARROWER MODAL ===== */
.modal-login-active .modal-dialog {
    max-width: 480px;
}

@media (max-width: 768px) {
    .hero-section { padding: 70px 0 60px; }
    .overview-section, .roles-section, .feed-section { padding: 60px 0; }
    .why-card { margin-top: 24px; }
    .nav-links { display: none; }
    .landing-nav .d-flex { gap: 8px; }
    .landing-nav .btn { font-size: .82rem; padding: 7px 14px; }
}

@media (max-width: 480px) {
    .hero-section { padding: 50px 0 40px; }
    .overview-section, .roles-section, .feed-section { padding: 40px 0; }
    .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; }
    .hero-cta .btn { text-align: center; }
    .role-card { padding: 20px 14px; }
    .why-grid { gap: 12px; }
    .why-card { padding: 18px 14px; }
    .footer-links { gap: 10px 16px; }
}

@media (max-width: 375px) {
    .hero-section { padding: 40px 0 30px; }
    .overview-section, .roles-section, .feed-section { padding: 30px 0; }
    .landing-nav .btn { font-size: .76rem; padding: 6px 10px; }
}
