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

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

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;
    --bg-timeline: #1e1e2a;
    --border: #2a2a3a;
    --border-hover: #3a3a5a;
    --text-primary: #e8e8f0;
    --text-secondary: #9898b0;
    --text-muted: #6a6a80;
    --accent: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.3);
    --accent-subtle: rgba(99, 102, 241, 0.1);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --gradient-1: linear-gradient(135deg, #6366f1, #8b5cf6);
    --gradient-2: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ===== Background Effects ===== */
.bg-effects {
    position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.bg-orb {
    position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.07;
    animation: orbFloat 20s ease-in-out infinite;
}
.bg-orb:nth-child(1) { width: 600px; height: 600px; background: #6366f1; top: -200px; right: -100px; }
.bg-orb:nth-child(2) { width: 500px; height: 500px; background: #a855f7; bottom: -150px; left: -100px; animation-delay: -7s; }
.bg-orb:nth-child(3) { width: 400px; height: 400px; background: #ec4899; top: 50%; left: 50%; transform: translate(-50%, -50%); animation-delay: -14s; }

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ===== Header ===== */
.header {
    position: relative; z-index: 10;
    background: rgba(18, 18, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
}
.header-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}
.logo {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; color: var(--text-primary);
}
.logo-icon {
    width: 40px; height: 40px; border-radius: var(--radius-sm);
    background: var(--gradient-1);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 800; color: #fff;
    box-shadow: var(--shadow-glow);
}
.logo-text { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; }
.logo-text span { background: var(--gradient-2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.header-badge {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 100px;
    background: var(--accent-subtle);
    border: 1px solid rgba(99,102,241,0.2);
    font-size: 0.8rem; font-weight: 500; color: var(--accent);
}
.header-badge .pulse {
    width: 8px; height: 8px; border-radius: 50%; background: var(--success);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}

/* ===== Hero ===== */
.hero {
    position: relative; z-index: 1;
    text-align: center; padding: 4rem 2rem 3rem;
}
.hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800; letter-spacing: -0.03em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #c4b5fd 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: 1.05rem; color: var(--text-secondary);
    max-width: 600px; margin: 0 auto;
}

/* ===== Main Content ===== */
.container {
    position: relative; z-index: 1;
    max-width: 900px; margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

/* ===== Announcement Card ===== */
.announcement {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 2rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.announcement:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.announcement-header {
    padding: 1.75rem 2rem;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
    flex-wrap: wrap;
}
.announcement-title-group { flex: 1; min-width: 200px; }
.announcement-title {
    font-size: 1.25rem; font-weight: 700;
    margin-bottom: 0.5rem; letter-spacing: -0.01em;
}
.announcement-date {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.85rem; color: var(--text-muted);
}
.announcement-date svg { width: 14px; height: 14px; }

.status-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 100px;
    font-size: 0.78rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.04em;
    white-space: nowrap;
}
.status-beklemede { background: rgba(245,158,11,0.12); color: #f59e0b; border: 1px solid rgba(245,158,11,0.2); }
.status-devam_ediyor { background: rgba(59,130,246,0.12); color: #3b82f6; border: 1px solid rgba(59,130,246,0.2); }
.status-tamamlandi { background: rgba(16,185,129,0.12); color: #10b981; border: 1px solid rgba(16,185,129,0.2); }
.status-iptal_edildi { background: rgba(239,68,68,0.12); color: #ef4444; border: 1px solid rgba(239,68,68,0.2); }

.announcement-body { padding: 1.75rem 2rem; }
.announcement-desc {
    font-size: 0.95rem; color: var(--text-secondary);
    line-height: 1.7; margin-bottom: 1.75rem;
}

/* ===== Timeline ===== */
.timeline-title {
    font-size: 0.8rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--text-muted); margin-bottom: 1rem;
}
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
    content: ''; position: absolute;
    left: 8px; top: 8px; bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--border));
    border-radius: 2px;
}
.timeline-item {
    position: relative; margin-bottom: 1.25rem;
    padding: 1rem 1.25rem;
    background: var(--bg-timeline);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.25s ease;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateX(4px);
}
.timeline-item::before {
    content: '';
    position: absolute; left: -24px; top: 50%;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--accent);
    transform: translateY(-50%);
    z-index: 1;
}
.timeline-time {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.82rem; font-weight: 600;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    margin-bottom: 4px;
}
.timeline-time svg { width: 13px; height: 13px; opacity: 0.7; }
.timeline-desc {
    font-size: 0.9rem; color: var(--text-secondary);
}

/* ===== Note ===== */
.announcement-note {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: rgba(245,158,11,0.06);
    border: 1px solid rgba(245,158,11,0.15);
    border-radius: var(--radius-md);
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 0.85rem; color: var(--warning);
    line-height: 1.6;
}
.announcement-note svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; }

/* ===== Migration Tracker ===== */
.migration-tracker {
    margin-bottom: 1.75rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(22,22,31,0.9) 0%, rgba(30,30,42,0.9) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}
.migration-tracker::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 120%, rgba(99,102,241,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.tracker-label {
    font-size: 0.75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--text-muted); margin-bottom: 1.25rem;
    text-align: center;
}
.tracker-scene {
    position: relative;
    display: flex; align-items: flex-end; justify-content: space-between;
    height: 160px; padding: 0 10px;
}

/* DC Buildings */
.tracker-dc {
    display: flex; flex-direction: column; align-items: center;
    z-index: 2; position: relative; width: 120px;
}
.tracker-dc-img {
    width: 100px; height: 100px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 2px solid var(--border);
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}
.tracker-dc:hover .tracker-dc-img {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}
.tracker-dc-name {
    font-size: 0.82rem; font-weight: 700;
    margin-top: 8px; text-align: center;
    color: var(--text-primary);
}
.tracker-dc-city {
    font-size: 0.7rem; color: var(--text-muted);
    margin-top: 2px;
}
.tracker-dc.source .tracker-dc-img {
    border-color: rgba(239,68,68,0.4);
}
.tracker-dc.dest .tracker-dc-img {
    border-color: rgba(16,185,129,0.4);
}
.tracker-dc.source .tracker-dc-name { color: #f87171; }
.tracker-dc.dest .tracker-dc-name { color: #34d399; }

/* Road */
.tracker-road {
    position: absolute;
    left: 120px; right: 120px;
    bottom: 62px; height: 28px;
    z-index: 1;
}
.tracker-road-bg {
    position: absolute; inset: 0;
    background: #1a1a28;
    border-radius: 14px;
    border: 1px solid var(--border);
}
.tracker-road-dashes {
    position: absolute;
    top: 50%; left: 16px; right: 16px;
    height: 2px;
    transform: translateY(-50%);
    background: repeating-linear-gradient(
        90deg,
        var(--text-muted) 0px,
        var(--text-muted) 12px,
        transparent 12px,
        transparent 24px
    );
    opacity: 0.4;
}
.tracker-road-progress {
    position: absolute;
    top: 50%; left: 16px;
    height: 3px; width: 0%;
    transform: translateY(-50%);
    background: var(--gradient-1);
    border-radius: 2px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px var(--accent-glow);
}

/* Truck */
.tracker-truck {
    position: absolute;
    bottom: 50px;
    left: 110px;
    width: 56px; height: 56px;
    z-index: 3;
    transition: left 2s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}
.tracker-truck img {
    width: 100%; height: 100%;
    object-fit: contain;
}
.tracker-truck.animate {
    animation: truckBounce 0.8s ease-in-out infinite;
}
@keyframes truckBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
.tracker-truck .truck-glow {
    position: absolute;
    bottom: -6px; left: 10%; right: 10%;
    height: 8px;
    background: radial-gradient(ellipse, rgba(99,102,241,0.4), transparent);
    border-radius: 50%;
    filter: blur(4px);
}

/* Phase indicator */
.tracker-phase {
    text-align: center; margin-top: 1rem;
    padding: 8px 16px;
    background: rgba(99,102,241,0.08);
    border: 1px solid rgba(99,102,241,0.15);
    border-radius: 100px;
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.8rem; font-weight: 500;
    color: var(--accent);
    margin-left: auto; margin-right: auto;
}
.tracker-phase-wrapper { text-align: center; }
.tracker-phase .phase-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    animation: pulse 1.5s ease-in-out infinite;
}

/* Step icons */
.timeline-item[data-faz] .timeline-desc::before {
    margin-right: 6px;
    font-size: 1rem;
}
.timeline-item[data-faz="kapatma"] { border-left: 3px solid #ef4444; }
.timeline-item[data-faz="yukleme"] { border-left: 3px solid #f59e0b; }
.timeline-item[data-faz="kurulum"] { border-left: 3px solid #3b82f6; }
.timeline-item[data-faz="baslatma"] { border-left: 3px solid #10b981; }

.timeline-item .step-icon {
    font-size: 1.1rem;
    margin-right: 4px;
}

/* Active step highlight */
.timeline-item.active-step {
    border-color: var(--accent) !important;
    background: rgba(99,102,241,0.08);
    box-shadow: 0 0 16px rgba(99,102,241,0.1);
}
.timeline-item.completed-step {
    opacity: 0.6;
}
.timeline-item.completed-step::before {
    background: var(--success) !important;
    border-color: var(--success) !important;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center; padding: 5rem 2rem;
}
.empty-icon {
    width: 80px; height: 80px; margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--accent-subtle);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
}
.empty-state h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.empty-state p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== Footer ===== */
.footer {
    position: relative; z-index: 1;
    text-align: center; padding: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted); font-size: 0.8rem;
}
.footer a { color: var(--accent); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ===== Admin Styles ===== */
.admin-bar {
    position: relative; z-index: 10;
    background: rgba(99,102,241,0.08);
    border-bottom: 1px solid rgba(99,102,241,0.15);
    padding: 10px 2rem;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 0.82rem;
}
.admin-bar-left { display: flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 500; }
.admin-bar a {
    color: var(--text-muted); text-decoration: none;
    padding: 4px 12px; border-radius: 6px;
    transition: all 0.2s;
}
.admin-bar a:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }

.admin-container {
    position: relative; z-index: 1;
    max-width: 800px; margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}
.admin-page-title {
    font-size: 1.5rem; font-weight: 700; margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block; font-size: 0.82rem; font-weight: 600;
    color: var(--text-secondary); margin-bottom: 6px;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit; font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}
.form-textarea { min-height: 100px; resize: vertical; }
.form-select { cursor: pointer; }
.form-select option { background: var(--bg-secondary); }

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

.step-group {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: grid; grid-template-columns: 100px 100px 1fr auto auto; gap: 0.75rem;
    align-items: center;
}
.step-group input { padding: 8px 10px; font-size: 0.85rem; }

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: var(--radius-sm);
    font-family: inherit; font-size: 0.85rem; font-weight: 600;
    cursor: pointer; border: none; transition: all 0.2s;
    text-decoration: none;
}
.btn-primary { background: var(--gradient-1); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md), var(--shadow-glow); }
.btn-secondary { background: var(--bg-secondary); color: var(--text-secondary); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--border-hover); color: var(--text-primary); }
.btn-danger { background: rgba(239,68,68,0.12); color: #ef4444; border: 1px solid rgba(239,68,68,0.2); }
.btn-danger:hover { background: rgba(239,68,68,0.2); }
.btn-sm { padding: 6px 12px; font-size: 0.78rem; }
.btn-icon {
    width: 34px; height: 34px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-muted); cursor: pointer;
    transition: all 0.2s;
}
.btn-icon:hover { border-color: var(--danger); color: var(--danger); }

.actions-row {
    display: flex; gap: 0.75rem; margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* Login */
.login-wrapper {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 2rem;
}
.login-card {
    width: 100%; max-width: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
}
.login-card h2 { font-size: 1.3rem; margin-bottom: 0.5rem; text-align: center; }
.login-card p { color: var(--text-muted); font-size: 0.85rem; text-align: center; margin-bottom: 1.5rem; }
.login-card .btn { width: 100%; justify-content: center; margin-top: 0.5rem; }

.alert {
    padding: 10px 14px; border-radius: var(--radius-sm);
    font-size: 0.85rem; margin-bottom: 1rem;
}
.alert-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2); color: #ef4444; }
.alert-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.2); color: #10b981; }

/* Admin list */
.admin-list-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    transition: all 0.2s;
    gap: 1rem;
}
.admin-list-item:hover { border-color: var(--border-hover); }
.admin-list-info { flex: 1; min-width: 0; }
.admin-list-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; }
.admin-list-meta { font-size: 0.8rem; color: var(--text-muted); }
.admin-list-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .header-inner { height: 60px; }
    .header-badge { display: none; }
    .hero { padding: 3rem 1.5rem 2rem; }
    .announcement-header { flex-direction: column; }
    .announcement-body { padding: 1.25rem; }
    .step-group { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .admin-list-item { flex-direction: column; align-items: flex-start; }
    .tracker-scene { height: 130px; }
    .tracker-dc { width: 80px; }
    .tracker-dc-img { width: 70px; height: 70px; }
    .tracker-dc-name { font-size: 0.72rem; }
    .tracker-road { left: 80px; right: 80px; bottom: 48px; }
    .tracker-truck { width: 40px; height: 40px; bottom: 38px; left: 72px; }
}

