/* ═══════════════════════════════════════════════════════════
   AIRBID — how-it-works.css
═══════════════════════════════════════════════════════════ */

/* ══════════════════════════════════
   1. HERO
══════════════════════════════════ */
.hiw-hero {
    background-color: var(--primary);
    padding: 96px 0 80px;
}

.hiw-hero-label {
    opacity: 0.9;
}

.hiw-hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.hiw-hero-sub {
    color: rgba(255, 255, 255, 0.65);
    font-size: 17px;
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto;
}

.btn-hiw-outline {
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
    background: transparent !important;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}
.btn-hiw-outline:hover,
.btn-hiw-outline:focus {
    border-color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

/* ══════════════════════════════════
   2. TASK FLOW
══════════════════════════════════ */
.hiw-section-sub {
    max-width: 480px;
    margin-top: 8px;
}

/* ── Each step row ── */
.hiw-step-row {
    display: flex;
    align-items: center;
    gap: 56px;
    position: relative;
    padding-bottom: 80px;
}
.hiw-step-row.hiw-step-last { padding-bottom: 0; }

.hiw-step-row-reverse { flex-direction: row-reverse; }

.hiw-step-content {
    flex: 1;
}

.hiw-step-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dashed vertical connector between steps */
.hiw-connector {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 2px;
    height: 80px;
    background-image: repeating-linear-gradient(
        180deg,
        var(--outline-variant) 0,
        var(--outline-variant) 6px,
        transparent 6px,
        transparent 14px
    );
    z-index: 0;
}
.hiw-connector-right { left: 50%; }

/* ── Step number badge ── */
.hiw-step-num {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 18px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.hiw-num-teal    { background: var(--primary); }
.hiw-num-coral   { background: var(--vibrant-coral); }
.hiw-num-emerald { background: var(--emerald-accent); }

/* ── Step text ── */
.hiw-step-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--deep-teal);
    margin-bottom: 12px;
    line-height: 1.25;
}

.hiw-step-desc {
    color: var(--on-surface-variant);
    line-height: 1.75;
    margin-bottom: 22px;
    font-size: 15px;
}

.hiw-step-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hiw-step-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--on-surface);
}
.hiw-check {
    color: var(--emerald-accent);
    font-size: 20px;
    flex-shrink: 0;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Mock UI cards */
.hiw-card-mock {
    background: var(--surface-lowest);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(23, 62, 75, 0.10);
    width: 100%;
    max-width: 360px;
}

.hiw-card-success {
    background: var(--deep-teal);
    border-color: var(--deep-teal);
}

.mock-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.mock-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--deep-teal);
    line-height: 1.4;
}

.mock-chip {
    background: var(--surface-low);
    color: var(--on-surface-variant);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    display: inline-block;
}

.mock-divider {
    height: 1px;
    background: var(--outline-variant);
    margin: 16px 0;
}
.mock-divider-light {
    background: rgba(255, 255, 255, 0.15);
}

.mock-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--on-surface-variant);
    margin-bottom: 8px;
    font-weight: 600;
}
.mock-icon {
    font-size: 16px;
    color: var(--outline);
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Bid list mock */
.hiw-bid-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    transition: background 0.2s;
}
.hiw-bid-item:last-child { margin-bottom: 0; }
.hiw-bid-featured {
    background: rgba(23, 62, 75, 0.06);
    border: 1px solid var(--deep-teal);
}

.hiw-bid-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: #ffffff;
    flex-shrink: 0;
}
.hiw-av-1 { background: var(--primary); }
.hiw-av-2 { background: var(--vibrant-coral); }
.hiw-av-3 { background: var(--emerald-accent); }

