/* ═══════════════════════════════════════════════════════════
   Puhu Creative — Marka Profili
   Aynı tasarım sistemi: Dark/Light · Inter · Yellow accent
   ═══════════════════════════════════════════════════════════ */

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

:root {
  --bg-base:       #0d0f10;
  --bg-panel:      #131618;
  --bg-card:       #1a1d20;
  --bg-hover:      #21252a;
  --bg-input:      #171a1d;

  --border:        #2a2e33;
  --border-hover:  #3d4449;

  --teal-600:      #e5c335;
  --teal-500:      #e5c335;
  --teal-400:      #e5c335;
  --teal-dim:      rgba(229,195,53,.15);
  --teal-glow:     rgba(229,195,53,.35);

  --amber-500:     #f59e0b;
  --amber-dim:     rgba(245,158,11,.12);

  --text-primary:  #f1f5f9;
  --text-secondary:#94a3b8;
  --text-muted:    #475569;

  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     14px;
  --radius-xl:     20px;

  --sidebar-w:     240px;

  --shadow-card:   0 2px 12px rgba(0,0,0,.4), 0 1px 3px rgba(0,0,0,.3);
  --transition:    200ms cubic-bezier(.4,0,.2,1);
}

[data-theme="light"] {
  --bg-base:       #f8fafc;
  --bg-panel:      #ffffff;
  --bg-card:       #f1f5f9;
  --bg-hover:      #e2e8f0;
  --bg-input:      #ffffff;
  --border:        #e2e8f0;
  --border-hover:  #cbd5e1;
  --teal-dim:      rgba(229,195,53,.08);
  --text-primary:  #0f172a;
  --text-secondary:#475569;
  --text-muted:    #94a3b8;
  --shadow-card:   0 2px 8px rgba(0,0,0,.08);
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background 300ms ease, color 300ms ease;
}

body { display: flex; flex-direction: row; }

svg { flex-shrink: 0; }
button { cursor: pointer; border: none; background: none; color: inherit; font: inherit; }
select, input, textarea { font: inherit; }
a { text-decoration: none; color: inherit; }
.hidden { display: none !important; }

/* ─── SIDEBAR ─── */
.sidebar {
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  width: var(--sidebar-w); min-width: var(--sidebar-w);
  height: 100%; z-index: 40;
  overflow-y: auto; flex-shrink: 0;
  transition: background 300ms ease, border-color 300ms ease;
}

.sidebar-logo {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 20px 18px;
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: border-color 300ms ease;
}

.logo-image { height: 34px; width: auto; max-width: calc(100% - 72px); object-fit: contain; }

.theme-toggle {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: var(--radius-sm);
  font-size: 11px; font-weight: 600; color: var(--text-muted);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: all var(--transition);
  position: absolute; right: 20px; top: 24px;
}
.theme-toggle:hover { background: var(--bg-hover); color: var(--text-primary); }
.theme-toggle svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.sidebar-nav { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.nav-section { display: flex; flex-direction: column; gap: 2px; }
.nav-section-label { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; padding: 8px 12px 6px; }

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-md);
  font-size: 13.5px; font-weight: 500; color: var(--text-secondary);
  transition: all var(--transition);
}
.nav-item svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-item.active { background: var(--teal-dim); color: var(--teal-400); font-weight: 600; }

.nav-divider { height: 1px; background: var(--border); margin: 12px 0; }

.sidebar-footer {
  padding: 16px 12px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
}

.package-info {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.package-label { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .8px; }
.package-status { display: flex; align-items: center; gap: 8px; }
.status-badge { background: var(--bg-hover); color: var(--text-secondary); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 20px; }
.package-notice { font-size: 11px; color: var(--text-muted); }

.package-btn {
  width: 100%; padding: 9px 0; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--teal-600), var(--amber-500));
  color: #0d0f10; font-size: 12.5px; font-weight: 700;
  transition: opacity var(--transition);
}
.package-btn:hover { opacity: .88; }

.logout-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text-muted);
  transition: all var(--transition);
}
.logout-btn:hover { color: #ef4444; background: rgba(239,68,68,.1); }
.logout-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ─── MAIN CONTENT ─── */
.main-content {
  flex: 1; display: flex; flex-direction: column;
  height: 100%; overflow: hidden;
  background: var(--bg-base);
}

/* ─── PAGE HEADER ─── */
.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 24px 32px 0;
  flex-shrink: 0;
}

