/*
Theme Name: Mortipo
Theme URI: https://mortipo.com
Author: Mortipo Team
Description: Şikayet ve eleştiri platformu teması - Mobil uyumlu, admin onaylı içerik sistemi
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: mortipo
*/

/* =============================================
   CSS VARIABLES & RESET
============================================= */
:root {
  --primary: #E8330A;
  --primary-dark: #C22A08;
  --primary-light: #FF5733;
  --secondary: #1A1A2E;
  --accent: #F5A623;
  --bg: #0D0D1A;
  --bg-card: #151527;
  --bg-light: #1E1E35;
  --text: #E8E8F0;
  --text-muted: #8888AA;
  --text-light: #AAAACC;
  --border: #2A2A45;
  --success: #00C851;
  --warning: #FFD700;
  --danger: #E8330A;
  --radius: 12px;
  --radius-sm: 6px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-hover: 0 8px 40px rgba(232,51,10,0.2);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-light); }

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

/* =============================================
   TYPOGRAPHY
============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.6rem); }

/* =============================================
   LAYOUT
============================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================================
   HEADER
============================================= */
#site-header {
  background: rgba(13, 13, 26, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

.logo-text span { color: var(--primary); }

/* Main Nav */
.main-nav { display: flex; align-items: center; gap: 6px; }

.main-nav a {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
  background: var(--bg-light);
}

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 10px; }

.btn-header-login {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-light);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-header-login:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-header-primary {
  background: var(--primary);
  color: white;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-header-primary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232,51,10,0.4);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.2rem;
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 12px 20px;
}

.mobile-nav.open { display: block; }

.mobile-nav a {
  display: block;
  color: var(--text-light);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}

.mobile-nav a:last-child { border-bottom: none; }

/* =============================================
   HERO SECTION
============================================= */
.hero-section {
  padding: 80px 20px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232,51,10,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(232,51,10,0.1);
  border: 1px solid rgba(232,51,10,0.3);
  color: var(--primary-light);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero-cta-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn-primary {
  background: var(--primary);
  color: white;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,51,10,0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

/* Stats Bar */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.stat-item { text-align: center; }

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =============================================
   CATEGORY SECTION
============================================= */
.section { padding: 60px 0; }
.section-sm { padding: 40px 0; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.section-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.section-link:hover { color: var(--primary); }

/* Category Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: var(--text);
}

.category-card:hover {
  border-color: var(--primary);
  background: rgba(232,51,10,0.05);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  color: var(--text);
}

.category-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}

.category-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.category-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* =============================================
   POST / COMPLAINT CARDS
============================================= */
.posts-grid {
  display: grid;
  gap: 16px;
}

.posts-grid.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.post-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--border);
  transition: var(--transition);
}

.post-card:hover {
  border-color: rgba(232,51,10,0.4);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.post-card:hover::before { background: var(--primary); }

.post-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.post-meta-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-sikayet { background: rgba(232,51,10,0.15); color: #FF6B4A; }
.badge-elestiri { background: rgba(245,166,35,0.15); color: #F5A623; }
.badge-film { background: rgba(139,92,246,0.15); color: #A78BFA; }
.badge-sosyal { background: rgba(59,130,246,0.15); color: #60A5FA; }
.badge-cozuldu { background: rgba(0,200,81,0.15); color: #00C851; }
.badge-bekliyor { background: rgba(255,215,0,0.15); color: var(--warning); }
.badge-inceleniyor { background: rgba(100,100,200,0.15); color: #9999EE; }

.post-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}
.dot-red { background: var(--primary); box-shadow: 0 0 6px var(--primary); }
.dot-green { background: var(--success); box-shadow: 0 0 6px var(--success); }
.dot-yellow { background: var(--warning); }

.post-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.post-title a { color: var(--text); }
.post-title a:hover { color: var(--primary-light); }

.post-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.author-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
}

.post-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.post-stats {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.post-stat svg { width: 14px; height: 14px; }

/* =============================================
   SINGLE POST PAGE
============================================= */
.single-post-wrap { padding: 40px 0; }

.single-post-header {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
}

.single-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.single-post-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.3;
}

.single-post-info {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.post-target-company {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,51,10,0.08);
  border: 1px solid rgba(232,51,10,0.2);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.post-target-company strong { color: var(--primary-light); }

.post-content-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-light);
}

.post-content-box p { margin-bottom: 16px; }
.post-content-box p:last-child { margin-bottom: 0; }

/* Response Box (Şikayet sahibi yanıtı) */
.response-box {
  background: rgba(0,200,81,0.05);
  border: 1px solid rgba(0,200,81,0.25);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.response-box-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--success);
}

/* =============================================
   COMMENTS SECTION
============================================= */
.comments-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
}

.comments-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.comment-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.comment-item:last-child { border-bottom: none; padding-bottom: 0; }

.comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.comment-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--bg-light));
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.comment-author-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.comment-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
}

.comment-body {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
  padding-left: 46px;
}

.no-comments {
  text-align: center;
  padding: 32px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Comment Form */
.comment-form-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
}

