/* Ortak temel stiller — tüm sayfalarda senkron yüklenir */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #08090c;
    --surface: #111116;
    --surface-2: #18181f;
    --border: rgba(212, 168, 83, 0.14);
    --text: #f5f0e8;
    --text-muted: #9a9588;
    --primary: #d4a853;
    --primary-hover: #c49a43;
    --primary-soft: rgba(212, 168, 83, 0.1);
    --primary-glow: rgba(212, 168, 83, 0.22);
    --accent-light: #e8c97a;
    --accent-deep: #a67c2e;
    --success: #4ade80;
    --error: #f87171;
    --radius: 14px;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
    font-size: 16px;
    overflow-x: clip;
    background-color: #08090c !important;
}

body {
    font-family: var(--font);
    background-color: #08090c !important;
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: clip;
}

.app-layout,
.app-main {
    max-width: 100%;
    overflow-x: clip;
}

img {
    max-width: 100%;
    height: auto;
}

.alert {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.8rem 1.25rem;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-decoration: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--primary) 55%, var(--accent-deep) 100%);
    color: #1a1408;
    box-shadow:
        0 4px 18px rgba(212, 168, 83, 0.32),
        0 0 24px rgba(234, 179, 8, 0.14),
        0 2px 8px rgba(0, 0, 0, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f0d48a 0%, var(--primary-hover) 100%);
    box-shadow:
        0 6px 26px rgba(212, 168, 83, 0.42),
        0 0 36px rgba(234, 179, 8, 0.22),
        0 2px 10px rgba(0, 0, 0, 0.4);
}

.page-actions .btn-primary,
.browse-create-bar .btn-primary {
    box-shadow:
        0 6px 22px rgba(212, 168, 83, 0.38),
        0 0 32px rgba(234, 179, 8, 0.2),
        0 0 52px rgba(212, 168, 83, 0.1),
        0 2px 10px rgba(0, 0, 0, 0.45);
}

.page-actions .btn-primary:hover,
.browse-create-bar .btn-primary:hover {
    box-shadow:
        0 8px 28px rgba(212, 168, 83, 0.48),
        0 0 40px rgba(234, 179, 8, 0.28),
        0 0 60px rgba(212, 168, 83, 0.14),
        0 2px 12px rgba(0, 0, 0, 0.5);
}

.btn-secondary {
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: #2d3142;
}

.btn-google {
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-google:hover {
    background: #2d3142;
}

/* İlan kimlik kartları — ana sayfa + panel */

.job-list,
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.85rem;
}

.job-id-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 11.5rem;
    padding: 0.85rem 0.9rem 0.75rem;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    overflow: hidden;
    isolation: isolate;
}

.job-id-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    pointer-events: none;
}

.job-id-card:hover {
    border-color: rgba(255, 255, 255, 0.09);
    transform: translateY(-2px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

.job-id-card-static {
    cursor: default;
}

.job-id-card-static:hover {
    transform: none;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.05);
}

.job-id-badge {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 1;
}

.job-id-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-right: 3.75rem;
}

.job-id-avatar-ring {
    flex-shrink: 0;
    padding: 2px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
}

.job-id-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface-2);
    border: 2px solid var(--surface);
}

.job-id-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.job-id-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.1rem;
}

.job-id-identity {
    min-width: 0;
    flex: 1;
}

.job-id-card .job-id-label {
    display: block;
    font-size: 0.58rem;
    margin-bottom: 0.1rem;
}

.job-id-label {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.8;
    margin-bottom: 0.15rem;
}

.job-id-venue {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.job-id-city {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.2rem;
    font-size: 0.78rem;
    color: var(--accent-light);
}

.job-id-city svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    opacity: 0.85;
}

.job-id-listing {
    margin-top: 0.55rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.job-id-listing-label {
    display: block;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.75;
    margin-bottom: 0.2rem;
}

.job-id-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-id-excerpt {
    margin: 0.45rem 0 0;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.45;
    opacity: 0.85;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Çalışma düzeni — form seçici */
.form-section-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.6rem;
}

/* —— İlan formu: çalışma düzeni seçici (Apple Pro dark) —— */
.job-type-picker {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
}

.job-type-option {
    display: block;
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 8.5rem;
    max-width: 100%;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 640px) {
    .job-type-option {
        flex: 1 1 calc(33.333% - 0.35rem);
        max-width: calc(33.333% - 0.35rem);
    }
}

.job-type-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.job-type-option-body {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    padding: 0.85rem 0.65rem;
    min-height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}

.job-type-option-title {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.72);
    word-break: break-word;
    transition: color 0.25s ease;
}

