/* ═══════════════════════════════════════════════════════════
   TCC İçerik Paneli – Ana Stil Dosyası
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg:          #F1F5F9;
  --surface:     #FFFFFF;
  --border:      #E2E8F0;
  --sidebar-bg:  #0F172A;
  --sidebar-txt: #94A3B8;
  --sidebar-act: #FFFFFF;
  --primary:     #3B82F6;
  --primary-dk:  #2563EB;
  --success:     #16A34A;
  --warning:     #D97706;
  --danger:      #DC2626;
  --purple:      #7C3AED;
  --txt:         #0F172A;
  --txt-sec:     #64748B;
  --radius:      10px;
  --shadow:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:   0 4px 12px rgba(0,0,0,.10);
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--txt);
  font-size: 14px;
  line-height: 1.5;
}

/* ── Layout ──────────────────────────────────────────── */
.layout {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ─────────────────────────────────────────── */
.sidebar {
  width: 230px;
  min-height: 100vh;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  padding: 0 0 24px;
  z-index: 100;
}

.sidebar-logo {
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 8px;
}
.logo-mark {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: .04em;
}
.logo-sub {
  font-size: 11px;
  color: var(--sidebar-txt);
  letter-spacing: .03em;
  text-transform: uppercase;
}

.sidebar-nav { list-style: none; padding: 8px 12px; flex: 1; }
.sidebar-nav li { margin-bottom: 2px; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 7px;
  color: var(--sidebar-txt);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.nav-link:hover { background: rgba(255,255,255,.06); color: #FFFFFF; }
.nav-link.active { background: rgba(59,130,246,.20); color: var(--primary); }
.nav-link svg { flex-shrink: 0; }

.sidebar-footer {
  padding: 0 12px;
  margin-top: auto;
}

.btn-generate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.btn-generate:hover { background: var(--primary-dk); }

/* ── Main Content ────────────────────────────────────── */
.main-content {
  margin-left: 230px;
  flex: 1;
  padding: 32px 36px;
  max-width: 1200px;
}

/* ── Page Header ─────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}
.page-title { font-size: 22px; font-weight: 700; color: var(--txt); }
.page-sub   { font-size: 13px; color: var(--txt-sec); margin-top: 2px; }

/* ── Stats Row ───────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  border-left: 4px solid transparent;
}
.stat-pending   { border-left-color: var(--warning); }
.stat-approved  { border-left-color: var(--success); }
.stat-scheduled { border-left-color: var(--primary); }
.stat-published { border-left-color: var(--purple); }

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--txt);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: var(--txt-sec);
  margin-top: 5px;
  font-weight: 500;
}

/* ── Filter Bar ──────────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  align-items: center;
}
.filter-group { display: flex; align-items: center; gap: 8px; }
.filter-label { font-size: 12px; color: var(--txt-sec); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.filter-tabs  { display: flex; gap: 4px; }

.filter-tab {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--txt-sec);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all .15s;
  white-space: nowrap;
}
.filter-tab:hover  { border-color: var(--primary); color: var(--primary); }
.filter-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Cards Grid ──────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.content-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.content-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

/* Card Image */
.card-image {
  position: relative;
  height: 190px;
  background: #F8FAFC;
  overflow: hidden;
}
.card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.card-image-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #F1F5F9 0%, #E2E8F0 100%);
}
.image-prompt-hint {
  font-size: 11px;
  color: var(--txt-sec);
  background: rgba(255,255,255,.8);
  padding: 2px 8px;
  border-radius: 10px;
}

/* Badges on card */
.badge-platform {
  position: absolute;
  top: 10px; left: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}
.badge-ig { background: rgba(225,48,108,.90); color: #fff; }
.badge-wp { background: rgba(33,117,155,.90); color: #fff; }

.badge-status {
  position: absolute;
  top: 10px; right: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

/* Card Body */
.card-body { padding: 14px 16px; flex: 1; }
.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--txt);
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-excerpt {
  font-size: 13px;
  color: var(--txt-sec);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--txt-sec);
  margin-top: 10px;
}

/* Card Actions */
.card-actions {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: #FAFAFA;
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-approve  { background: #DCFCE7; color: #15803D; }
.btn-approve:hover  { background: #BBF7D0; }
.btn-reject   { background: #FEE2E2; color: #B91C1C; }
.btn-reject:hover   { background: #FECACA; }
.btn-edit     { background: #EFF6FF; color: #1D4ED8; }
.btn-edit:hover     { background: #DBEAFE; }
.btn-publish  { background: #F3E8FF; color: #6D28D9; }
.btn-publish:hover  { background: #EDE9FE; }
.btn-delete   { background: #FEE2E2; color: #B91C1C; }
.btn-delete:hover   { background: #FECACA; }
.btn-primary  { background: var(--primary); color: #fff; }
.btn-primary:hover  { background: var(--primary-dk); }
.btn-ghost    { background: transparent; color: var(--txt-sec); border: 1px solid var(--border); }
.btn-ghost:hover    { background: var(--surface); }

/* Status badge colors */
.badge-pending   { background: #FEF3C7; color: #92400E; }
.badge-approved  { background: #DCFCE7; color: #15803D; }
.badge-scheduled { background: #DBEAFE; color: #1D4ED8; }
.badge-published { background: #EDE9FE; color: #5B21B6; }
.badge-rejected  { background: #FEE2E2; color: #991B1B; }

/* ── Empty State ─────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  color: var(--txt-sec);
  gap: 12px;
}
.empty-state h3 { font-size: 16px; font-weight: 600; color: var(--txt); }
.empty-state p  { font-size: 13px; }

/* ── Panel Card ──────────────────────────────────────── */
.card-panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.panel-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--txt);
}

/* ── Add Account Form ────────────────────────────────── */
.add-account-form {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.form-group { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 180px; }
.form-label { font-size: 12px; font-weight: 600; color: var(--txt-sec); text-transform: uppercase; letter-spacing: .04em; }
.form-input {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 13.5px;
  background: var(--surface);
  color: var(--txt);
  transition: border .15s;
  width: 100%;
}
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,130,246,.15); }

.input-prefix {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
  transition: border .15s;
  background: var(--surface);
}
.input-prefix:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
.prefix {
  padding: 8px 10px;
  background: #F8FAFC;
  color: var(--txt-sec);
  font-weight: 600;
  border-right: 1px solid var(--border);
  font-size: 13.5px;
}
.input-prefix .form-input { border: none; box-shadow: none; flex: 1; }
.input-prefix .form-input:focus { box-shadow: none; }

/* ── Data Table ──────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--txt-sec);
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: #F8FAFC; }

.account-cell  { display: flex; align-items: center; gap: 12px; }
.account-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3B82F6, #7C3AED);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.account-username { font-weight: 600; font-size: 13.5px; color: var(--txt); }
.account-url      { font-size: 12px; color: var(--txt-sec); text-decoration: none; }
.account-url:hover { color: var(--primary); }

.badge-count {
  background: #F1F5F9;
  color: var(--txt-sec);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.action-btns { display: flex; gap: 6px; }
.btn-icon {
  width: 32px; height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--txt-sec);
  transition: all .15s;
}
.btn-toggle:hover { background: #EFF6FF; color: var(--primary); border-color: var(--primary); }
.btn-danger:hover { background: #FEE2E2; color: var(--danger); border-color: var(--danger); }

/* ── Calendar ────────────────────────────────────────── */
.cal-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cal-month-label {
  font-size: 15px;
  font-weight: 600;
  min-width: 140px;
  text-align: center;
}

.cal-wrapper {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.cal-day-header {
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--txt-sec);
  text-align: center;
  background: #F8FAFC;
  border-bottom: 1px solid var(--border);
}
.cal-cell {
  min-height: 110px;
  padding: 8px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.cal-cell:nth-child(7n) { border-right: none; }
.cal-cell-empty { background: #FAFAFA; }
.cal-today { background: #EFF6FF; }
.cal-day-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--txt-sec);
  margin-bottom: 4px;
}
.cal-today .cal-day-num {
  display: inline-flex;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  align-items: center;
  justify-content: center;
}

.cal-events { display: flex; flex-direction: column; gap: 3px; }
.cal-event {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cal-event-instagram { background: #FCE7F3; color: #9D174D; }
.cal-event-wordpress { background: #DBEAFE; color: #1E40AF; }
.cal-event-icon  { flex-shrink: 0; font-size: 10px; }
.cal-event-title { overflow: hidden; text-overflow: ellipsis; }

.cal-legend {
  display: flex;
  gap: 20px;
  padding: 12px 16px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 12px;
  width: fit-content;
}
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--txt-sec); }
.legend-dot  { width: 10px; height: 10px; border-radius: 50%; }
.legend-instagram { background: #EC4899; }
.legend-wordpress { background: var(--primary); }

/* ── Modal ───────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.is-open {
  display: flex;
}
.modal-box {
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.20);
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-sm { max-width: 460px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}
.modal-header h2 { font-size: 16px; font-weight: 700; }
.modal-close {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none;
  background: #F1F5F9;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--txt-sec);
  transition: background .15s;
}
.modal-close:hover { background: #E2E8F0; }

.modal-body { padding: 20px 24px; }

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  background: var(--surface);
  position: sticky;
  bottom: 0;
}

/* Modal form fields */
.modal-field { margin-bottom: 16px; }
.modal-field label { display: block; font-size: 12px; font-weight: 600; color: var(--txt-sec); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.modal-field input,
.modal-field textarea,
.modal-field select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--txt);
  background: var(--surface);
  transition: border .15s;
  resize: vertical;
}
.modal-field input:focus,
.modal-field textarea:focus,
.modal-field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.modal-field textarea { min-height: 100px; }

/* ── Step List & Code Block ──────────────────────────── */
.step-list {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step-list li {
  font-size: 13.5px;
  color: var(--txt);
  line-height: 1.6;
}

.code-block {
  display: block;
  background: var(--sidebar-bg);
  color: #7DD3FC;
  padding: 12px 16px;
  border-radius: 8px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  user-select: all;
}

/* ── Toast ───────────────────────────────────────────── */
#toastContainer {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: slideIn .25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 260px;
}
.toast-success { background: #166534; color: #DCFCE7; }
.toast-error   { background: #991B1B; color: #FEE2E2; }
.toast-info    { background: #1E3A5F; color: #DBEAFE; }

@keyframes slideIn {
  from { transform: translateX(40px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ── Helpers ─────────────────────────────────────────── */
.text-secondary { color: var(--txt-sec); }

/* ── Scrollbar ───────────────────────────────────────── */
::-webkit-scrollbar        { width: 6px; height: 6px; }
::-webkit-scrollbar-track  { background: transparent; }
::-webkit-scrollbar-thumb  { background: #CBD5E1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* ── Settings Page ───────────────────────────────────── */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 24px;
  padding: 24px;
}

.settings-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.settings-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px 0;
}

.settings-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--txt);
  margin: 0 0 4px;
}

.settings-card-desc {
  font-size: 13px;
  color: var(--txt-sec);
  margin: 0;
}

.settings-card-body {
  padding: 20px 24px 24px;
}

.settings-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.input-eye-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-eye-wrap .form-input {
  padding-right: 40px;
}

.sidebar-home-link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #64748B;
  text-decoration: none;
  margin-bottom: 8px;
  transition: color .15s;
}
.sidebar-home-link:hover { color: #94A3B8; }

.btn-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  margin-bottom: 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #94A3B8;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.btn-logout:hover {
  background: rgba(255,255,255,.07);
  color: #fff;
}

.btn-eye {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--txt-sec);
  padding: 4px;
  display: flex;
  align-items: center;
}

.btn-eye:hover { color: var(--txt); }

.help-text {
  font-size: 12px;
  color: var(--txt-sec);
  margin: 5px 0 0;
}

.form-label-hint {
  font-size: 11px;
  font-weight: 400;
  color: var(--txt-sec);
  margin-left: 6px;
}

.badge-neutral {
  background: #F1F5F9;
  color: #64748B;
  border: 1px solid #E2E8F0;
}

.test-result {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
}

.test-loading { background: #EFF6FF; color: #3B82F6; }
.test-ok      { background: #F0FDF4; color: #16A34A; }
.test-fail    { background: #FEF2F2; color: #DC2626; }

/* ── Buttons (shared) ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background .15s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dk); }

.btn-secondary {
  background: var(--bg);
  color: var(--txt);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: #E2E8F0; }

/* ── Spinner ─────────────────────────────────────────── */
.spinner {
  width: 36px; height: 36px;
  border: 3px solid #E2E8F0;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Page Header (shared) ────────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 0;
}

.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--txt);
  margin: 0 0 4px;
}


/* ══════════════════════════════════════════════════════
   İçerik Üret Sayfası – Platform Kartları
   ══════════════════════════════════════════════════════ */

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  padding: 24px;
}

.platform-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow .2s;
}
.platform-card:hover { box-shadow: var(--shadow-md); }
.platform-card-future {
  border-style: dashed;
  opacity: .65;
}

.platform-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.platform-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.platform-icon-ig    { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.platform-icon-story { background: linear-gradient(135deg,#833ab4,#fd1d1d,#fcb045); }
.platform-icon-wp    { background: #21759b; }
.platform-icon-future {
  background: #F1F5F9;
  color: #94A3B8;
  font-size: 22px;
  font-weight: 300;
  border: 1px dashed var(--border);
}

.platform-info { flex: 1; min-width: 0; }
.platform-info h3 {
  font-size: 14px; font-weight: 600; color: var(--txt);
  margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.platform-info p { font-size: 12px; color: var(--txt-sec); }

/* Mode Toggle (Manuel / Otomatik) */
.mode-toggle {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
  flex-shrink: 0;
}
.mode-btn {
  padding: 4px 10px;
  border-radius: 4px;
  border: none;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  color: var(--txt-sec);
  background: transparent;
  transition: all .15s;
}
.mode-btn.mode-active {
  background: var(--surface);
  color: var(--txt);
  box-shadow: 0 1px 3px rgba(0,0,0,.10);
}

/* Platform Card Body */
.platform-card-body { padding: 16px 20px; flex: 1; }

/* Source Tabs (Link / Yazı / Görsel) */
.source-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.src-tab {
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  color: var(--txt-sec);
  background: var(--surface);
  transition: all .15s;
  white-space: nowrap;
}
.src-tab.src-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.src-tab:hover:not(.src-active) { border-color: var(--primary); color: var(--primary); }

.auto-desc {
  font-size: 13px;
  color: var(--txt-sec);
  line-height: 1.65;
  padding: 14px;
  background: var(--bg);
  border-radius: 8px;
}
.auto-desc strong { color: var(--txt); }

/* Platform Card Footer */
.platform-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: #FAFAFA;
}

/* Generation inline result */
.gen-result {
  flex: 1;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.gen-result-running { background: #EFF6FF; color: #1D4ED8; }
.gen-result-done    { background: #F0FDF4; color: #15803D; }
.gen-result-error   { background: #FEF2F2; color: #DC2626; }

.gen-spinner {
  display: inline-block;
  width: 12px; height: 12px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  flex-shrink: 0;
}

/* Bu Haftayı Üret – ana buton */
.btn-weekly {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #3B82F6, #7C3AED);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s;
  white-space: nowrap;
}
.btn-weekly:hover { opacity: .88; }

/* ══════════════════════════════════════════════════════
   Taslaklar – AI Aksiyonları
   ══════════════════════════════════════════════════════ */

.card-actions-ai {
  display: flex;
  gap: 6px;
  padding: 8px 16px 12px;
  background: #FAFAFA;
  border-top: 1px solid #F1F5F9;
}

.btn-ai {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--txt-sec);
  transition: all .15s;
  white-space: nowrap;
}
.btn-revise:hover {
  background: #EDE9FE;
  color: #6D28D9;
  border-color: #C4B5FD;
}
.btn-img:hover {
  background: #EFF6FF;
  color: #1D4ED8;
  border-color: #BFDBFE;
}

/* Story rozeti */
.badge-story {
  background: rgba(131,58,180,.85);
  color: #fff;
}

/* ══════════════════════════════════════════════════════
   Genel Düzeltmeler
   ══════════════════════════════════════════════════════ */

/* badge genel tanım (settings sayfası için) */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.badge-success { background: #DCFCE7; color: #15803D; }
.badge-warning { background: #FEF3C7; color: #92400E; }