.hiw-bid-info { flex: 1; }
.hiw-bid-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--deep-teal);
}
.hiw-bid-rating {
    color: #f5a623;
    font-size: 12px;
    margin-left: 4px;
}
.hiw-bid-price {
    font-size: 12px;
    color: var(--outline);
    margin-top: 2px;
}
.hiw-bid-tag {
    font-size: 11px;
    font-weight: 700;
    background: var(--deep-teal);
    color: #fff;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

/* Success card elements */
.hiw-success-icon {
    text-align: center;
    margin: 16px 0 12px;
}
.hiw-success-icon .material-symbols-outlined {
    font-size: 48px;
    color: var(--emerald-accent);
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 48;
}

.mock-release-btn {
    background: var(--emerald-accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 6px 14px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}
.mock-release-btn:hover { opacity: 0.85; }

/* ══════════════════════════════════
   3. BOTH SIDES
══════════════════════════════════ */
.hiw-both-section {
    background: var(--primary);
}

.both-card {
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.both-card-client {
    background: var(--primary-container);
    border: 1px solid rgba(255,255,255,0.1);
}

.both-card-pro {
    background: var(--surface-lowest);
    border: 1px solid var(--outline-variant);
}

.both-card-header {
    margin-bottom: 1.75rem;
}

.both-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 12px;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 36;
}
.both-card-client .both-icon { color: var(--emerald-accent); }
.both-card-pro .both-icon    { color: var(--vibrant-coral); }

.both-card-title {
    font-size: 22px;
    margin-bottom: 4px;
}
.both-card-client .both-card-title { color: #ffffff; }
.both-card-pro .both-card-title    { color: var(--deep-teal); }

.both-card-sub {
    font-size: 14px;
    margin-bottom: 0;
}
.both-card-client .both-card-sub { color: rgba(255,255,255,0.55); }
.both-card-pro .both-card-sub    { color: var(--outline); }

.both-list {
    list-style: none;
    padding: 0;
    margin: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 2rem;
}
.both-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.both-list li strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}
.both-list li p {
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}
.both-card-client .both-list li strong { color: #ffffff; }
.both-card-client .both-list li p      { color: rgba(255,255,255,0.55); }
.both-card-pro .both-list li strong    { color: var(--deep-teal); }
.both-card-pro .both-list li p         { color: var(--on-surface-variant); }

.both-check {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    color: var(--emerald-accent);
}
.both-check-coral { color: var(--vibrant-coral); }

/* ══════════════════════════════════
   4. COINS
══════════════════════════════════ */
.coin-stat-box {
    background: var(--surface-lowest);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
}
.coin-stat-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 6px;
}
.coin-stat-label {
    font-size: 12px;
    color: var(--outline);
    line-height: 1.4;
}

/* Coin step explainer */
.coin-explainer {
    background: var(--surface-lowest);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-xl);
    padding: 2rem;
}

.coin-step-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.coin-step-line {
    width: 2px;
    height: 32px;
    background: var(--outline-variant);
    margin-left: 23px;
    margin-top: 0;
}

.coin-step-dot {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.coin-step-dot .material-symbols-outlined {
    font-size: 22px;
    color: #ffffff;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.coin-dot-1 { background: var(--primary); }
.coin-dot-2 { background: var(--vibrant-coral); }
.coin-dot-3 { background: var(--emerald-accent); }
.coin-dot-4 { background: var(--deep-teal); }

.coin-step-body { flex: 1; padding-top: 8px; }
.coin-step-title {
    font-size: 15px;
    color: var(--deep-teal);
    margin-bottom: 4px;
}
.coin-step-desc {
    font-size: 13px;
    color: var(--on-surface-variant);
    line-height: 1.5;
    margin: 0;
}

/* ══════════════════════════════════
   5. TRUST / ESCROW
══════════════════════════════════ */
.hiw-trust-section {
    background: var(--deep-teal);
}

.hiw-trust-sub {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    max-width: 520px;
    margin: 8px auto 0;
    line-height: 1.7;
}

.trust-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    transition: background 0.25s, transform 0.25s;
}
.trust-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
}

.trust-icon {
    font-size: 36px;
    color: var(--emerald-accent);
    display: block;
    margin-bottom: 16px;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 36;
}

.trust-title {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 8px;
}

.trust-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
    margin: 0;
}

/* ══════════════════════════════════
   6. FAIR
══════════════════════════════════ */
.fair-card {
    background: var(--surface-lowest);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    transition: box-shadow 0.25s, transform 0.25s;
}
.fair-card:hover {
    box-shadow: 0 8px 24px rgba(23, 62, 75, 0.10);
    transform: translateY(-2px);
}

.fair-icon {
    font-size: 32px;
    color: var(--vibrant-coral);
    display: block;
    margin-bottom: 16px;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 32;
}

.fair-title {
    font-size: 16px;
    color: var(--deep-teal);
    margin-bottom: 8px;
}

.fair-desc {
    font-size: 13px;
    color: var(--on-surface-variant);
    line-height: 1.6;
    margin: 0;
}

/* ── MOCK CARD INLINE REPLACEMENTS ── */
.hiw-bid-avatar-lg {
    width: 52px;
    height: 52px;
    font-size: 18px;
}
.mock-hired-name {
    font-size: 15px;
}
.mock-work-title {
    font-size: 15px;
}
.mock-work-sub {
    color: rgba(255, 255, 255, 0.6);
}
.mock-release-label {
    color: rgba(255, 255, 255, 0.7);
}

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 991.98px) {
    .hiw-hero { padding: 72px 0 60px; }

    .hiw-step-row,
    .hiw-step-row-reverse {
        flex-direction: column;
        gap: 32px;
        padding-bottom: 48px;
    }
    .hiw-connector { display: none !important; }
    .hiw-step-content { width: 100%; }
    .hiw-step-visual  { width: 100%; justify-content: flex-start; }

    .both-card { padding: 2rem; }
}

@media (max-width: 767.98px) {
    .hiw-hero { padding: 56px 0 48px; }
    .both-card { padding: 1.5rem; }
    .coin-explainer { padding: 1.5rem; }
}

@media (max-width: 575.98px) {
    .hiw-hero { padding: 40px 0 36px; }
    .hiw-step-num { width: 44px; height: 44px; font-size: 16px; }
    .hiw-step-title { font-size: 19px; }
    .both-card { padding: 1.25rem; }
}
