/* ============================================================================
   CEVKOZ GROUP KURUMSAL PORTAL — CSS
   Demo'dan taşınmış palet, server-rendered sayfalar için sadeleştirilmiş.
   ============================================================================ */

:root {
  --bg: #f4f4f5;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --surface-3: #f1f1f3;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --text: #18181b;
  --text-dim: #52525b;
  --text-muted: #a1a1aa;
  --black: #123d65;
  --black-2: #0d2c4a;
  --accent: #123d65;
  --accent-hover: #0d2c4a;
  --accent-soft: #eef3f8;
  --gold: #c9a227;
  --success: #16a34a;
  --warn: #d97706;
  --info: #475569;
  --danger: #c8102e;
  --danger-soft: #fef2f3;
  --radius: 6px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 32px; margin: 0 0 8px; }
h2 { font-size: 22px; margin: 0 0 8px; }
h3 { font-size: 17px; margin: 0 0 6px; }

/* ============ TOP BAR ============ */
.topbar {
  background: var(--black);
  background-image: linear-gradient(180deg, var(--black) 0%, var(--black-2) 100%);
  color: #fff;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 28px;
  box-shadow: 0 4px 12px rgba(18,61,101,0.18);
}
.topbar-brand { display: flex; align-items: center; padding-right: 24px; margin-right: 12px; height: 100%; border-right: 1px solid rgba(255,255,255,0.1); }
.topbar-logo { height: 30px; width: auto; display: block; }
.topbar-portal-label { font-size: 10px; font-weight: 700; letter-spacing: 0.16em; color: rgba(255,255,255,0.55); margin-left: 14px; padding-left: 14px; border-left: 1px solid rgba(255,255,255,0.15); line-height: 1.4; }
.topnav { display: flex; gap: 2px; flex: 1; margin-left: 12px; }
.topnav-item { color: rgba(255,255,255,0.65); padding: 8px 12px; font-size: 13px; font-weight: 600; border-radius: 4px; transition: all 0.15s; cursor: pointer; position: relative; }
.topnav-item:hover { color: #fff; background: rgba(255,255,255,0.08); text-decoration: none; }
.topnav-item.active { color: #fff; background: rgba(255,255,255,0.12); }
.topnav-item.active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -18px; height: 2px; background: #fff; }

.topbar-user { display: flex; align-items: center; gap: 12px; padding-left: 20px; border-left: 1px solid rgba(255,255,255,0.1); }
.topbar-avatar { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.15); display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.topbar-userinfo { line-height: 1.2; }
.topbar-username { font-size: 13px; font-weight: 700; }
.link-button { background: none; border: none; color: rgba(255,255,255,0.5); font-size: 11px; padding: 0; cursor: pointer; font-family: inherit; }
.link-button:hover { color: #fff; text-decoration: underline; }
.logout-form { display: inline; margin: 0; }

/* ============ CONTENT ============ */
.content { max-width: 1280px; margin: 0 auto; padding: 28px 32px; min-height: calc(100vh - 64px - 60px); }

.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 18px 32px; text-align: center; color: var(--text-muted); font-size: 12px; }

.page-head { margin-bottom: 24px; }
.page-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: var(--accent); text-transform: uppercase; margin-bottom: 6px; }
.page-title { font-size: 30px; margin: 0 0 6px; }
.page-sub { color: var(--text-dim); max-width: 720px; }

/* ============ ALERTS ============ */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 18px; font-size: 13px; border-left: 4px solid; }
.alert-success { background: #ecfdf5; color: var(--success); border-left-color: var(--success); }
.alert-error { background: var(--danger-soft); color: var(--danger); border-left-color: var(--danger); }
.alert-info { background: var(--accent-soft); color: var(--accent); border-left-color: var(--accent); }
.text-danger { color: var(--danger); }

/* ============ CARDS / SURFACES ============ */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }

/* ============ TABLE ============ */
.table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 13px; vertical-align: top; }
.table th { background: var(--surface-3); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: none; }

