/* UZKEM Global Design System & Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@400;500;600;700&display=swap');

:root {
  --bg-main: #F7F3EC;
  --bg-card: #FFFDF9;
  --bg-dark: #13213A;
  --bg-subtle: #EFE8DC;
  --accent-orange: #E2603A;
  --accent-orange-hover: #C94E2A;
  --accent-green: #3F7A3B;
  --accent-green-light: #B9CBB3;
  --text-main: #13213A;
  --text-muted: #5B6475;
  --text-light: #F7F3EC;
  --border-color: rgba(19, 33, 58, 0.1);
  --border-dark: rgba(247, 243, 236, 0.15);
  --shadow-sm: 0 2px 8px rgba(19, 33, 58, 0.06);
  --shadow-md: 0 12px 30px -10px rgba(19, 33, 58, 0.15);
  --shadow-lg: 0 24px 50px -20px rgba(19, 33, 58, 0.25);
  --font-sans: 'Geist', system-ui, -apple-system, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --container-max: 1312px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--accent-orange);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

input,
select,
textarea {
  font-family: inherit;
  outline: none;
}

/* Typography */
h1,
h2,
h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--text-main);
}

.font-serif {
  font-family: var(--font-serif);
  font-weight: 400;
}

.text-orange {
  color: var(--accent-orange);
}

.text-green {
  color: var(--accent-green);
}

.text-muted {
  color: var(--text-muted);
}

.text-light {
  color: var(--text-light);
}

/* Layout Containers */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4.4vw, 64px);
}

/* Header & Nav */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(247, 243, 236, 0.94);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4.4vw, 64px);
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-link img {
  height: 68px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.logo-link img:hover {
  transform: scale(1.03);
}

.nav-links {
  display: flex;
  gap: 34px;
  font-size: 15px;
  font-weight: 500;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-orange);
  color: #FFFDF9;
}

.btn-primary:hover {
  background: var(--accent-orange-hover);
  color: #FFFDF9;
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--bg-dark);
  color: var(--text-light);
}

.btn-dark:hover {
  background: #1c2e4f;
  color: var(--text-light);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-main);
}

.btn-outline:hover {
  background: var(--bg-dark);
  color: var(--text-light);
  border-color: var(--bg-dark);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13.5px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16.5px;
}

/* Cards & Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
}

.badge-green {
  background: var(--accent-green-light);
  color: var(--text-main);
}

.badge-orange {
  background: #F8D9CC;
  color: #9A3517;
}

.badge-dark {
  background: var(--bg-dark);
  color: var(--text-light);
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Dashboard & Panels */
.panel-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  min-height: 100vh;
  padding-top: 84px;
}

@media (max-width: 992px) {
  .panel-layout {
    grid-template-columns: 1fr;
  }
}

.panel-sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--border-color);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: calc(100vh - 84px);
}

.sidebar-profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-subtle);
  border-radius: 14px;
  margin-bottom: 20px;
  border: 1px solid rgba(19, 33, 58, 0.05);
}

.sidebar-profile-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg-card);
  box-shadow: 0 2px 8px rgba(19, 33, 58, 0.1);
}

.sidebar-profile-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-profile-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-profile-role {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-orange);
}

.sidebar-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8C94A3;
  padding: 12px 12px 6px 12px;
  margin-top: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s ease;
  text-decoration: none;
}

.sidebar-link-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-link svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.8;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.sidebar-link:hover {
  background: rgba(19, 33, 58, 0.04);
  color: var(--text-main);
}

.sidebar-link:hover svg {
  transform: translateX(2px);
}

.sidebar-link.active {
  background: var(--bg-dark);
  color: var(--text-light);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(19, 33, 58, 0.15);
}

.sidebar-link.active svg {
  stroke: #FFFDF9;
}

.sidebar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--accent-orange);
  color: #FFFDF9;
}

.sidebar-badge-green {
  background: var(--accent-green);
}

.panel-main {
  padding: 36px clamp(20px, 4vw, 48px);
}

/* Forms */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  font-size: 15px;
  color: var(--text-main);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 4px rgba(226, 96, 58, 0.12);
}

/* Footer */
.footer {
  background: #0E1829;
  color: var(--text-light);
  padding: 96px clamp(20px, 4.4vw, 64px) 36px;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr));
  gap: 40px 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 320px;
}

.footer-brand img {
  height: 76px;
  width: auto;
  object-fit: contain;
}

.footer-title {
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-green-light);
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links a {
  font-size: 14.5px;
  color: rgba(247, 243, 236, 0.8);
}

.footer-links a:hover {
  color: var(--accent-orange);
}


.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: rgba(247, 243, 236, 0.5);
  border-top: 1px solid rgba(247, 243, 236, 0.12);
  padding-top: 22px;
  margin-top: 10px;
}

/* Responsive */
@media (max-width: 992px) {
  .panel-layout {
    grid-template-columns: 1fr;
  }

  .panel-sidebar {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .nav-container {
    height: 68px;
  }

  .logo-link img {
    height: 52px;
  }

  .nav-links {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Mobil menüler ---- */
.nav-toggle,
.panel-menu-toggle { display: none; }

@media (max-width: 992px) {
  .panel-menu-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 0 0 16px; padding: 9px 16px; border-radius: 999px;
    border: 1px solid var(--border-color); background: var(--bg-card);
    font-weight: 600; font-size: 14px; color: var(--text-main); cursor: pointer;
  }
  .panel-sidebar.open {
    display: flex;
    min-height: 0 !important;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .panel-main { min-width: 0; }
  .panel-sidebar.open > div:last-child { margin-top: 12px !important; }
}

@media (max-width: 600px) {
  .nav-toggle {
    display: inline-grid; place-items: center; width: 40px; height: 40px;
    border: 1px solid var(--border-color); border-radius: 12px; background: transparent;
    font-size: 18px; cursor: pointer; color: var(--text-main);
  }
  .nav-actions { gap: 8px; }
  .nav-actions .nav-secondary { display: none; }
  .nav-actions .btn { padding: 8px 14px; font-size: 13.5px; white-space: nowrap; }
  .header-nav.nav-open .nav-links {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg-card); border-bottom: 1px solid var(--border-color);
    padding: 12px 20px 18px; box-shadow: 0 18px 30px -20px rgba(19,33,58,.35);
  }
  .header-nav.nav-open .nav-links a { padding: 10px 0; }
  .header-nav.nav-open .nav-actions .nav-secondary {
    display: inline;
  }
}

/* Yasal ve bilgilendirme metinleri */
.legal h3 { font-size: 19px; font-weight: 600; color: var(--text-main); margin: 24px 0 8px; }
.legal h3:first-child { margin-top: 0; }
.legal p { margin: 0 0 12px; }
.legal ul { padding-left: 20px; margin: 6px 0 14px; }
.legal li { margin-bottom: 6px; }
details.card > summary { list-style: none; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::after { content: '+'; float: right; color: var(--accent-orange); font-weight: 700; }
details.card[open] > summary::after { content: '–'; }
