/* Hizmetbul brand tokens — see Claude Documents/CLAUDE_CODE_PLAN_PROMPT.md §3 */
:root {
    --th-primary: #0EA5E9;
    --th-primary-dark: #0369A1;
    --th-primary-light: #E0F2FE;

    --th-secondary: #14B8A6;
    --th-secondary-dark: #0F766E;

    --th-accent: #F59E0B;
    --th-accent-dark: #B45309;

    --th-success: #10B981;
    --th-warning: #F59E0B;
    --th-danger: #EF4444;
    --th-info: #0EA5E9;

    --th-text: #0F172A;
    --th-text-muted: #64748B;
    --th-text-subtle: #94A3B8;

    --th-bg: #F8FAFC;
    --th-card: #FFFFFF;
    --th-border: #E2E8F0;
    --th-border-strong: #CBD5E1;
}

/* Override Tabler/Bootstrap CSS variables so theme components pick brand colors. */
:root {
    --tblr-primary: var(--th-primary);
    --tblr-primary-rgb: 14, 165, 233;
    --tblr-primary-darken: var(--th-primary-dark);
    --tblr-secondary: var(--th-secondary);
    --tblr-secondary-rgb: 20, 184, 166;
    --tblr-success: var(--th-success);
    --tblr-success-rgb: 16, 185, 129;
    --tblr-warning: var(--th-warning);
    --tblr-warning-rgb: 245, 158, 11;
    --tblr-danger: var(--th-danger);
    --tblr-danger-rgb: 239, 68, 68;
    --tblr-info: var(--th-info);
    --tblr-info-rgb: 14, 165, 233;
    --tblr-body-bg: var(--th-bg);
    --tblr-body-color: var(--th-text);
    --tblr-border-color: var(--th-border);
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-feature-settings: 'cv11', 'ss01';
}

/* Brand custom utility components (BEM-ish). */
.th-card {
    background: var(--th-card);
    border: 1px solid var(--th-border);
    border-radius: 0.5rem;
    padding: 1rem;
}

.th-card__title {
    color: var(--th-text);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.th-pending-review-banner {
    background: var(--th-accent);
    color: #fff;
    border-radius: 0.5rem;
    padding: 1rem;
    font-weight: 600;
}

.th-message-bubble {
    background: var(--th-primary-light);
    border-radius: 0.75rem;
    padding: 0.5rem 0.75rem;
    max-width: 80%;
}

.th-message-bubble--mine {
    background: var(--th-primary);
    color: #fff;
    margin-left: auto;
}

.th-star {
    color: var(--th-text-subtle);
    cursor: pointer;
    font-size: 1.5rem;
}

.th-star--active {
    color: var(--th-accent);
}

/* Public navbar — sticky with subtle on-scroll shadow + brand bottom rule. */
.th-navbar {
    background: #FFFFFF;
    border-bottom: 2px solid var(--th-primary);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.15s ease;
    z-index: 1030;
}
.th-navbar .navbar-brand img { display: block; }
.th-navbar .nav-link {
    color: var(--th-text);
    font-weight: 500;
}
.th-navbar .nav-link:hover { color: var(--th-primary); }
.th-navbar .dropdown-menu {
    border-color: var(--th-border);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}
.th-navbar.scrolled {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

/* ========== Mobile-first ergonomics (Phase K-7) ========== */

/* Touch-target minimum: 44px on all primary CTAs (WCAG 2.5.5 / iOS HIG). */
.btn,
.btn-primary,
.btn-outline-primary,
.btn-light,
.btn-outline-light {
    min-height: 44px;
}
.btn-sm {
    min-height: 36px;
}
.form-control,
.form-select {
    min-height: 44px;
}

/* Hero search collapses to stacked layout on small screens. */
@media (max-width: 575.98px) {
    .th-hero-search {
        flex-direction: column;
    }
    .th-hero-search .btn {
        width: 100%;
    }
}

/* Trust strip: 4-up on md+, 2-up on sm, 1-up on xs already comes from
   col-6 col-md-3 in markup; tighten the divider so it doesn't visually
   pile on narrow widths. */
@media (max-width: 575.98px) {
    .th-trust-strip > div {
        border-left-width: 2px;
        padding-left: 0.5rem;
    }
}

/* How-it-works: hide the connector line idea on mobile via simple gap. */
.th-howitworks .th-step {
    padding-block: 0.5rem;
}

/* Category card images: shrink height on phones so they don't dominate. */
@media (max-width: 575.98px) {
    .th-category-card__image {
        height: 120px;
    }
}

/* Card body padding scales down on phones (Tabler's .card-body p-4). */
@media (max-width: 575.98px) {
    .card-body.p-4 {
        padding: 1rem !important;
    }
}

/* Sidebar layouts (customer / provider): page-body needs comfortable
   padding on phones so content isn't flush to the screen edge. */
@media (max-width: 991.98px) {
    .page-body .container-xl {
        padding-inline: 1rem;
    }
}

/* Footer link list spacing on phone. */
@media (max-width: 575.98px) {
    footer h6 {
        margin-top: 0.5rem;
    }
}

/* CTA banner: button stack on phones. */
@media (max-width: 575.98px) {
    .th-cta .btn {
        width: 100%;
    }
}

/* Empty state image scaling for narrow widths. */
@media (max-width: 575.98px) {
    .empty .empty-img img {
        max-width: 140px !important;
    }
}

/* Bid card (customer view) */
.th-bid-card { padding: 1rem; }
.th-bid-card__avatar img,
.th-bid-card__initials {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}
.th-bid-card__initials {
    background: var(--th-primary-light);
    color: var(--th-primary-dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}
.th-bid-card__message {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Provider feed card description truncation */
.th-feed-card__desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
