﻿/* DahaSeri — Uygulama / modul sayfalari (tek kaynak) */

:root {
  --ds-bg: #f4f6fa;
  --ds-surface: #ffffff;
  --ds-text: #0c1527;
  --ds-text-dim: #5b6578;
  --ds-border: rgba(12, 21, 39, 0.10);
  --ds-navy: #0a2548;
  --ds-blue: #2563eb;
  --ds-teal: #0d9488;
  --ds-grad: linear-gradient(135deg, #0a2548 0%, #1d4ed8 55%, #0d9488 100%);
  --ds-shadow: 0 16px 48px rgba(12, 21, 39, 0.10);
}

.erp-layout { background: var(--ds-bg); min-height: 100vh; }

.erp-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--ds-border);
  backdrop-filter: blur(12px);
}

.header-brand .brand-text {
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--ds-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.erp-content { background: var(--ds-bg); }

/* —— Modul sayfa iskeleti —— */
.module-page { background: transparent; }

.module-page .container {
  width: min(1140px, calc(100% - 40px));
  margin-inline: auto;
}

.module-hero {
  padding: 32px 0 28px;
  background: var(--ds-surface);
  color: var(--ds-text);
  text-align: left;
  border-bottom: 1px solid var(--ds-border);
}

.module-hero .hero-content {
  max-width: none;
  margin: 0;
}

.module-hero .hero-icon,
.module-page .feature-icon,
.module-page .benefit-icon {
  display: none !important;
}

.module-hero .hero-title {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ds-navy);
}

.module-hero .hero-subtitle {
  margin: 0;
  font-size: 1rem;
  color: var(--ds-text-dim);
  line-height: 1.65;
  max-width: 62ch;
}

.features-section {
  padding: 48px 0;
  background: var(--ds-surface);
}

.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-title {
  margin: 0 0 8px;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ds-navy);
}

.section-subtitle {
  margin: 0;
  color: var(--ds-text-dim);
  line-height: 1.65;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--ds-bg);
  border: 1px solid var(--ds-border);
  border-radius: 18px;
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ds-shadow);
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ds-navy);
}

.feature-card p {
  margin: 0 0 12px;
  color: var(--ds-text-dim);
  line-height: 1.6;
  font-size: 0.95rem;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-list li {
  padding: 6px 0 6px 22px;
  position: relative;
  color: var(--ds-text-dim);
  font-size: 0.9rem;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ds-teal);
  font-weight: 800;
}

.benefits-section {
  padding: 48px 0;
  background: var(--ds-bg);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.benefit-item {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: 16px;
}

.benefit-icon { font-size: 1.75rem; flex-shrink: 0; }

.benefit-content h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ds-navy);
}

.benefit-content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ds-text-dim);
  line-height: 1.55;
}

.demo-section {
  padding: 48px 0;
  background: var(--ds-navy);
  color: #fff;
  text-align: center;
}

.demo-title {
  margin: 0 0 10px;
  font-size: 1.65rem;
  font-weight: 800;
}

.demo-description {
  margin: 0 auto 24px;
  max-width: 520px;
  opacity: 0.85;
  line-height: 1.65;
}

.demo-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.module-page .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, filter 0.15s;
}

.module-page .btn-primary {
  color: #fff;
  background: var(--ds-grad);
}

.module-page .btn-secondary {
  color: var(--ds-navy);
  background: #fff;
}

.module-page .btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

@media (max-width: 768px) {
  .features-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .demo-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* —— ERP kabuk (MudBlazor yok) —— */
.ds-app-body,
.ds-app {
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
}

.ds-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ds-bg);
  color: var(--ds-text);
}

.ds-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  height: 56px;
  background: var(--ds-surface);
  border-bottom: 1px solid var(--ds-border);
  position: sticky;
  top: 0;
  z-index: 200;
}

.ds-topbar-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--ds-border);
  border-radius: 10px;
  background: var(--ds-bg);
  cursor: pointer;
}

.ds-topbar-menu span {
  display: block;
  height: 2px;
  width: 18px;
  margin: 0 auto;
  background: var(--ds-navy);
  border-radius: 1px;
}

.ds-topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ds-navy);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.ds-topbar-brand img {
  border-radius: 8px;
  object-fit: cover;
  object-position: 48% 42%;
}

.ds-topbar-brand small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--ds-text-dim);
}

.ds-topbar-meta {
  display: flex;
  gap: 16px;
  margin-left: auto;
  font-size: 13px;
}

.ds-topbar-meta a {
  color: var(--ds-text-dim);
  text-decoration: none;
}

.ds-topbar-meta a:hover {
  color: var(--ds-blue);
}

.ds-topbar-actions {
  display: flex;
  gap: 8px;
}

.ds-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.ds-btn-ghost {
  color: var(--ds-navy);
  background: var(--ds-bg);
  border-color: var(--ds-border);
}

.ds-btn-primary {
  color: #fff;
  background: var(--ds-grad);
}

.ds-shell {
  display: flex;
  flex: 1;
  min-height: 0;
}

.ds-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: var(--ds-surface);
  border-right: 1px solid var(--ds-border);
  overflow-y: auto;
}

.ds-main {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.ds-nav {
  padding: 16px 12px 24px;
}

.ds-nav-search input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--ds-border);
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
  background: var(--ds-bg);
  margin-bottom: 12px;
}

.ds-nav-search input:focus {
  outline: 2px solid rgba(37, 99, 235, 0.25);
  border-color: var(--ds-blue);
}

.ds-nav-group {
  margin-bottom: 8px;
}

.ds-nav-group-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ds-text-dim);
  cursor: pointer;
}

.ds-nav-group-head:hover {
  background: var(--ds-bg);
  color: var(--ds-navy);
}

.ds-nav-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.ds-nav-group-head[aria-expanded="true"] .ds-nav-chevron {
  transform: rotate(-135deg);
}

.ds-nav-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0 4px;
}

.ds-nav-link {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ds-text);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.ds-nav-link:hover {
  background: var(--ds-bg);
  color: var(--ds-blue);
}

.ds-nav-link.active {
  background: rgba(37, 99, 235, 0.1);
  color: var(--ds-blue);
}

.module-page {
  padding-bottom: 48px;
}

@media (max-width: 1024px) {
  .ds-topbar-menu {
    display: flex;
  }

  .ds-topbar-meta {
    display: none;
  }

  .ds-sidebar {
    position: fixed;
    left: 0;
    top: 56px;
    bottom: 0;
    z-index: 150;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: var(--ds-shadow);
  }

  .ds-sidebar.is-open {
    transform: translateX(0);
  }
}

@media (max-width: 640px) {
  .ds-topbar-actions .ds-btn-ghost {
    display: none;
  }
}
