/* ============================================
   Etsy Boost Platform — Ana Stil Dosyası
   Turuncu temalı, profesyonel SaaS tasarımı
   ============================================ */

/* --- CSS Değişkenleri --- */
:root {
  --primary: #FF6B00;
  --primary-light: #FF8C33;
  --primary-dark: #E55D00;
  --primary-rgb: 255, 107, 0;
  --bg: #FFF5EB;
  --bg-white: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --border: #e0e0e0;
  --border-light: #f0f0f0;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.25s ease;

  /* Flash / badge renkler */
  --success: #4CAF50;
  --success-bg: #e8f5e9;
  --error: #f44336;
  --error-bg: #ffebee;
  --warning: #FFC107;
  --warning-bg: #fff8e1;
  --info: #2196F3;
  --info-bg: #e3f2fd;

  /* Durum badge */
  --badge-pending: #FFC107;
  --badge-pending-bg: #fff8e1;
  --badge-processing: #2196F3;
  --badge-processing-bg: #e3f2fd;
  --badge-completed: #4CAF50;
  --badge-completed-bg: #e8f5e9;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

main { flex: 1; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: var(--bg-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 0 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-brand span { color: var(--text); }

.navbar-nav {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}

.navbar-nav a {
  display: inline-block;
  padding: 8px 16px;
  color: var(--text);
  font-weight: 500;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--primary);
  background: var(--bg);
}

.navbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Hamburger (mobile) */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 768px) {
  .navbar .container { flex-wrap: wrap; }
  .navbar-toggle { display: block; }

  .navbar-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 8px 0;
    gap: 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
  }
  .navbar-nav.open { display: flex; }
  .navbar-nav a { width: 100%; padding: 12px 16px; }

  .navbar-actions {
    display: none;
    width: 100%;
    padding: 8px 0 12px;
    justify-content: center;
    background: var(--bg-white);
    flex-wrap: wrap;
  }
  .navbar-actions.open { display: flex; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  line-height: 1.5;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.35);
}

