/* ==========================================================================
   Ziro Freelance Platformu - uygulamaya özel ek stiller
   Tema (dist/css/style.css) değişkenleri ve renkleri temel alınmıştır.
   ========================================================================== */

:root {
    --app-primary: #5F4BDB;
    --app-accent: #FE8D4D;
    --app-dark: #363848;
    --app-gray: #818181;
    --app-border: #E6E6E6;
    --app-soft: #F0EEFF;
    --app-success: #3DCD65;
    --app-danger: #FF5353;
    --app-shadow: 0 10px 40px rgba(95, 75, 219, .08);
}

/* --- Bildirimler (flash) --------------------------------------------------- */
.flash-stack {
    position: fixed;
    top: 20px;
    right: 20px;
    left: auto;
    z-index: 1090;
    width: calc(100% - 40px);
    max-width: 420px;
    padding: 0;
}
.alert-flash {
    border: 0;
    border-radius: 16px;
    padding: 16px 48px 16px 20px;
    font-weight: 500;
    font-size: 15px;
    box-shadow: 0 14px 40px rgba(31, 33, 49, .16);
    background: #fff;
    border-left: 5px solid var(--app-primary);
    color: var(--app-dark);
}
.alert-flash-success { border-left-color: var(--app-success); }
.alert-flash-error { border-left-color: var(--app-danger); }
.alert-flash-info { border-left-color: var(--app-primary); }
.alert-flash .btn-close { padding: 18px; }

.app-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translate(-50%, 30px);
    z-index: 1090;
    background: var(--app-dark);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50rem;
    font-size: 15px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: all .25s ease;
}
.app-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* --- Kaydet (kalp) durumları ---------------------------------------------- */
.btn-book.is-active,
.btn-book.is-active:hover {
    background-color: #FF477E !important;
    border-color: #FF477E !important;
    color: #fff !important;
}
.btn-book.is-active svg path { fill: currentColor; }
.btn-event-book.is-active { background-color: #FF477E !important; }
.btn-follow.is-active { background-color: var(--app-soft) !important; color: var(--app-primary) !important; border-color: var(--app-soft) !important; }

/* --- Navbar kullanıcı menüsü ----------------------------------------------- */
.nav-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}
.nav-user-btn img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, .7);
}
.navbar .dropdown-menu { border-radius: 16px; border: 0; box-shadow: 0 14px 40px rgba(31, 33, 49, .12); padding: 10px; min-width: 220px; }
.navbar .dropdown-item { border-radius: 10px; padding: 10px 14px; font-weight: 500; }
.navbar .dropdown-item:active { background: var(--app-primary); }

/* --- Ortak --------------------------------------------------------------- */
.content-body { font-size: 16px; line-height: 1.8; color: var(--app-dark); overflow-wrap: anywhere; }
.content-body h2, .content-body h3, .content-body h4 { font-weight: 600; margin: 1.6rem 0 .8rem; }
.content-body img { max-width: 100%; height: auto; border-radius: 20px; }
.content-body ul { padding-left: 1.2rem; }
.content-body a { color: var(--app-primary); }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    border: 2px dashed var(--app-border);
    border-radius: 30px;
    color: var(--app-gray);
}
.empty-state .empty-state-icon {
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--app-soft);
    color: var(--app-primary);
    margin-bottom: 18px;
}
.empty-state .empty-state-icon svg { width: 30px; height: 30px; }
.empty-state h5 { color: var(--app-dark); font-weight: 600; }

.skill-pill {
    display: inline-block;
    background: var(--app-soft);
    color: var(--app-primary);
    border-radius: 50rem;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
}

.cover-img { width: 100%; border-radius: 30px; object-fit: cover; max-height: 420px; }

