/* ===========================================================
   Index (Homepage) Specific Styles
   =========================================================== */

/* Hero */
.hero {
    position: relative;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px 40px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 30% 40%, rgba(255,107,53,0.18) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(255,107,53,0.1) 0%, transparent 50%),
        linear-gradient(180deg, var(--dark) 0%, var(--dark2) 100%);
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,107,53,0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 4s ease-in-out infinite;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 5%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,214,10,0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 4s ease-in-out infinite reverse;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
    display: inline-block;
    background: rgba(255,107,53,0.15);
    border: 1px solid rgba(255,107,53,0.4);
    color: var(--orange);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    animation: fadeInDown 0.6s ease;
}

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

.hero-title {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--white) 0%, var(--orange) 50%, var(--yellow) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.6s ease 0.1s both;
}

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

.hero-desc {
    font-size: 15px;
    color: var(--text-sec);
    max-width: 280px;
    margin: 0 auto 24px;
    line-height: 1.6;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-price-badge {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    background: linear-gradient(135deg, rgba(255,107,53,0.2), rgba(255,107,53,0.1));
    border: 1.5px solid rgba(255,107,53,0.5);
    border-radius: var(--radius);
    padding: 12px 24px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.price-main {
    font-size: 28px;
    font-weight: 900;
    color: var(--orange);
    line-height: 1;
}

.price-sub {
    font-size: 14px;
    color: var(--text-sec);
    font-weight: 500;
}

.hero-scroll {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator {
    width: 24px;
    height: 36px;
    border: 2px solid rgba(255,107,53,0.3);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--orange);
    border-radius: 2px;
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(16px); }
}

/* Booking Section */
.booking-section {
    padding: 0 16px 20px;
    max-width: 520px;
    margin: 0 auto;
}

.booking-card {
    background: var(--dark2);
    border: 1px solid var(--dark4);
    border-radius: var(--radius-xl);
    padding: 24px 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

/* Location */
.location-wrapper {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.location-input {
    flex: 1;
    font-size: 14px !important;
}

.location-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-family: var(--font-main);
}

.location-btn:hover {
    background: linear-gradient(135deg, var(--orange-light), var(--orange));
    box-shadow: var(--shadow-orange);
}

.location-btn .btn-icon { font-size: 16px; }

/* Location Status */
.location-status {
    margin-top: 8px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    padding: 6px 0;
    transition: var(--transition);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}

.status-dot.success { background: var(--success); box-shadow: 0 0 6px var(--success); }
.status-dot.error   { background: var(--error); }

.status-item.waiting { color: var(--text-muted); }
.status-item.loading { color: var(--warning); }
.status-item.success { color: var(--success); font-weight: 600; }
.status-item.error   { color: var(--error); }

.status-spinner {
    width: 8px;
    height: 8px;
    border: 1.5px solid rgba(245,158,11,0.3);
    border-top-color: var(--warning);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

/* Map Preview */
.map-preview {
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 12px;
    position: relative;
    height: 180px;
    border: 1px solid var(--dark5);
}

.map-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-open-link {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    text-decoration: none;
    font-weight: 600;
    backdrop-filter: blur(4px);
    transition: var(--transition);
}

.map-open-link:hover { background: var(--orange); }

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 18px;
    font-weight: 800;
    font-family: var(--font-main);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
    margin-top: 8px;
}

.submit-btn:not(:disabled):hover {
    background: linear-gradient(135deg, var(--orange-light), var(--orange));
    box-shadow: 0 8px 30px rgba(255,107,53,0.5);
    transform: translateY(-2px);
}

.submit-btn:not(:disabled):active {
    transform: translateY(0);
    box-shadow: var(--shadow-orange);
}

.submit-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(0.3);
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.btn-icon-main { font-size: 20px; }

.btn-ripple {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.submit-btn:not(:disabled):active .btn-ripple { opacity: 1; }

/* Price Info */
.price-info-card {
    background: var(--dark2);
    border: 1px solid var(--dark4);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.price-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--white);
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--dark4);
}

.price-row:last-of-type { border-bottom: none; }

.price-label { font-size: 14px; color: var(--text-sec); }
.price-value { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.price-value.highlight { color: var(--orange); font-size: 18px; }
.price-note { font-size: 11px; color: var(--text-muted); margin-top: 12px; line-height: 1.5; }

/* Drivers Section */
.drivers-section {
    padding: 0 16px 40px;
    max-width: 520px;
    margin: 0 auto;
}

.drivers-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.driver-card {
    background: var(--dark2);
    border: 1px solid var(--dark4);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    animation: fadeInUp 0.4s ease both;
}

.driver-card:hover {
    border-color: rgba(255,107,53,0.3);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.driver-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.driver-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid var(--dark5);
}

.driver-avatar-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    color: var(--white);
    border: 2.5px solid rgba(255,107,53,0.3);
}

.driver-online-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--text-muted);
    border: 2px solid var(--dark2);
}

.driver-online-badge.online {
    background: var(--success);
    box-shadow: 0 0 6px var(--success);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 6px var(--success); }
    50% { box-shadow: 0 0 12px var(--success); }
}

.driver-info { flex: 1; min-width: 0; }

.driver-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.driver-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 8px;
}

.driver-meta-item {
    font-size: 12px;
    color: var(--text-sec);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.driver-meta-item strong { color: var(--orange); }

.driver-rating {
    display: flex;
    gap: 1px;
}

.driver-rating .star { font-size: 11px; }

.empty-drivers {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}

.empty-icon { font-size: 48px; margin-bottom: 12px; display: block; }
