/* ═══════════════════════════════════════════════════
   JASA TUKANG — DETAIL PAGE (PREMIUM)
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&display=swap');

:root {
    --jd-primary: #1a2332;
    --jd-accent: #e8a838;
    --jd-accent-glow: #f5c563;
    --jd-emerald: #10b981;
    --jd-emerald-soft: #d1fae5;
    --jd-surface: #f8fafc;
    --jd-border: #e2e8f0;
    --jd-text: #1e293b;
    --jd-text-muted: #94a3b8;
    --jd-radius: 16px;
}

/* ── Detail Hero ──────────────────────────────────── */
.jd-hero {
    background: linear-gradient(135deg, var(--jd-primary) 0%, #0f1923 100%);
    padding: 48px 0 56px;
    position: relative;
    overflow: hidden;
}
.jd-hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 30% 70%, rgba(232,168,56,.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(16,185,129,.06) 0%, transparent 50%);
    pointer-events: none;
}
.jd-hero-content {
    display: flex;
    align-items: center;
    gap: 32px;
    position: relative;
    z-index: 1;
}
.jd-hero-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,.15);
    box-shadow: 0 0 0 4px var(--jd-accent), 0 8px 32px rgba(0,0,0,.3);
    flex-shrink: 0;
}
.jd-hero-info h1 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: 8px;
}
.jd-hero-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.jd-badge {
    font-size: .68rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: .04em;
}
.jd-badge-verified {
    background: rgba(16,185,129,.15);
    color: #6ee7b7;
    border: 1px solid rgba(16,185,129,.3);
}
.jd-badge-available {
    background: rgba(232,168,56,.12);
    color: var(--jd-accent-glow);
    border: 1px solid rgba(232,168,56,.25);
}
.jd-hero-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,.5);
    font-size: .85rem;
}
.jd-hero-location i { font-size: .9rem; }

/* ── Stats Strip ──────────────────────────────────── */
.jd-stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: -32px auto 32px;
    position: relative;
    z-index: 2;
    max-width: 820px;
}
.jd-stat-card {
    background: #fff;
    border: 1px solid var(--jd-border);
    border-radius: 14px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.05);
}
.jd-stat-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.jd-stat-icon.icon-proyek { background: #eff6ff; color: #2563eb; }
.jd-stat-icon.icon-experience { background: #ecfdf5; color: #059669; }
.jd-stat-icon.icon-rating { background: #fffbeb; color: #d97706; }
.jd-stat-icon.icon-radius { background: #fdf2f8; color: #db2777; }
.jd-stat-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--jd-text);
    line-height: 1.2;
}
.jd-stat-label {
    display: block;
    font-size: .7rem;
    color: var(--jd-text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-top: 2px;
}
@media (max-width: 768px) {
    .jd-stats-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .jd-hero-content { flex-direction: column; text-align: center; }
    .jd-hero-badges { justify-content: center; }
    .jd-hero-location { justify-content: center; }
}

/* ── Content Layout ───────────────────────────────── */
.jd-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    align-items: start;
}
@media (max-width: 992px) {
    .jd-content { grid-template-columns: 1fr; }
}

/* ── Section Cards ────────────────────────────────── */
.jd-section {
    background: #fff;
    border: 1px solid var(--jd-border);
    border-radius: var(--jd-radius);
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.jd-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--jd-text);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--jd-accent);
    display: flex;
    align-items: center;
    gap: 8px;
}
.jd-section-title i { color: var(--jd-accent); }