.btn-secondary {
  background: #6c757d;
  color: #fff;
}
.btn-secondary:hover { background: #5a6268; color: #fff; }

.btn-danger {
  background: var(--error);
  color: #fff;
}
.btn-danger:hover { background: #d32f2f; color: #fff; }

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-sm { padding: 6px 14px; font-size: 0.85rem; }
.btn-lg { padding: 14px 32px; font-size: 1.1rem; }
.btn-block { display: block; width: 100%; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: linear-gradient(135deg, #FF6B00, #FF8C33);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-content { flex: 1; }

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-content p {
  font-size: 1.15rem;
  opacity: 0.92;
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-width: 420px;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.hero-image-placeholder {
  width: 380px;
  height: 280px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

@media (max-width: 768px) {
  .hero { padding: 48px 0; }
  .hero .container { flex-direction: column; text-align: center; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-content p { margin-left: auto; margin-right: auto; }
  .hero-image-placeholder { width: 260px; height: 200px; font-size: 3rem; }
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section { padding: 64px 0; }

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 40px;
  font-size: 1.05rem;
}

/* ============================================
   SERVICE CARDS (3 columns)
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px 24px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text);
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.5;
}

.card-price {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 18px;
  background: var(--bg);
  color: var(--primary);
  font-weight: 700;
  border-radius: 20px;
  font-size: 1rem;
}

.card .btn { margin-top: 16px; }

@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .cards-grid { grid-template-columns: 1fr; }
}

/* ============================================
   VIDEO SECTION
   ============================================ */
.video-section { background: var(--bg-white); }

.video-wrapper {
  max-width: 720px;
  margin: 0 auto;
  border: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-wrapper iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: none;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  background: var(--bg-white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}

.faq-question:hover { background: var(--bg); }

.faq-chevron {
  font-size: 1.2rem;
  color: var(--primary);
  transition: transform var(--transition);
}

.faq-item.active .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 0 24px 18px;
}

.faq-answer p {
  color: var(--text-light);
  line-height: 1.6;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-white);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

textarea.form-control { resize: vertical; min-height: 100px; }

select.form-control { cursor: pointer; }

.form-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 36px;
  max-width: 480px;
  margin: 40px auto;
}

.form-card h2 {
  text-align: center;
  margin-bottom: 24px;
  color: var(--text);
}

.form-footer {
  text-align: center;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ============================================
   FLASH MESSAGES
   ============================================ */
.flash-message {
  padding: 14px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.flash-success {
  background: var(--success-bg);
  color: #2e7d32;
  border-left: 4px solid var(--success);
}

.flash-error {
  background: var(--error-bg);
  color: #c62828;
  border-left: 4px solid var(--error);
}

.flash-warning {
  background: var(--warning-bg);
  color: #f57f17;
  border-left: 4px solid var(--warning);
}

.flash-info {
  background: var(--info-bg);
  color: #1565c0;
  border-left: 4px solid var(--info);
}

/* ============================================
   BADGES
   ============================================ */
.badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
  white-space: nowrap;
}

.badge-pending {
  background: var(--badge-pending-bg);
  color: #f57f17;
}

.badge-processing {
  background: var(--badge-processing-bg);
  color: #1565c0;
}

.badge-completed {
  background: var(--badge-completed-bg);
  color: #2e7d32;
}

/* ============================================
   TABLES
   ============================================ */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.table thead th {
  background: var(--bg);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 2px solid var(--border);
}

.table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.93rem;
}

.table tbody tr:nth-child(even) { background: #fafafa; }

.table tbody tr:hover { background: var(--bg); }

.table tbody tr:last-child td { border-bottom: none; }

/* ============================================
   DASHBOARD — STAT CARDS
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
  text-align: center;
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-card .stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 4px;
}

.stat-card .stat-icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ============================================
   CREDIT PACKAGE CARDS
   ============================================ */
.credit-packages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.credit-card {
  background: var(--bg-white);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.credit-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.credit-card.featured {
  border-color: var(--primary);
  position: relative;
}

.credit-card.featured::before {
  content: 'Popüler';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 2px 14px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.credit-card .credit-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.credit-card .credit-label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 4px 0 12px;
}

.credit-card .credit-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}

/* ============================================
   DASHBOARD SECTIONS
   ============================================ */
.dashboard-section {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 28px;
}

.dashboard-section h2 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg);
}

.credit-balance {
  background: linear-gradient(135deg, #FF6B00, #FF8C33);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.credit-balance .balance-amount {
  font-size: 2.2rem;
  font-weight: 800;
}

.credit-balance .balance-label {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--text);
  color: #ccc;
  padding: 40px 0 20px;
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 24px;
}

.footer-brand {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.footer-brand span { color: #fff; }

.footer-text {
  font-size: 0.9rem;
  color: #aaa;
  max-width: 320px;
}

.footer-links h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 12px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li { margin-bottom: 6px; }

.footer-links a {
  color: #aaa;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 16px;
  text-align: center;
  font-size: 0.85rem;
  color: #888;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-text { max-width: 100%; }
}

/* ============================================
   ADMIN PANEL
   ============================================ */
.admin-navbar {
  background: var(--text);
  padding: 0;
}

.admin-navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.admin-navbar .navbar-brand { color: var(--primary); }
.admin-navbar .navbar-brand span { color: #fff; }

.admin-navbar .navbar-nav a {
  color: #ccc;
  font-size: 0.9rem;
}

.admin-navbar .navbar-nav a:hover,
.admin-navbar .navbar-nav a.active {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
}

.admin-navbar .navbar-actions .btn {
  font-size: 0.85rem;
  padding: 6px 14px;
}

.admin-content {
  padding: 32px 0;
}

.admin-content .page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
}

/* Admin filter bar */
.filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-bar select,
.filter-bar input {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

/* Bulk actions */
.bulk-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: var(--bg);
  border-radius: var(--radius);
}

.bulk-actions label {
  font-weight: 600;
  font-size: 0.9rem;
}

/* ============================================
   CATEGORY SECTIONS (Services page)
   ============================================ */
.category-section { margin-bottom: 40px; }

.category-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
  color: var(--text);
}

/* ============================================
   PAGE HEADER (inner pages)
   ============================================ */
.page-header {
  background: linear-gradient(135deg, #FF6B00, #FF8C33);
  color: #fff;
  padding: 40px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
}

.page-header p {
  opacity: 0.9;
  margin-top: 8px;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.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; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }

.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--error); }
.text-muted { color: var(--text-muted); }

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.empty-state p {
  font-size: 1rem;
}

/* ============================================
   RESPONSIVE — GLOBAL
   ============================================ */
@media (max-width: 768px) {
  .section { padding: 40px 0; }
  .section-title { font-size: 1.5rem; }
  .form-card { margin: 20px 16px; padding: 24px; }
  .dashboard-section { padding: 16px; }
  .table thead th,
  .table tbody td { padding: 10px 12px; font-size: 0.85rem; }
}


/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.lang-switcher {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-right: 8px;
}

.lang-flag {
  font-size: 1.3rem;
  text-decoration: none;
  opacity: 0.5;
  transition: opacity var(--transition);
  line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
}

.lang-flag:hover {
  opacity: 0.8;
}

.lang-flag.active {
  opacity: 1;
  background: var(--bg);
  border-radius: 4px;
}
