/**
 * Ergasti Creators — utility classes (design tokens).
 * Loaded after tokens.css.
 *
 * Phase 3 inline-style metric: count `style=` only in dashboard Blade under
 * `resources/views/frontend` (exclude `resources/views/emails`; those often need
 * inline styles for mail clients — track as a separate metric if required).
 */

/* Gradient backgrounds */
.bg-instagram-gradient {
    background: var(--color-instagram-gradient) !important;
}
.bg-brand-gradient {
    background: var(--color-primary-gradient) !important;
}

/* Border utilities */
.border-instagram {
    border: 2px solid var(--color-instagram) !important;
}
.border-brand {
    border: 2px solid var(--color-primary) !important;
}

/* Shadow utilities */
.shadow-brand {
    box-shadow: var(--shadow-brand) !important;
}
.shadow-instagram {
    box-shadow: var(--shadow-instagram) !important;
}

/* Border radius utilities */
.rounded-xl {
    border-radius: var(--radius-xl) !important;
}
.rounded-2xl {
    border-radius: var(--radius-2xl) !important;
}

/* Image fit utilities */
.img-cover-fit {
    object-fit: cover;
}

/* Avatar sizes */
.avatar-xs {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}
.avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.avatar-md {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}
.avatar-lg {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}
.avatar-xl {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
}

/* Card with instagram styling */
.card-instagram {
    border: 2px solid var(--color-instagram);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-instagram);
}

/* Font size utilities */
.fs-xs {
    font-size: var(--font-size-xs) !important;
}

/* Offcanvas width presets (token z-index available via --z-offcanvas) */
.offcanvas--wide {
    width: 60vw !important;
    max-width: none !important;
}
.offcanvas--medium {
    width: 50vw !important;
    max-width: none !important;
}
.offcanvas--full {
    width: 100vw !important;
    max-width: none !important;
}

/* Wizard step progress indicator */
.wizard-step-bubble {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    transition: var(--transition-normal);
}
.wizard-step-bubble.is-done {
    background: var(--color-success);
    color: #fff;
}
.wizard-step-bubble.is-active {
    background: var(--color-primary);
    color: #fff;
}
.wizard-step-bubble.is-pending {
    background: #e9ecef;
    color: var(--color-muted);
}

.wizard-step-connector {
    height: 2px;
    background: #e9ecef;
    transition: var(--transition-normal);
}
.wizard-step-connector.is-done {
    background: var(--color-success);
}

/* Progress bar thin variant (wizard) */
.wizard-progress-bar {
    height: 4px;
}

/* Thumbnail with small radius (replaces inline object-fit + radius) */
.img-thumbnail-sm {
    object-fit: cover;
    border-radius: var(--radius-sm);
}

/* Hidden step panel (prefer class over inline display:none) */
.wizard-step.is-hidden {
    display: none !important;
}

/* Campaign list title truncation */
.mw-campaign-title-link {
    max-width: 220px;
}

/* Brand / detail — logo thumb and links (replaces inline width/height/font-size) */
.ui-brand-logo-square-72 {
    width: 72px;
    height: 72px;
    object-fit: cover;
}

.ui-brand-logo-placeholder-72 {
    width: 72px;
    height: 72px;
}

.ui-fs-125 {
    font-size: 1.25rem;
}

.ui-payment-proof-thumb {
    max-height: 140px;
    object-fit: cover;
}

.ui-sticky-sidebar-offset {
    top: 1rem;
}