/* ── Skill Cards ──────────────────────────────────── */
.jd-skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.jd-skill-card {
    border: 1px solid var(--jd-border);
    border-radius: 12px;
    padding: 16px;
    transition: border-color .2s;
}
.jd-skill-card:hover { border-color: var(--jd-accent); }
.jd-skill-name {
    font-size: .85rem;
    font-weight: 700;
    color: var(--jd-text);
    margin-bottom: 8px;
}
.jd-skill-level {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.jd-skill-bar {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}
.jd-skill-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width .8s ease;
}
.jd-skill-bar-fill.pemula { width: 33%; background: #f59e0b; }
.jd-skill-bar-fill.menengah { width: 66%; background: #3b82f6; }
.jd-skill-bar-fill.ahli { width: 100%; background: var(--jd-emerald); }
.jd-skill-level-text {
    font-size: .7rem;
    font-weight: 600;
    color: var(--jd-text-muted);
    text-transform: uppercase;
    min-width: 60px;
    text-align: right;
}

/* ── Bio Section ──────────────────────────────────── */
.jd-bio {
    color: #475569;
    font-size: .88rem;
    line-height: 1.7;
}

/* ── Review Cards ─────────────────────────────────── */
.jd-review-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.jd-review-card {
    border: 1px solid var(--jd-border);
    border-radius: 12px;
    padding: 16px;
    background: var(--jd-surface);
}
.jd-review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.jd-review-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #cbd5e1;
    display: flex; align-items: center; justify-content: center;
    font-size: .82rem; font-weight: 700; color: #fff;
}
.jd-review-author { font-size: .82rem; font-weight: 600; color: var(--jd-text); }
.jd-review-date { font-size: .7rem; color: var(--jd-text-muted); }
.jd-review-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 6px;
}
.jd-review-stars .star-filled { color: #f59e0b; font-size: .82rem; }
.jd-review-stars .star-empty { color: #e2e8f0; font-size: .82rem; }
.jd-review-text { font-size: .82rem; color: #475569; line-height: 1.6; }

/* ── Sticky Booking Sidebar ───────────────────────── */
.jd-booking-sidebar {
    position: sticky;
    top: 100px;
}
.jd-booking-card {
    background: #fff;
    border: 1px solid var(--jd-border);
    border-radius: var(--jd-radius);
    padding: 28px;
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.jd-booking-tarif {
    text-align: center;
    padding: 16px;
    background: linear-gradient(135deg, #fefce8, #fef3c7);
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(232,168,56,.2);
}
.jd-booking-tarif .tarif-label {
    font-size: .72rem;
    color: #92400e;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 4px;
}
.jd-booking-tarif .tarif-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--jd-emerald);
}
.jd-booking-tarif .tarif-unit {
    font-size: .78rem;
    color: #92400e;
    font-weight: 500;
}
.jd-form-label {
    display: block;
    font-size: .75rem;
    font-weight: 600;
    color: var(--jd-text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 5px;
}
.jd-form-control {
    width: 100%;
    border: 1px solid var(--jd-border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: .85rem;
    color: var(--jd-text);
    margin-bottom: 14px;
    transition: border-color .2s;
}
.jd-form-control:focus {
    border-color: var(--jd-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(232,168,56,.1);
}
.jd-btn-book {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--jd-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .1s;
    text-align: center;
}
.jd-btn-book:hover {
    background: #0f1923;
    transform: translateY(-1px);
}

/* ── Trust Signals ────────────────────────────────── */
.jd-trust-signals {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--jd-border);
}
.jd-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .76rem;
    color: #64748b;
}
.jd-trust-item i {
    color: var(--jd-emerald);
    font-size: .88rem;
}

/* ── Login Prompt ─────────────────────────────────── */
.jd-login-prompt {
    text-align: center;
    padding: 32px 24px;
    background: var(--jd-surface);
    border: 2px dashed var(--jd-border);
    border-radius: 12px;
}
.jd-login-prompt p {
    color: var(--jd-text-muted);
    font-size: .88rem;
    margin-bottom: 12px;
}
.jd-login-btn {
    display: inline-block;
    padding: 10px 28px;
    background: var(--jd-accent);
    color: var(--jd-primary);
    font-weight: 700;
    font-size: .82rem;
    border-radius: 10px;
    text-decoration: none;
    transition: background .2s;
}
.jd-login-btn:hover { background: var(--jd-accent-glow); color: var(--jd-primary); }