.comment-form-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.comment-pending-notice {
  background: rgba(255,215,0,0.08);
  border: 1px solid rgba(255,215,0,0.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--warning);
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* =============================================
   FORMS
============================================= */
.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 6px;
}

.form-label span { color: var(--primary); }

.form-control {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232,51,10,0.1);
}

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

textarea.form-control { resize: vertical; min-height: 120px; }

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%238888AA' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 5px;
}

.btn-submit {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
  letter-spacing: 0.3px;
}

.btn-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232,51,10,0.4);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* =============================================
   AUTH PAGES (Login/Register)
============================================= */
.auth-page {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow);
}

.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 6px;
}

.auth-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 28px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.auth-switch a { color: var(--primary); font-weight: 600; }
.auth-switch a:hover { color: var(--primary-light); }

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-error { background: rgba(232,51,10,0.1); border: 1px solid rgba(232,51,10,0.3); color: #FF6B4A; }
.alert-success { background: rgba(0,200,81,0.1); border: 1px solid rgba(0,200,81,0.3); color: var(--success); }
.alert-info { background: rgba(100,100,200,0.1); border: 1px solid rgba(100,100,200,0.3); color: #9999EE; }

/* Password toggle */
.password-wrap { position: relative; }
.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
}

/* =============================================
   NEW POST PAGE
============================================= */
.new-post-page { padding: 40px 0; }

.page-header {
  margin-bottom: 32px;
}

.page-header-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.page-header-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.post-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.post-type-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 4px;
}

.post-type-option { display: none; }

.post-type-label {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.85rem;
  font-weight: 600;
}

.post-type-label:hover {
  border-color: var(--primary);
  background: rgba(232,51,10,0.05);
}

.post-type-option:checked + .post-type-label {
  border-color: var(--primary);
  background: rgba(232,51,10,0.1);
  color: var(--primary-light);
}

.post-type-label .type-icon { display: block; font-size: 1.4rem; margin-bottom: 4px; }

.pending-info-box {
  background: rgba(245,166,35,0.08);
  border: 1px solid rgba(245,166,35,0.2);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.85rem;
  color: #F5C842;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.5;
}

/* =============================================
   USER PROFILE / DASHBOARD
============================================= */
.dashboard-page { padding: 40px 0; }

.dashboard-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

.dashboard-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.user-profile-box {
  padding: 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.user-avatar-large {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  margin: 0 auto 12px;
}

.user-display-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}

.user-join-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dashboard-nav { padding: 12px 0; }

.dashboard-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--text-light);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
  background: rgba(232,51,10,0.08);
  color: var(--text);
  border-right: 3px solid var(--primary);
}

.dashboard-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.stat-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  text-align: center;
}

.stat-card-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.stat-card-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =============================================
   SEARCH BAR
============================================= */
.search-bar-wrap {
  position: relative;
  max-width: 560px;
  margin: 0 auto 40px;
}

.search-bar-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 50px 14px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition);
}

.search-bar-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232,51,10,0.1);
}

.search-bar-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  border: none;
  color: white;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-bar-btn:hover { background: var(--primary-dark); }

/* =============================================
   FILTER BAR
============================================= */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(232,51,10,0.1);
  border-color: var(--primary);
  color: var(--primary-light);
}

/* =============================================
   PAGINATION
============================================= */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.page-btn:hover,
.page-btn.current {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* =============================================
   SIDEBAR
============================================= */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}

.sidebar { display: flex; flex-direction: column; gap: 16px; }

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

.sidebar-card-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-card-body { padding: 14px 18px; }

.sidebar-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-light);
}

.sidebar-list-item:last-child { border-bottom: none; }

.sidebar-list-item a { color: var(--text-light); }
.sidebar-list-item a:hover { color: var(--primary-light); }

.sidebar-badge {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
}

/* =============================================
   FOOTER
============================================= */
#site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  margin-top: 60px;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 48px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand { }

.footer-brand-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}

.footer-brand-logo span { color: var(--primary); }

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-col-title {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 14px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links { list-style: none; }

.footer-links li { margin-bottom: 8px; }

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 16px;
}

.footer-bottom-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* =============================================
   LOADING / SKELETON
============================================= */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-light) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* =============================================
   UTILITIES
============================================= */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.hidden { display: none !important; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }

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

.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  float: right;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.modal-close:hover { color: var(--text); }

/* =============================================
   NOTICE / EMPTY STATES
============================================= */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 14px;
  opacity: 0.5;
}