.btn-suggestion.active { background-color: var(--app-primary) !important; color: #fff !important; }

.sort-dropdown .dropdown-menu { border: 0; border-radius: 16px; box-shadow: 0 14px 40px rgba(31, 33, 49, .12); padding: 10px; }
.sort-dropdown .dropdown-item { border-radius: 10px; padding: 9px 14px; font-weight: 500; }
.sort-dropdown .dropdown-item.active, .sort-dropdown .dropdown-item:active { background: var(--app-primary); color: #fff; }

.filter-panel { background: #fff; border-radius: 30px; box-shadow: var(--app-shadow); padding: 25px; }

/* Ana sayfa kart düzenlemeleri */
.job-card-grid .job-title a, .job-card-harizontal .job-title a { overflow-wrap: anywhere; }
.job-image img, .profile-image img, .img-avatar { object-fit: cover; }
.job-type-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--app-accent);
    background: rgba(254, 141, 77, .12);
    border-radius: 50rem;
    padding: 4px 12px;
}
.hide-salary .salary-card { display: none !important; }
.hide-details .details-card { display: none !important; }
.hide-salary .profile-detail .rate-row { display: none !important; }
.hide-details .profile-detail li:not(.rate-row) { display: none !important; }

/* Etkinlik banner görsel boyutları */
.event-banner-slider-image .event-thumb { object-fit: cover; }

/* Blog kartı (etkinlik kartını temel alır) */
.post-card .event-content-date-book { padding: 13px 15px; }
.post-card .event-content-info { min-height: 92px; }

/* --- Form yükleme alanı --------------------------------------------------- */
.form-upload .upload-zone { cursor: pointer; }
.form-upload .upload-zone.dragover { border-color: var(--app-primary) !important; background: var(--app-soft); }
.form-upload input[type=file] { display: none; }

.rating-input { display: inline-flex; flex-direction: row-reverse; gap: 6px; }
.rating-input input { display: none; }
.rating-input label { cursor: pointer; color: #D8D8D8; transition: color .15s; }
.rating-input label svg { width: 30px; height: 30px; }
.rating-input label svg path { fill: currentColor; }
.rating-input input:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label { color: #FFBE17; }

/* --- Panel düzeni ---------------------------------------------------------- */
.panel-wrap { padding-bottom: 80px; }
.panel-sidebar { position: sticky; top: 20px; }
.panel-user { display: flex; align-items: center; gap: 15px; }
.panel-user img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.panel-menu { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.panel-menu-title { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--app-gray); padding: 14px 16px 6px; }
.panel-menu a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 14px;
    color: var(--app-dark);
    font-weight: 500;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.panel-menu a svg { width: 18px; height: 18px; color: var(--app-gray); flex-shrink: 0; }
.panel-menu a svg path { fill: currentColor; }
.panel-menu a:hover { background: var(--app-soft); color: var(--app-primary); }
.panel-menu a.active { background: var(--app-primary); color: #fff; }
.panel-menu a.active svg { color: #fff; }
.panel-menu .menu-badge { margin-left: auto; background: var(--app-accent); color: #fff; font-size: 12px; border-radius: 50rem; padding: 2px 9px; }

.panel-card { background: #fff; border-radius: 20px; box-shadow: 0 0 40px rgba(31, 33, 49, .06); padding: 20px; }
@media (min-width: 768px) { .panel-card { padding: 34px; } }

.stat-card { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: 20px; padding: 22px; box-shadow: 0 0 40px rgba(31, 33, 49, .06); height: 100%; text-decoration: none; color: inherit; transition: transform .15s; }
a.stat-card:hover { transform: translateY(-3px); }
.stat-card-icon { width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.stat-card-icon svg { width: 22px; height: 22px; }
.stat-card-icon svg path { fill: currentColor; }
.stat-card-value { font-size: 26px; font-weight: 700; color: var(--app-dark); line-height: 1.1; }
.stat-card-label { font-size: 14px; color: var(--app-gray); }

.app-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.app-table th { font-size: 13px; font-weight: 600; color: var(--app-gray); text-transform: uppercase; letter-spacing: .5px; padding: 12px 14px; border-bottom: 1px solid var(--app-border); white-space: nowrap; }
.app-table td { padding: 14px; border-bottom: 1px solid #F4F4F4; vertical-align: middle; }
.app-table tr:last-child td { border-bottom: 0; }
.app-table tbody tr:hover td { background: #FBFAFF; }
.app-table .thumb { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.app-table .thumb-round { border-radius: 50%; }
.table-actions { display: flex; gap: 8px; justify-content: flex-end; }
.btn-icon { width: 38px; height: 38px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--app-border); background: #fff; color: var(--app-dark); }
.btn-icon:hover { background: var(--app-soft); color: var(--app-primary); border-color: var(--app-soft); }
.btn-icon.danger:hover { background: #FFE8E8; color: var(--app-danger); border-color: #FFE8E8; }
.btn-icon svg { width: 16px; height: 16px; }
.btn-icon svg path { fill: currentColor; }

.bg-orange-red { background-color: #FF5353 !important; }
.text-orange-red { color: #FF5353 !important; }

.form-hint { font-size: 13px; color: var(--app-gray); padding-left: 15px; margin-top: 6px; }
.image-preview { width: 96px; height: 96px; border-radius: 20px; object-fit: cover; border: 1px solid var(--app-border); }
.image-preview.round { border-radius: 50%; }
.gallery-thumb { position: relative; }
.gallery-thumb img { width: 130px; height: 90px; object-fit: cover; border-radius: 14px; }
.gallery-thumb button { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--app-danger); color: #fff; font-size: 14px; line-height: 1; }

.progress-thin { height: 8px; border-radius: 50rem; background: #ECECEC; }
.progress-thin .progress-bar { border-radius: 50rem; background: var(--app-primary); }

.chart-bars { display: flex; align-items: flex-end; gap: 8px; height: 180px; padding-top: 10px; }
.chart-bars .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart-bars .bar { width: 100%; max-width: 26px; border-radius: 8px 8px 4px 4px; background: var(--app-primary); min-height: 3px; position: relative; }
.chart-bars .bar.alt { background: var(--app-accent); }
.chart-bars .bar-label { font-size: 11px; color: var(--app-gray); }
.chart-legend span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--app-gray); margin-right: 18px; }
.chart-legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }

.auth-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-switch input { display: none; }
.auth-switch label { border: 2px solid var(--app-border); border-radius: 20px; padding: 18px; cursor: pointer; transition: all .15s; height: 100%; }
.auth-switch label strong { display: block; color: var(--app-dark); font-size: 16px; }
.auth-switch label span { font-size: 13px; color: var(--app-gray); }
.auth-switch input:checked + label { border-color: var(--app-primary); background: var(--app-soft); }

.badge.bg-mikado-yellow { background-color: #FFBE17 !important; }
.badge.bg-picton-blue { background-color: #3BB2F4 !important; }
.badge.bg-medium-orchid { background-color: #BF58D9 !important; }
.badge.bg-ufo-green { background-color: #3DCD65 !important; }
.badge.bg-platinum { background-color: #E6E6E6 !important; }
.py-6 { padding-top: 6px !important; padding-bottom: 6px !important; }
.px-12 { padding-left: 12px !important; padding-right: 12px !important; }

@media (max-width: 767.98px) {
    .app-table-responsive thead { display: none; }
    .app-table-responsive tr { display: block; border-bottom: 1px solid var(--app-border); padding: 10px 0; }
    .app-table-responsive td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 6px 4px; }
    .app-table-responsive td::before { content: attr(data-label); font-weight: 600; color: var(--app-gray); font-size: 13px; }
    .app-table-responsive td.no-label::before { content: none; }
}

/* --- Eksik yardımcı sınıflar ---------------------------------------------- */
.d-contents { display: contents; }
.fs-13 { font-size: 13px !important; }
.fs-15 { font-size: 15px !important; }
.fs-18 { font-size: 18px !important; }
.border-platinum { border-color: #E6E6E6 !important; }
.px-50 { padding-left: 50px !important; padding-right: 50px !important; }
@media (min-width: 768px) { .mt-md-30 { margin-top: 30px !important; } }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; color: var(--app-dark); }
.check-list li svg, .check-list li img { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; color: var(--app-primary); }
.check-list li svg path { fill: currentColor; }

/* Dekoratif tema şekillerinin (ör. how-it-work-figure) yatay kaydırma açmasını engelle */
html, body { overflow-x: hidden; }
@supports (overflow: clip) {
    html, body { overflow-x: clip; }
}

/* --- Demo modu ------------------------------------------------------------- */
.demo-bar { background: #FFF4E5; color: #8A4B00; font-size: 14px; padding: 10px 0; text-align: center; border-bottom: 1px solid #FFE0B2; }
.demo-bar strong { background: #FE8D4D; color: #fff; border-radius: 50rem; padding: 2px 12px; font-size: 13px; }
.demo-accounts { border: 2px dashed #E6E6E6; border-radius: 20px; padding: 20px; }
.demo-account-btn { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; width: 100%; text-align: left; background: #F8F9FD; border: 1px solid #F0EEFF; border-radius: 14px; padding: 12px 16px; font-size: 14px; transition: all .15s; }
.demo-account-btn:hover { background: #F0EEFF; border-color: #5F4BDB; }
