/* =============================================
   USTA PANELİ STİLLERİ
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --usta-primary: #1E40AF;
    --usta-primary-light: #3B82F6;
    --usta-bg: #F8FAFC;
    --usta-card-bg: #FFFFFF;
    --usta-text: #334155;
    --usta-text-muted: #64748B;
    --usta-border: #E2E8F0;
    --font-family: 'Inter', -apple-system, sans-serif;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    --shadow-hover: 0 10px 15px -3px rgba(0,0,0,0.08);
    --transition: 200ms ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 15px; }

body.usta-body {
    font-family: var(--font-family);
    background: var(--usta-bg);
    color: var(--usta-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--usta-primary); text-decoration: none; }

/* ---- Navigation ---- */
.usta-nav {
    background: var(--usta-card-bg);
    border-bottom: 1px solid var(--usta-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.usta-nav-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.usta-brand {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--usta-primary);
}

.usta-menu {
    display: flex;
    gap: 20px;
}

.usta-menu-link {
    color: var(--usta-text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 6px 0;
    position: relative;
    transition: color var(--transition);
}

.usta-menu-link:hover { color: var(--usta-primary); }

.usta-menu-link.active {
    color: var(--usta-primary);
}

.usta-menu-link.active::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--usta-primary);
    border-radius: 3px 3px 0 0;
}

.usta-profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--usta-text);
    padding: 6px 12px;
    border-radius: 20px;
    background: var(--usta-bg);
    transition: background var(--transition);
}

.usta-profile-btn:hover { background: #E2E8F0; }

/* ---- Layout ---- */
.usta-main {
    flex: 1;
    padding: 32px 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
}

/* ---- Cards ---- */
.card {
    background: var(--usta-card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--usta-border);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--usta-border);
    background: #FAFAFA;
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-body { padding: 24px; }

/* ---- Progress Bar ---- */
.progress-wrapper {
    margin-bottom: 24px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

.progress-bar {
    height: 10px;
    background: var(--usta-border);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--usta-primary), var(--usta-primary-light));
    transition: width 0.5s ease;
}

/* ---- Forms ---- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group { margin-bottom: 20px; }

.form-group.full { grid-column: 1 / -1; }

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 10px 14px;
    font-family: var(--font-family);
    font-size: 0.95rem;
    border: 1px solid var(--usta-border);
    border-radius: 8px;
    outline: none;
    transition: border-color var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--usta-primary);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.form-textarea { min-height: 100px; resize: vertical; }

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary { background: var(--usta-primary); color: white; }
.btn-primary:hover { background: var(--usta-primary-light); transform: translateY(-1px); }

.btn-success { background: #059669; color: white; }
.btn-success:hover { background: #047857; }

.btn-outline { background: transparent; border: 1.5px solid var(--usta-border); color: var(--usta-text); }
.btn-outline:hover { background: var(--usta-bg); }

/* ---- Photo Upload ---- */
.photo-upload-area {
    border: 2px dashed var(--usta-border);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    background: #FAFAFA;
    cursor: pointer;
    transition: all var(--transition);
    margin-bottom: 20px;
}

.photo-upload-area:hover, .photo-upload-area.dragover {
    border-color: var(--usta-primary);
    background: #EFF6FF;
}

.photo-upload-icon { font-size: 2.5rem; margin-bottom: 12px; color: var(--usta-primary-light); }
.photo-upload-text { font-size: 1rem; font-weight: 500; margin-bottom: 4px; }
.photo-upload-hint { font-size: 0.8rem; color: var(--usta-text-muted); }

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.photo-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--usta-border);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-delete {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    background: rgba(220,38,38,0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: background var(--transition);
}

.photo-delete:hover { background: #B91C1C; }

/* ---- Job Cards (Havuz) ---- */
.job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.job-card {
    background: var(--usta-card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--usta-border);
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.job-card-header {
    padding: 16px;
    border-bottom: 1px solid var(--usta-border);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.job-category { font-weight: 600; color: var(--usta-primary); font-size: 1rem; margin-bottom: 4px; }
.job-district { font-size: 0.85rem; color: var(--usta-text-muted); display: flex; align-items: center; gap: 4px; }
.job-time { font-size: 0.75rem; color: var(--usta-text-muted); background: var(--usta-bg); padding: 4px 8px; border-radius: 4px; }

.job-card-body {
    padding: 16px;
    flex: 1;
}

.job-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--usta-text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-card-footer {
    padding: 16px;
    border-top: 1px solid var(--usta-border);
    background: #FAFAFA;
}

/* ---- Lock Overlay ---- */
.lock-overlay {
    background: var(--usta-card-bg);
    border: 1px solid var(--usta-border);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    box-shadow: var(--shadow);
}

.lock-icon { font-size: 3rem; margin-bottom: 16px; }
.lock-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 12px; }
.lock-text { color: var(--usta-text-muted); max-width: 500px; margin: 0 auto 24px; line-height: 1.6; }

/* ---- Login/Register ---- */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: var(--usta-card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    padding: 40px;
    width: 100%;
    max-width: 500px;
    border: 1px solid var(--usta-border);
}

/* ---- Alerts ---- */
.alert { padding: 12px 16px; border-radius: 8px; font-size: 0.9rem; margin-bottom: 20px; }
.alert-error { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.alert-warning { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.alert-success { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-info { background: #DBEAFE; color: #1E40AF; border: 1px solid #BFDBFE; }

@media (max-width: 768px) {
    .form-grid { grid-template-columns: 1fr; gap: 0; }
    .usta-menu { display: none; } /* Mobil menü yapılabilir */
    .auth-card { padding: 30px 20px; }
    .job-grid { grid-template-columns: 1fr; }
}