.empty-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 6px;
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1024px) {
  .layout-with-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

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

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

@media (max-width: 768px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .header-actions .btn-header-login { display: none; }

  .hero-section { padding: 50px 16px 40px; }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 20px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .post-form-card,
  .auth-card,
  .comments-section,
  .comment-form-section,
  .single-post-header,
  .post-content-box,
  .dashboard-content {
    padding: 20px;
  }

  .auth-card { padding: 28px 20px; }

  .stats-bar {
    gap: 24px;
  }

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

@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .posts-grid.grid-2 {
    grid-template-columns: 1fr;
  }

  .hero-title { font-size: 1.7rem; }

  .hero-cta-group { flex-direction: column; align-items: center; }

  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }

  .post-type-selector {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =============================================
   WP ADMIN BAR — sadece admin görür
============================================= */
#wpadminbar { display: none !important; }
body.admin-bar { padding-top: 0 !important; margin-top: 0 !important; }
html.wp-toolbar { padding-top: 0 !important; }
body.mortipo-is-admin #wpadminbar { display: block !important; }
body.mortipo-is-admin { padding-top: 32px !important; }
@media screen and (max-width: 782px) {
  body.mortipo-is-admin { padding-top: 46px !important; }
}

/* =============================================
   KURUMSAL BADGE
============================================= */
.badge-kurumsal { background: rgba(99,102,241,0.15); color: #818CF8; }
.badge-verified  { background: rgba(0,200,81,0.15); color: #00C851; }

/* =============================================
   KURUMSAL KAYIT FORMU
============================================= */
.reg-tab-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; margin-bottom: 28px;
}
.reg-tab {
  padding: 12px; text-align: center; cursor: pointer;
  font-weight: 600; font-size: 0.9rem;
  background: var(--bg); color: var(--text-muted);
  border: none; transition: var(--transition);
}
.reg-tab.active { background: var(--primary); color: white; }

/* =============================================
   ADMİN PANEL
============================================= */
.admin-panel-wrap { padding: 32px 0 60px; }
.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px; margin-bottom: 28px;
}
.admin-stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  position: relative; overflow: hidden;
}
.admin-stat-card::after {
  content: attr(data-icon); position: absolute;
  right: 16px; top: 16px; font-size: 1.6rem; opacity: 0.25;
}
.admin-stat-num {
  font-family: var(--font-display); font-size: 2.2rem;
  font-weight: 800; display: block; margin-bottom: 4px;
}
.admin-stat-label {
  font-size: 0.78rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.admin-tabs {
  display: flex; gap: 6px; border-bottom: 1px solid var(--border);
  margin-bottom: 24px; flex-wrap: wrap;
}
.admin-tab-btn {
  background: none; border: none; color: var(--text-muted);
  padding: 10px 18px; font-size: 0.88rem; font-weight: 600;
  cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: var(--transition);
  font-family: var(--font-body);
}
.admin-tab-btn:hover { color: var(--text); }
.admin-tab-btn.active { color: var(--primary-light); border-bottom-color: var(--primary); }
.admin-tab-panel { display: none; }
.admin-tab-panel.active { display: block; }
.admin-table-wrap {
  overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius);
}
.admin-table {
  width: 100%; border-collapse: collapse; font-size: 0.85rem;
}
.admin-table th {
  background: var(--bg-light); padding: 12px 14px; text-align: left;
  font-weight: 700; color: var(--text-light);
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.admin-table td {
  padding: 12px 14px; border-bottom: 1px solid var(--border);
  vertical-align: middle; color: var(--text-light);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.action-btn {
  padding: 5px 12px; border-radius: var(--radius-sm);
  font-size: 0.75rem; font-weight: 600; cursor: pointer;
  border: none; transition: var(--transition); font-family: var(--font-body);
}
.action-btn-approve { background: rgba(0,200,81,0.15); color: var(--success); }
.action-btn-approve:hover { background: var(--success); color: white; }
.action-btn-reject  { background: rgba(232,51,10,0.1); color: var(--primary); }
.action-btn-reject:hover  { background: var(--primary); color: white; }
.action-btn-view    { background: rgba(100,100,200,0.1); color: #9999EE; }
.action-btn-view:hover { background: rgba(100,100,200,0.3); }

/* =============================================
   ŞİKAYET FORMU — genişletilmiş
============================================= */
.form-section-title {
  font-size: 0.9rem; font-weight: 700; color: var(--text-light);
  border-bottom: 1px solid var(--border); padding-bottom: 8px;
  margin-bottom: 16px; margin-top: 8px;
  display: flex; align-items: center; gap: 8px;
}
.char-counter { font-size: 0.72rem; color: var(--text-muted); text-align: right; margin-top: 4px; }
.star-rating { display: flex; gap: 4px; flex-direction: row-reverse; justify-content: flex-end; }
.star-rating input { display: none; }
.star-rating label { font-size: 1.6rem; cursor: pointer; color: var(--border); transition: var(--transition); }
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label { color: var(--warning); }

/* =============================================
   SINGLE — Timeline
============================================= */
.resolution-timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item { display: flex; gap: 16px; position: relative; }
.timeline-item:not(:last-child) .timeline-line {
  position: absolute; left: 15px; top: 32px; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-dot {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; flex-shrink: 0; z-index: 1;
  border: 2px solid var(--border); background: var(--bg);
}
.timeline-dot.active { border-color: var(--primary); background: rgba(232,51,10,0.1); }
.timeline-dot.done   { border-color: var(--success); background: rgba(0,200,81,0.1); }
.timeline-content { padding-bottom: 20px; flex: 1; }
.timeline-title { font-weight: 700; font-size: 0.88rem; margin-bottom: 4px; }
.timeline-desc  { font-size: 0.8rem; color: var(--text-muted); }

/* =============================================
   SCROLLBAR
============================================= */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