.job-type-option:hover .job-type-option-body {
    border-color: rgba(234, 179, 8, 0.28);
    background: rgba(255, 255, 255, 0.04);
    box-shadow:
        0 0 0 1px rgba(234, 179, 8, 0.1),
        0 0 14px rgba(234, 179, 8, 0.08);
}

.job-type-option:hover .job-type-option-title {
    color: rgba(255, 255, 255, 0.88);
}

.job-type-option.is-selected .job-type-option-body,
.job-type-option input:checked + .job-type-option-body {
    border-color: rgba(234, 179, 8, 0.42);
    background: rgba(255, 255, 255, 0.06);
    box-shadow:
        0 0 0 1px rgba(234, 179, 8, 0.18),
        0 0 18px rgba(234, 179, 8, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.job-type-option.is-selected .job-type-option-title,
.job-type-option input:checked + .job-type-option-body .job-type-option-title {
    color: #fef08a;
}

.job-type-option:active .job-type-option-body {
    transform: scale(0.99);
}

/* Rozetler — transparan zemin, net tipografi */
.job-type-badge,
.job-schedule-date,
.job-schedule-time,
.job-schedule-weekend {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.015em;
    padding: 0.22rem 0.52rem;
    border-radius: 12px;
    white-space: normal;
    line-height: 1.3;
    word-break: break-word;
    background: transparent !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid transparent;
}

/* İlan tipi rozetleri — net kontrast */
.job-type-badge--single {
    border-color: rgba(74, 222, 128, 0.35);
    color: #6ee7a8;
}

.job-type-badge--regular {
    border-color: rgba(96, 165, 250, 0.35);
    color: #7ec8ff;
}

.job-type-badge--seasonal {
    border-color: rgba(234, 179, 8, 0.35);
    color: #fef3a8;
}

.job-type-badge--project {
    border-color: rgba(192, 132, 252, 0.35);
    color: #d8b4fe;
}

.job-type-badge--backup {
    border-color: rgba(148, 163, 184, 0.35);
    color: #b8c5d6;
}

.job-type-badge--voluntary {
    border-color: rgba(248, 113, 113, 0.35);
    color: #fca5a5;
}

/* Sahne tarihi / saat — esnek VIP rozetler */
.job-schedule-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.45rem;
    margin-top: 0.55rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.job-schedule-row--detail {
    margin-top: 0.85rem;
}

.job-schedule-date-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem 0.4rem;
    min-width: 0;
    max-width: 100%;
}

.job-schedule-date {
    font-size: 0.72rem;
    font-weight: 600;
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.88);
}

.job-schedule-date--flexible,
.job-schedule-time--flexible {
    font-size: 0.66rem;
    font-weight: 600;
    border-color: rgba(148, 163, 184, 0.28);
    color: #b0bcc9;
    white-space: normal;
    max-width: 100%;
}

.job-schedule-relative {
    font-size: 0.66rem;
    font-weight: 600;
    padding: 0.18rem 0.45rem;
    border-radius: 12px;
    background: transparent !important;
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: #b0bcc9;
    white-space: nowrap;
}

.job-schedule-weekend {
    font-size: 0.64rem;
    font-weight: 700;
    border-color: rgba(234, 179, 8, 0.3);
    color: #fef3a8;
    white-space: nowrap;
}

.job-schedule-time {
    font-size: 0.66rem;
    font-weight: 600;
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
}

.job-id-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

.job-id-price {
    margin-top: auto;
    padding-top: 0.7rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

.job-id-price-pill {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.12rem;
    padding: 0.45rem 1rem;
    min-width: 7.5rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
}

.job-id-price-label {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.job-id-price-value {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.9);
}

.job-id-tags span {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    color: var(--text-muted);
}

.job-id-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.job-id-card-footer .btn {
    width: auto;
    font-size: 0.8rem;
    padding: 0.45rem 0.85rem;
}

.job-id-subtitle {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.job-id-avatar-ring.musician-ring {
    background: linear-gradient(135deg, rgba(232, 201, 122, 0.55), rgba(166, 124, 46, 0.35));
}

.musician-listing-card .job-id-label {
    color: var(--accent-light);
}