.page-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-muted); margin-bottom: 6px;
}
.breadcrumb-sep { width: 14px; height: 14px; stroke: var(--text-muted); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.breadcrumb-link { color: var(--text-muted); }
.breadcrumb-current { color: var(--text-secondary); }

.page-title { font-size: 22px; font-weight: 800; color: var(--text-primary); margin-bottom: 4px; }
.page-subtitle { font-size: 13px; color: var(--text-muted); }

.user-email { font-size: 12px; color: var(--text-muted); }

/* ─── TOAST ─── */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  padding: 12px 20px; border-radius: var(--radius-md);
  font-size: 13px; font-weight: 600;
  background: #22c55e; color: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
  opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: all 300ms ease;
}
.toast.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.toast.error { background: #ef4444; }

/* ─── TAB NAV ─── */
.tab-nav {
  display: flex; gap: 4px;
  padding: 20px 32px 0;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  transition: border-color 300ms ease;
}

.tab-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  font-size: 13px; font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  margin-bottom: -1px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.tab-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tab-btn:hover { color: var(--text-primary); background: var(--bg-hover); }
.tab-btn.active { color: var(--teal-500); border-bottom-color: var(--teal-500); font-weight: 600; }

/* ─── TAB PANELS ─── */
.tab-panel { display: none; flex: 1; overflow-y: auto; padding: 28px 32px; }
.tab-panel.active { display: block; }

/* ─── SECTION GRID ─── */
.section-grid { display: flex; flex-direction: column; gap: 20px; max-width: 780px; }

/* ─── PROFILE CARD ─── */
.profile-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition);
}

.card-header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px;
}

.card-icon {
  width: 36px; height: 36px; border-radius: var(--radius-md);
  background: var(--teal-dim); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.card-icon svg { width: 16px; height: 16px; stroke: var(--teal-500); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.card-title { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.card-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.iyzico-badge {
  margin-left: auto; flex-shrink: 0;
  background: var(--amber-dim); color: var(--amber-500);
  font-size: 10px; font-weight: 700; padding: 3px 8px;
  border-radius: 20px; border: 1px solid rgba(245,158,11,.25);
}

/* ─── FORM ELEMENTS ─── */
.form-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; margin-bottom: 14px;
}
.form-row:last-of-type { margin-bottom: 0; }
.form-row.three-col { grid-template-columns: 1fr 1fr 1fr; }
.form-group.full-width { grid-column: 1 / -1; }

.form-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-hint { font-size: 11px; font-weight: 400; color: var(--text-muted); }

.form-input, .form-select, .form-textarea {
  width: 100%; padding: 9px 12px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-md); color: var(--text-primary);
  font-size: 13px; outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px var(--teal-dim);
}
.form-input.readonly { color: var(--text-muted); cursor: not-allowed; }
.form-select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px; }
.form-textarea { resize: vertical; min-height: 72px; }

/* Input with prefix */
.input-prefix-wrap { position: relative; display: flex; align-items: center; }
.input-prefix { position: absolute; left: 12px; color: var(--text-muted); font-size: 14px; pointer-events: none; }
.form-input.with-prefix { padding-left: 26px; }

/* ─── COLOR INPUT ─── */
.color-input-wrap { display: flex; align-items: center; gap: 8px; }
.color-swatch { width: 32px; height: 32px; border-radius: var(--radius-sm); border: 1px solid var(--border); flex-shrink: 0; cursor: pointer; transition: box-shadow var(--transition); }
.color-swatch:hover { box-shadow: 0 0 0 2px var(--teal-dim); }
.color-input-wrap .form-input { flex: 1; }
.color-picker { position: absolute; opacity: 0; width: 0; height: 0; }

/* ─── LOGO UPLOAD ─── */
.logo-upload-area {
  display: flex; align-items: center; gap: 16px;
  padding: 16px; border-radius: var(--radius-md);
  border: 1px dashed var(--border);
  background: var(--bg-input);
  transition: border-color var(--transition);
}
.logo-upload-area:hover { border-color: var(--teal-500); }

.logo-preview {
  width: 56px; height: 56px; border-radius: var(--radius-md);
  background: var(--bg-hover); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
}
.logo-preview svg { width: 22px; height: 22px; stroke: var(--text-muted); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.logo-preview img { width: 100%; height: 100%; object-fit: contain; }

.logo-upload-info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.logo-upload-title { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.logo-upload-sub { font-size: 11px; color: var(--text-muted); }

.file-input { display: none; }
.btn-upload {
  padding: 8px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-hover);
  color: var(--text-secondary); font-size: 12px; font-weight: 600;
  flex-shrink: 0; transition: all var(--transition);
}
.btn-upload:hover { border-color: var(--teal-500); color: var(--teal-500); }

/* ─── INFO BANNER ─── */
.info-banner {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px; border-radius: var(--radius-md);
  background: rgba(59,130,246,.08); border: 1px solid rgba(59,130,246,.2);
  font-size: 12.5px; color: #93c5fd;
}
.info-banner svg { width: 16px; height: 16px; stroke: #93c5fd; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; margin-top: 1px; }

/* ─── TAB DESC ─── */
.tab-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }

/* ─── CONNECTIONS GRID ─── */
.connections-grid { display: flex; flex-direction: column; gap: 10px; }

.connection-card {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition);
}
.connection-card.connected { border-color: rgba(34,197,94,.3); }

