/* ProjeMühendisi - Mühendislik Hizmetleri Platformu v2 */
:root {
    --primary: #0f4c81;
    --primary-dark: #0a355c;
    --primary-light: #1a6bb5;
    --accent: #e8a317;
    --accent-hover: #d4920f;
    --bg: #f5f7fa;
    --surface: #ffffff;
    --text: #1a2332;
    --text-muted: #5a6a7a;
    --border: #e1e8ef;
    --success: #0d9488;
    --warning: #d97706;
    --danger: #dc2626;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(15, 76, 129, 0.08);
    --shadow-lg: 0 12px 40px rgba(15, 76, 129, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
}

a { text-decoration: none; color: inherit; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
}

.logo-icon { font-size: 1.5rem; }

.nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active { color: var(--primary); }

.nav-link.btn-primary {
    background: var(--primary);
    color: white !important;
    padding: 10px 18px;
    border-radius: 8px;
}

.nav-link.btn-primary:hover { background: var(--primary-dark); }

.nav-link.btn-outline-nav {
    border: 1.5px solid var(--border);
    padding: 8px 16px;
    border-radius: 8px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}
.btn-secondary:hover { background: var(--primary); color: white; }
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(15, 76, 129, 0.05);
}
.btn-accent { background: var(--accent); color: #1a2332; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-success { background: var(--success); color: white; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Hero */
.hero {
    background: linear-gradient(135deg, #0f4c81 0%, #1a6bb5 100%);
    color: white;
    padding: 80px 0 100px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 20px;
}

.hero .highlight { color: var(--accent); }

.hero-desc {
    font-size: 1.1rem;
    opacity: 0.92;
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-actions .btn-primary {
    background: var(--accent);
    color: #1a2332;
}
.hero-actions .btn-primary:hover { background: var(--accent-hover); }
.hero-actions .btn-outline {
    border-color: rgba(255,255,255,0.4);
    color: white;
}
.hero-actions .btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

.hero-stats { display: flex; gap: 40px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 1.5rem; font-weight: 700; }
.stat-label { font-size: 0.85rem; opacity: 0.8; }

.process-card {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid rgba(255,255,255,0.2);
}

.process-step {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
}

.process-step.active {
    background: rgba(232, 163, 23, 0.2);
    margin: 0 -12px;
    padding: 12px;
    border-radius: 8px;
}

.step-num {
    width: 36px;
    height: 36px;
    background: white;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.process-step.active .step-num {
    background: var(--accent);
    color: #1a2332;
}

.process-step strong { display: block; font-size: 1rem; }
.process-step p { font-size: 0.85rem; opacity: 0.85; }
.process-arrow { text-align: center; opacity: 0.5; font-size: 1.2rem; line-height: 1; }

/* Sections */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Services */
.services-preview { padding: 80px 0; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-card.featured {
    border-color: var(--primary);
    background: linear-gradient(to bottom, #f0f7ff, white);
}

.service-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.service-icon { font-size: 2.2rem; margin-bottom: 16px; }
.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}
.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
    flex-grow: 1;
}
.service-card ul { list-style: none; margin-bottom: 20px; }
.service-card ul li {
    font-size: 0.9rem;
    padding: 4px 0;
    color: var(--text);
    position: relative;
    padding-left: 18px;
}
.service-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

/* How it works */
.how-it-works {
    padding: 80px 0;
    background: var(--surface);
}

.steps-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.step-item { text-align: center; }

.step-circle {
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 auto 16px;
}

.step-item h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step-item p { font-size: 0.9rem; color: var(--text-muted); }
.cta-center { text-align: center; }

/* Footer */
.footer {
    background: #0a2a45;
    color: white;
    padding-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand p {
    margin-top: 12px;
    opacity: 0.75;
    font-size: 0.95rem;
    max-width: 280px;
}

.footer-links h4 { margin-bottom: 16px; font-size: 1rem; }
.footer-links a {
    display: block;
    opacity: 0.75;
    margin-bottom: 10px;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}
.footer-links a:hover { opacity: 1; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* Page header */
.page-header {
    background: var(--primary);
    color: white;
    padding: 48px 0;
    text-align: center;
}
.page-header h1 { font-size: 2rem; margin-bottom: 8px; }
.page-header p { opacity: 0.9; }

/* Form */
.form-section { padding: 48px 0 80px; }

.form-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-width: 760px;
    margin: 0 auto;
    padding: 40px;
    border: 1px solid var(--border);
}

.form-group { margin-bottom: 24px; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}
.form-group label .required { color: var(--danger); }

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
    background: white;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.15);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a6a7a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

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

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

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.checkbox-item input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.form-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.form-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

/* Multi-step form */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 36px;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
    flex: 1;
}

.step-dot .dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.25s;
}

.step-dot.active .dot,
.step-dot.completed .dot {
    background: var(--primary);
    color: white;
}

.step-dot.completed .dot {
    background: var(--success);
}

.step-dot span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.step-dot.active span { color: var(--primary); font-weight: 600; }

.form-step { display: none; }
.form-step.active { display: block; }

/* Success */
.success-message {
    display: none;
    text-align: center;
    padding: 40px 20px;
}
.success-message.show { display: block; }
.success-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 16px;
}

/* Dashboard / Panel */
.panel-section { padding: 40px 0 80px; }

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.panel-header h2 { font-size: 1.5rem; color: var(--primary-dark); }

.tabs {
    display: flex;
    gap: 4px;
    background: var(--border);
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 28px;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--text-muted);
    font-family: inherit;
    transition: all 0.2s;
}