/* Showcase / docs — token swatches without Blade inline width */
.ui-token-swatch {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border-radius: var(--radius-sm, 4px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin-right: 0.35rem;
    vertical-align: middle;
}

.ui-token-swatch--primary {
    background: var(--color-primary, #e53935);
}

.ui-token-swatch--instagram {
    background: var(--color-instagram, #e1306c);
}

/* Deliverables list */
.th-deliverable-media {
    width: 72px;
    text-align: center;
}
.ls-deliverable-status-cell {
    min-width: 160px;
}

.ls-role-actions-td {
    min-width: 120px;
}

.min-w-phone-code {
    min-width: 105px;
}

/* Section headings (e.g. components showcase) — replaces inline letter-spacing */
.text-section-label {
    letter-spacing: 0.05em;
}

/* Auth — side column cover image (replaces width/height/object-fit inline) */
.auth-side-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Auth modals — OTP digit cells (login / forgot password) */
.auth-otp-digit {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
}

.auth-modal-icon-brand {
    font-size: 4rem;
}

.auth-modal-icon-warning {
    font-size: 3rem;
}

/* Campaign wizard step 1 — Instagram-framed column (replaces long inline style blocks) */
.cw-step1-instagram-shell {
    border: 2px solid var(--color-instagram, #e1306c);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(225, 48, 108, 0.1);
    transition: all 0.3s ease;
}

.cw-step1-card-header-instagram {
    border-radius: 12px 12px 0 0;
    background: var(--color-instagram-gradient, linear-gradient(135deg, #e1306c, #fd1d1d, #fcb045));
}

.cw-step1-icon-ring {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

/* Campaign overview — status dropdown / badges (replaces inline font-size / min-width) */
.campaign-status-dropdown-toggle {
    min-width: 140px;
}

.campaign-status-dropdown-menu {
    min-width: 180px;
}

.ui-fs-075 {
    font-size: 0.75rem;
}

.ui-fs-07 {
    font-size: 0.7rem;
}

.ov-status-option-spacing {
    margin: 2px 4px;
}

.max-w-300px {
    max-width: 300px;
}

/* Invite modal table layout */
.table-layout-fixed {
    table-layout: fixed;
}

.th-select-col-30 {
    width: 30%;
}

/* Campaign wizard step 1 — teal brief column */
.cw-step1-teal-shell {
    border: 2px solid #17a2b8;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(23, 162, 184, 0.1);
    transition: all 0.3s ease;
}

.cw-step1-card-header-teal {
    border-radius: 12px 12px 0 0;
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.cw-upload-box-teal {
    border: 2px dashed #17a2b8;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    background: rgba(23, 162, 184, 0.05);
    transition: all 0.3s ease;
}

.cw-upload-btn-teal {
    background: linear-gradient(135deg, #17a2b8, #138496);
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 600;
}

.cw-icon-offset-sm {
    margin: 26px 0 0 0;
}

/* Brand create — Instagram smart-fill card */
.brand-ig-scrape-card {
    border: 2px solid #e1306c;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(225, 48, 108, 0.1);
}

.brand-ig-scrape-header {
    border-radius: 12px 12px 0 0;
}

.brand-widget-round-light {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 10px;
}

.brand-svg-icon-24 {
    width: 24px;
    height: 24px;
    fill: white;
}

.input-group-text-brand-ig {
    background: #f8f9fa;
    border-color: #e1306c;
}

.form-control-brand-ig {
    border-color: #e1306c;
    font-weight: 500;
}

.btn-brand-scrape-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.alert-brand-scrape-loading {
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.progress-h-4px {
    height: 4px;
}

.avatar-circle-60 {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.rounded-card-10 {
    border-radius: 10px;
}

.rounded-card-header-10 {
    border-radius: 10px 10px 0 0;
}

.img-thumb-preview-100 {
    max-width: 100px;
    max-height: 100px;
}

/* Brand create_smart — alternate accent */
.brand-smart-scrape-card {
    border: 2px solid #e3463b;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(225, 48, 108, 0.1);
}

.brand-smart-scrape-header {
    background-color: #f9dad8 !important;
    border-color: #f9dad8 !important;
    border-radius: 12px 12px 0 0;
}

.brand-widget-round-accent {
    background: #e3463b;
    border-radius: 50%;
    padding: 10px;
}

.btn-brand-smart-scrape {
    background: #e3463b;
    border: none;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 15px rgba(227, 70, 59, 0.35);
    transition: all 0.3s ease;
}

.brand-smart-hint-strong {
    color: #000 !important;
    font-weight: bold;
}

.max-w-120px {
    max-width: 120px;
}

.min-w-400px {
    min-width: 400px;
}

.btn-client-scrape-ig {
    background: #e3463b;
    border-color: #e3463b;
}

.creator-smart-icon-wrap {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e1306c, #fd1d1d, #fcb045);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.btn-creator-scrape-gradient {
    background: linear-gradient(135deg, #e1306c, #fd1d1d);
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
}

.creator-ig-input-rounded-end {
    border-radius: 0 8px 8px 0;
}

.creator-preview-bio-italic {
    font-style: italic;
}

.img-thumb-preview-80 {
    max-width: 80px;
    max-height: 80px;
}

/* Rounded card variant */
.rounded-card-12 {
    border-radius: 12px;
}

/* Offcanvas media preview */
.media-preview-container {
    min-height: 300px;
    position: relative;
}

.media-preview-img {
    max-height: 300px;
    max-width: 100%;
    object-fit: contain;
}

.media-preview-sm-img {
    max-height: 150px;
    object-fit: contain;
}

/* Caption / note bar */
.caption-bar {
    border-left: 4px solid var(--color-primary, #e53935);
    min-height: 60px;
}

/* Minimum height helpers */
.min-h-170px {
    min-height: 170px;
}

/* Scrollable region */
.scroll-region-400 {
    max-height: 400px;
    overflow-y: auto;
}

/* ── Filmstrip media selector ──────────────────────────────────
   Shared across deliverables, campaigns, and any upload panel.
   Usage: wrap thumbs in .review-filmstrip; each thumb gets
   .filmstrip-thumb (add .active for the selected state).
────────────────────────────────────────────────────────────── */
.review-filmstrip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    min-height: 72px;
    scrollbar-width: thin;
    scrollbar-color: #cbd3da transparent;
}
.review-filmstrip::-webkit-scrollbar { height: 4px; }
.review-filmstrip::-webkit-scrollbar-thumb { background: #cbd3da; border-radius: 2px; }

.filmstrip-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color .15s, transform .15s;
    position: relative;
    background: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.filmstrip-thumb:hover  { transform: scale(1.05); border-color: rgba(13,110,253,.4); }
.filmstrip-thumb.active { border-color: #0d6efd; box-shadow: 0 0 0 2px rgba(13,110,253,.2); }
.filmstrip-thumb img,
.filmstrip-thumb video  { width: 100%; height: 100%; object-fit: cover; }
.filmstrip-thumb .play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .28);
    color: #fff;
    font-size: .8rem;
    pointer-events: none;
}

.filmstrip-empty {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #adb5bd;
    font-size: .8rem;
    padding: 4px 0;
}