.conn-icon {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.conn-icon svg { width: 22px; height: 22px; }

.conn-info { flex: 1; }
.conn-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.conn-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.conn-status {
  font-size: 11px; font-weight: 700; padding: 3px 10px;
  border-radius: 20px; flex-shrink: 0;
}
.conn-status.disconnected { background: var(--bg-hover); color: var(--text-muted); }
.conn-status.connected { background: rgba(34,197,94,.12); color: #22c55e; }

.btn-connect {
  padding: 8px 16px; border-radius: var(--radius-sm);
  background: var(--teal-dim); color: var(--teal-500);
  font-size: 12px; font-weight: 700; flex-shrink: 0;
  border: 1px solid rgba(229,195,53,.25);
  transition: all var(--transition);
}
.btn-connect:hover { background: var(--teal-glow); }
.btn-connect.connected { background: rgba(34,197,94,.1); color: #22c55e; border-color: rgba(34,197,94,.25); }

/* ─── FORM ACTIONS ─── */
.form-actions { display: flex; justify-content: flex-end; }

.btn-save {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--teal-600), var(--amber-500));
  color: #0d0f10; font-size: 13.5px; font-weight: 700;
  box-shadow: 0 2px 12px rgba(229,195,53,.3);
  transition: opacity var(--transition), box-shadow var(--transition);
}
.btn-save:hover { opacity: .9; box-shadow: 0 4px 20px rgba(229,195,53,.5); }
.btn-save:disabled { opacity: .5; cursor: not-allowed; }
.btn-save svg { width: 15px; height: 15px; stroke: #0d0f10; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ═══════════════════════════════════════════════════════════
   OVERVIEW CARDS  (yeni kart tabanlı marka profili tasarımı)
   ═══════════════════════════════════════════════════════════ */

/* Ana sayfa scroll aç */
.page-body-scroll { overflow-y: auto !important; flex: 1; }
html.overview-page, html.overview-page body { overflow: auto; height: auto; min-height: 100vh; }

/* Sayfa üstü eylem alanı */
.page-header-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 24px 32px 0;
}
.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: transparent;
  color: var(--text-muted); font-size: 13px; font-weight: 500;
  text-decoration: none; transition: all var(--transition);
  flex-shrink: 0;
}
.back-btn:hover { border-color: var(--teal-500); color: var(--text-primary); }
.back-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Overview 4'lü grid */
.overview-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; padding: 28px 32px 0;
}

.overview-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 20px;
  text-decoration: none; color: var(--text-primary);
  position: relative; overflow: hidden;
  transition: border-color var(--transition), transform 150ms ease, box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.overview-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--teal-600); opacity: 0; transition: opacity var(--transition);
}
.overview-card:hover { border-color: var(--teal-500); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.overview-card:hover::before { opacity: 1; }

.ov-icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--teal-dim);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.ov-icon svg { width: 20px; height: 20px; stroke: var(--teal-500); fill: none; stroke-width: 2; }

.ov-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.ov-desc { font-size: 12px; color: var(--text-muted); line-height: 1.6; flex: 1; }

.badge-status {
  display: inline-block; margin-top: 14px; padding: 3px 8px;
  border-radius: 20px; font-size: 11px; font-weight: 500;
}
.badge-status.empty { background: var(--bg-hover); color: var(--text-muted); }
.badge-status.done  { background: rgba(34,197,94,.12); color: #22c55e; }
.badge-status.warn  { background: rgba(245,158,11,.12); color: var(--amber-500); }

.ov-arrow {
  display: flex; align-items: center; gap: 5px;
  margin-top: 10px; font-size: 11px; font-weight: 600; color: var(--teal-500);
}
.ov-arrow svg { width: 12px; height: 12px; stroke: var(--teal-500); fill: none; stroke-width: 2.5; }

/* Hızlı İşlemler */
.quick-section { padding: 28px 32px 32px; }
.quick-label {
  font-size: 10px; font-weight: 700; color: var(--text-muted);
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px;
}
.quick-grid { display: flex; gap: 12px; }
.quick-card {
  flex: 1; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--text-primary);
  transition: border-color var(--transition);
}
.quick-card:hover { border-color: var(--teal-500); }
.quick-card svg { width: 18px; height: 18px; stroke: var(--teal-500); fill: none; stroke-width: 2; flex-shrink: 0; }
.quick-card-text { font-size: 13px; font-weight: 500; }
.quick-card-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* Alt sayfa — içerik alanı */
.subpage-content {
  flex: 1; overflow-y: auto; padding: 28px 32px 60px;
  display: flex; flex-direction: column; gap: 22px; max-width: 820px;
}
.subpage-section-grid { display: flex; flex-direction: column; gap: 20px; }