/* ============ PILLS / BADGES ============ */
.pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.pill-open { background: var(--surface-3); color: var(--text-dim); }
.pill-progress { background: #fff4e6; color: var(--warn); }
.pill-waiting { background: var(--accent-soft); color: var(--accent); }
.pill-done { background: #ecfdf5; color: var(--success); }
.pill-cancelled { background: var(--danger-soft); color: var(--danger); }
.pill-priority-low { background: var(--surface-3); color: var(--text-muted); }
.pill-priority-normal { background: var(--accent-soft); color: var(--accent); }
.pill-priority-high { background: var(--danger-soft); color: var(--danger); }
.pill-priority-urgent { background: var(--danger); color: #fff; }

/* ============ FORMS ============ */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field-full { grid-column: 1 / -1; }
.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.field-validation-error { color: var(--danger); font-size: 11px; display: block; margin-top: 4px; }

/* ============ BUTTONS ============ */
.btn { display: inline-block; padding: 9px 18px; border-radius: 4px; font-size: 13px; font-weight: 600; cursor: pointer; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); text-decoration: none; font-family: inherit; transition: all 0.12s; }
.btn:hover { background: var(--surface-3); text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-danger { color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-dark { background: var(--text); color: #fff; border-color: var(--text); }
.btn-dark:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-sm { padding: 5px 10px; font-size: 12px; }

/* ============ HOME ============ */
.home-hero {
  background: var(--black);
  background-image: linear-gradient(135deg, var(--black) 0%, var(--black-2) 100%);
  color: #fff;
  padding: 40px 32px;
  margin: -28px -32px 28px;
  position: relative;
  overflow: hidden;
}
.home-hero::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 6px; background: var(--gold); }
.home-hero-eyebrow { text-transform: uppercase; font-size: 11px; letter-spacing: 0.14em; color: var(--gold); font-weight: 700; margin-bottom: 12px; }
.home-hero-title { font-family: 'Playfair Display', serif; font-size: 38px; line-height: 1.1; font-weight: 600; margin: 0; }
.home-hero-title em { color: var(--gold); font-style: italic; }
.home-hero-sub { color: rgba(255,255,255,0.7); margin-top: 12px; max-width: 600px; font-size: 14px; }
.home-hero-stats { display: flex; gap: 36px; margin-top: 24px; }
.home-hero-stat-num { font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 600; line-height: 1; }
.home-hero-stat-num.red { color: var(--danger); }
.home-hero-stat-label { color: rgba(255,255,255,0.65); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-top: 4px; }

.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 28px; }
.quick-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--text); transition: all 0.15s; display: block; }
.quick-card:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow); text-decoration: none; }
.quick-card-icon { font-size: 24px; margin-bottom: 8px; display: block; }
.quick-card-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.quick-card-desc { color: var(--text-dim); font-size: 12px; }

.section-head { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 0 12px; }
.section-title { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 600; }

/* ============ ANNOUNCEMENT ============ */
.announce-item { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--text); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; }
.announce-item.pinned { border-left-color: var(--accent); }
.announce-item.important { border-left-color: var(--danger); }
.announce-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.announce-cat { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 3px; background: var(--text); color: #fff; letter-spacing: 0.06em; text-transform: uppercase; }
.announce-cat.important { background: var(--danger); }
.announce-cat.hr { background: var(--info); }
.announce-title { font-weight: 700; font-size: 14px; margin: 4px 0; }
.announce-body { color: var(--text-dim); font-size: 13px; }
.announce-meta { font-size: 11px; color: var(--text-muted); margin-top: 6px; }

/* ============ EMPTY STATE ============ */
.empty { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.empty-icon { font-size: 36px; margin-bottom: 10px; opacity: 0.5; }

/* ============ LOGIN ============ */
.auth-container { max-width: 420px; margin: 80px auto; padding: 32px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.auth-container h1 { text-align: center; margin-bottom: 24px; }
.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-logo img { height: 40px; }

/* ============ UTILITY ============ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-8 { gap: 8px; }
.mb-16 { margin-bottom: 16px; }
.mt-24 { margin-top: 24px; }
