/* Trucker Details – mockup-aligned layout */

body.page-trucker-details {
    background: #f4f6f8;
}

.trucker-details-page {
    padding: 28px 0 72px;
}

.trucker-details-page .container {
    max-width: 1140px;
}

/* Back link */
.trucker-details-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 22px;
    margin-bottom: 24px;
    border: 2px solid #059669;
    border-radius: 10px;
    background: #fff;
    color: #059669;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.trucker-details-back:hover {
    background: #059669;
    color: #fff;
}

/* Profile hero card */
.trucker-details-hero {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8ebef;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
    margin-bottom: 28px;
}

.trucker-details-hero__pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 42%;
    height: 100%;
    pointer-events: none;
    background-image: radial-gradient(circle, #cbd5e1 1.5px, transparent 1.5px);
    background-size: 14px 14px;
    opacity: 0.45;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 35%, #000 70%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 35%, #000 70%);
}

.trucker-details-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px;
    padding: 36px 40px;
}

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

.trucker-details-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(145deg, #059669 0%, #047857 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 10px 28px rgba(5, 150, 105, 0.28);
}

.trucker-details-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.trucker-details-verified {
    position: absolute;
    right: 4px;
    bottom: 6px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #059669;
    color: #fff;
    border: 3px solid #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.35);
}

.trucker-details-hero__info {
    flex: 1 1 240px;
    min-width: 0;
}

.trucker-details-hero__info h1 {
    margin: 0 0 12px;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #111827;
    line-height: 1.15;
}

.trucker-details-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 0.88rem;
    font-weight: 600;
}

.trucker-details-role-badge i {
    font-size: 0.82rem;
}

.trucker-details-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.trucker-details-stars {
    display: inline-flex;
    gap: 3px;
    color: #fbbf24;
    font-size: 1.05rem;
}

.trucker-details-stars .far {
    color: #d1d5db;
}

.trucker-details-rating-count {
    color: #6b7280;
    font-size: 0.92rem;
}

.trucker-details-hero__action {
    flex: 0 0 auto;
    margin-left: auto;
}

.trucker-details-invite-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 190px;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    background: #059669;
    color: #fff;
    font-size: 0.98rem;
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(5, 150, 105, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.trucker-details-invite-btn:hover {
    background: #047857;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(5, 150, 105, 0.32);
    color: #fff;
}

/* Two-column info grid */
.trucker-details-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    gap: 28px;
    align-items: start;
    /* min-height: 430px; */
}

.trucker-details-card {
    background: #fff;
    border: 1px solid #e8ebef;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}



.trucker-details-card__head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 28px;
    border-bottom: 1px solid #eef1f4;
}

.trucker-details-card__head-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #059669;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.trucker-details-card__head h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #111827;
}

.trucker-details-card__body {
    padding: 8px 28px 24px;
}

.trucker-details-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid #f1f5f9;
}

.trucker-details-row:last-child {
    border-bottom: none;
    padding-bottom: 8px;
}

.trucker-details-row__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #059669;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.trucker-details-row__label {
    font-size: 0.98rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

.trucker-details-row__value {
    font-size: 0.92rem;
    color: #374151;
    line-height: 1.55;
}

.trucker-details-row__value a {
    color: #059669;
    text-decoration: none;
    font-weight: 600;
}

.trucker-details-row__value a:hover {
    text-decoration: underline;
}

.trucker-details-row__value--locked,
.trucker-details-row__value--muted {
    color: #6b7280;
}

.trucker-details-row__value--locked i {
    margin-right: 6px;
    font-size: 0.82rem;
    color: #9ca3af;
}

.trucker-details-login-note {
    margin: 0;
    padding: 16px 18px;
    border-radius: 12px;
    background: #eff6ff;
    color: #1e40af;
    font-size: 0.92rem;
    line-height: 1.6;
}

.trucker-details-login-note a {
    color: #059669;
    font-weight: 700;
    text-decoration: none;
}

.trucker-details-login-note a:hover {
    text-decoration: underline;
}

/* Extra sections below main grid */
.trucker-details-extra {
    margin-top: 28px;
    display: grid;
    gap: 28px;
}

.trucker-details-extra .trucker-details-card__body {
    padding-top: 4px;
}

.trucker-details-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trucker-details-skill {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 0.88rem;
    font-weight: 500;
}

.trucker-details-timeline {
    position: relative;
    padding-left: 28px;
}

.trucker-details-timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: #e5e7eb;
}

.trucker-details-timeline-item {
    position: relative;
    padding-bottom: 22px;
}

.trucker-details-timeline-item:last-child {
    padding-bottom: 0;
}

.trucker-details-timeline-item::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #059669;
}

.trucker-details-timeline-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.trucker-details-timeline-sub {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 6px;
}

.trucker-details-timeline-date {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 0.78rem;
    font-weight: 600;
}

.trucker-details-timeline-desc {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.6;
}

.trucker-details-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.trucker-details-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 12px;
}

.trucker-details-map iframe {
    width: 100%;
    height: 280px;
    border: 0;
    border-radius: 0 0 16px 16px;
}

.trucker-details-map-caption {
    padding: 16px 28px 22px;
    text-align: center;
    color: #374151;
    font-size: 0.92rem;
}

.trucker-details-map-caption strong {
    display: block;
    margin-bottom: 4px;
    color: #111827;
}

/* Invitation modal */
.trucker-details-modal .modal-header {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #fff;
    border: none;
}

.trucker-details-modal .modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.trucker-details-modal .list-group-item {
    border-radius: 12px !important;
    margin-bottom: 10px;
    border: 1px solid #e5e7eb !important;
}

@media (max-width: 991px) {
    .trucker-details-hero__inner {
        padding: 28px 24px;
    }

    .trucker-details-hero__action {
        width: 100%;
        margin-left: 0;
    }

    .trucker-details-invite-btn {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .trucker-details-grid {
        grid-template-columns: 1fr;
    }

    .trucker-details-hero__pattern {
        width: 55%;
        opacity: 0.3;
    }

    .trucker-details-card__head,
    .trucker-details-card__body {
        padding-left: 20px;
        padding-right: 20px;
    }
}