.tab-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Cards for offers / requests */
.offer-card, .request-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s;
}

.offer-card:hover, .request-card:hover {
    box-shadow: var(--shadow-lg);
}

.offer-card-header, .request-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 16px;
    flex-wrap: wrap;
}

.offer-card h3, .request-card h3 {
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-pending { background: #fef3c7; color: #92400e; }
.badge-active { background: #dbeafe; color: #1e40af; }
.badge-accepted { background: #d1fae5; color: #065f46; }
.badge-rejected { background: #fee2e2; color: #991b1b; }
.badge-completed { background: #e0e7ff; color: #3730a3; }

.offer-meta, .request-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.offer-meta strong, .request-meta strong { color: var(--text); }

.offer-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.offer-actions, .request-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state .icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Expert profile card */
.expert-info {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 12px;
}

.expert-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.expert-rating {
    color: var(--accent);
    font-size: 0.9rem;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-overlay.show { display: flex; }

.modal {
    background: white;
    border-radius: var(--radius);
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    box-shadow: var(--shadow-lg);
}

.modal h3 {
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: flex-end;
}

/* Status timeline */
.timeline {
    margin: 20px 0;
    padding-left: 24px;
    border-left: 2px solid var(--border);
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -31px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
}

.timeline-item.done::before { background: var(--success); }
.timeline-item.current::before { background: var(--primary); box-shadow: 0 0 0 4px rgba(15,76,129,0.2); }

.timeline-item strong { display: block; font-size: 0.95rem; }
.timeline-item span { font-size: 0.85rem; color: var(--text-muted); }

/* Alert */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-content { grid-template-columns: 1fr; }
    .hero-visual { order: -1; }
    .steps-row { grid-template-columns: 1fr 1fr; }
    .footer-content { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
    .nav { display: none; }
    .nav.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        right: 16px;
        background: white;
        padding: 16px;
        box-shadow: var(--shadow-lg);
        border-radius: 8px;
        gap: 12px;
        min-width: 200px;
    }
    .mobile-menu-btn { display: block; }
    .hero h1 { font-size: 1.75rem; }
    .form-row { grid-template-columns: 1fr; }
    .steps-row { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 16px; }
    .step-indicator { flex-wrap: wrap; gap: 8px; }
    .step-indicator::before { display: none; }
}


/* Toast */
.toast {
    position: fixed; bottom: 24px; right: 24px; background: #1a2332; color: white;
    padding: 14px 22px; border-radius: 10px; font-size: 0.95rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25); z-index: 999; opacity: 0;
    transform: translateY(20px); transition: all 0.3s; max-width: 360px; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: var(--success); }
.toast.info { background: var(--primary); }

.api-badge { font-size: 0.7rem; font-weight: 600; padding: 3px 8px; border-radius: 10px; margin-left: 8px; }
.api-badge.on { background: #d1fae5; color: #065f46; }
.api-badge.off { background: #fef3c7; color: #92400e; }

.bildirim-wrap { position: relative; }
.bildirim-btn { background: none; border: none; cursor: pointer; font-size: 1.2rem; position: relative; padding: 4px 8px; }
.bildirim-badge {
    position: absolute; top: 0; right: 0; background: var(--danger); color: white;
    font-size: 0.65rem; font-weight: 700; min-width: 16px; height: 16px; border-radius: 50%;
    display: none; align-items: center; justify-content: center;
}
.bildirim-panel {
    display: none; position: absolute; top: 40px; right: 0; width: 320px; max-height: 360px;
    overflow-y: auto; background: white; border-radius: 12px; box-shadow: var(--shadow-lg);
    border: 1px solid var(--border); z-index: 150; padding: 8px 0;
}
.bildirim-panel.open { display: block; }
.bildirim-item { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.bildirim-item.unread { background: #f0f7ff; }
.bildirim-msg { color: var(--text); }
.bildirim-time { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }
.empty-hint { padding: 20px; text-align: center; color: var(--text-muted); font-size: 0.9rem; }

.dosya-list { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.dosya-chip {
    background: #f1f5f9; border: 1px solid var(--border); border-radius: 6px;
    padding: 4px 10px; font-size: 0.8rem; color: var(--text-muted);
}
