/* ================================================================
   YÜKSEK UÇUŞ - BASE.CSS
   Reset, Typography, Ana Layout
   ================================================================ */

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

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  color: var(--text);
  background: var(--bg-root);
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
}

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

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

ul, ol {
  list-style: none;
}


/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
}

p {
  margin: 0;
}

.page-title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.page-subtitle {
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 4px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }


/* ==================== LAYOUT ==================== */
.layout {
  position: relative;
  display: flex;
  min-height: 100vh;
}

.main {
  flex: 1;
  min-width: 0;
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  padding: var(--space-md);
}

.view {
  display: none;
  animation: fadeUp 0.25s ease both;
}

.view.active {
  display: block;
}


/* ==================== TOPBAR ==================== */
.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.topbar-left {
  flex: 1;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}


/* ==================== BREADCRUMB ==================== */
.breadcrumb {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}


/* ==================== PANEL ==================== */
.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.panel-title {
  font-size: 13px;
  font-weight: 700;
}

.panel-body {
  padding: 12px;
}

.panel-body-compact {
  padding: 0;
}


/* ==================== STATS GRID ==================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: var(--space-md);
}

.stat-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  padding: 10px 12px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
}

.stat-card .stat-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 15px;
  margin-bottom: var(--space-xs);
}

.stat-card .stat-value {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.stat-card .stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}


/* ==================== TOOLBAR ==================== */
.toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}





/* ==================== TABLE ==================== */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 6px var(--space-md);
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover {
  background: rgba(0, 0, 0, 0.015);
}

.cell-center {
  text-align: center;
}

.cell-right {
  text-align: right;
}





/* ==================== NAME LINK ==================== */
.name-link {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.name-link:hover {
  color: var(--accent);
}





/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}


/* ==================== SELECTION ==================== */
::selection {
  background: var(--accent-soft);
  color: var(--text);
}


/* ==================== FOCUS VISIBLE ==================== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}


/* ==================== BOOT SPLASH ==================== */
.boot-splash {
  position: fixed;
  inset: 0;
  z-index: var(--z-splash);
  display: grid;
  place-items: center;
  padding: var(--space-lg);
  background: var(--overlay);
  backdrop-filter: blur(18px);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.boot-splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-splash-card {
  display: grid;
  justify-items: center;
  gap: var(--space-md);
  text-align: center;
}

.boot-splash-logo {
  width: clamp(100px, 20vw, 160px);
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  animation: pulse 1.5s ease-in-out infinite;
}

.boot-splash-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
}

.boot-splash-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}
