/* ══════════════════════════════════════════════════════════════════
   Piksel Kreatif CMS – Ana Stil Dosyası
   Koyu tema · Turuncu vurgu · Plus Jakarta Sans
   ══════════════════════════════════════════════════════════════════ */

/* ── Reset & Variables ────────────────────────────────────────── */
:root {
  --primary: #ff6b00;
  --primary-dark: #d45a00;
  --primary-light: #ff8c33;
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a25;
  --surface: #16161f;
  --border: #222230;
  --border-hover: #333345;
  --text: #e8e8ed;
  --text-muted: #8a8a9a;
  --muted: #8a8a9a;
  --success: #00c48c;
  --danger: #ff4757;
  --warning: #ffa502;
  --info: #3742fa;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --shadow: 0 4px 24px rgba(0,0,0,.35);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.5);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --transition: .25s cubic-bezier(.4,0,.2,1);
  --container: 1200px;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

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

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

img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

::selection { background: var(--primary); color: #fff; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ── Container ────────────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ── Cursor Glow ──────────────────────────────────────────────── */
.cursor-glow {
  position: fixed; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,0,.06) 0%, transparent 70%);
  pointer-events: none; z-index: 0; transform: translate(-50%, -50%);
  transition: left .3s ease, top .3s ease;
}

/* ── Typography ───────────────────────────────────────────────── */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; color: #fff; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.15rem; }

.prose { line-height: 1.85; color: var(--text); }
.prose h2 { margin: 32px 0 12px; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 16px; }
.prose img { border-radius: var(--radius); margin: 24px 0; }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-sm); font-weight: 600;
  font-size: .9rem; cursor: pointer; border: none;
  transition: all var(--transition); text-decoration: none;
  line-height: 1.4;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; box-shadow: 0 4px 16px rgba(255,107,0,.25);
}
.btn-primary:hover {
  transform: translateY(-2px); box-shadow: 0 6px 24px rgba(255,107,0,.4); color: #fff;
}
.btn-outline {
  background: transparent; border: 1.5px solid var(--border-hover); color: var(--text);
}
.btn-outline:hover {
  border-color: var(--primary); color: var(--primary); transform: translateY(-2px);
}
.btn-ghost { background: transparent; color: var(--text-muted); padding: 8px 14px; }
.btn-ghost:hover { color: var(--primary); }
.btn-sm { padding: 8px 18px; font-size: .82rem; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }

/* ── Header ───────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  background: rgba(10,10,15,.85); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(34,34,48,.5);
  transition: background var(--transition);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
}
.header-logo { font-size: 1.3rem; font-weight: 800; color: #fff; text-decoration: none; }
.header-logo span { color: var(--primary); }

.header-nav { display: flex; align-items: center; gap: 32px; list-style: none; }
.header-nav a {
  color: var(--text-muted); font-size: .88rem; font-weight: 500;
  transition: color var(--transition); text-decoration: none;
}
.header-nav a:hover { color: #fff; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.mobile-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  min-height: 90vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 140px 24px 80px; position: relative;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 20%, rgba(255,107,0,.08) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-badge {
  display: inline-block; padding: 6px 18px; border-radius: 20px;
  background: rgba(255,107,0,.12); color: var(--primary); font-size: .8rem;
  font-weight: 600; margin-bottom: 20px; border: 1px solid rgba(255,107,0,.2);
}
.hero-title { margin-bottom: 20px; letter-spacing: -1px; }
.hero-sub { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 36px; max-width: 540px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Page Hero (Alt sayfalar) ─────────────────────────────────── */
.page-hero {
  padding: 140px 24px 60px; text-align: center;
  background: radial-gradient(ellipse at 50% 30%, rgba(255,107,0,.06) 0%, transparent 60%);
}
.page-hero-title { margin-bottom: 12px; }
.page-hero-sub { color: var(--text-muted); font-size: 1rem; }

/* ── Sections ─────────────────────────────────────────────────── */
.section { padding: 80px 0; position: relative; }
.section-dark { background: var(--surface); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-badge {
  display: inline-block; padding: 5px 16px; border-radius: 20px;
  background: rgba(255,107,0,.1); color: var(--primary); font-size: .78rem;
  font-weight: 600; margin-bottom: 14px; border: 1px solid rgba(255,107,0,.15);
}
.section-title { letter-spacing: -.5px; }

/* ── CTA Section ──────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, rgba(255,107,0,.08) 0%, rgba(255,107,0,.02) 100%);
  border-top: 1px solid rgba(255,107,0,.1); border-bottom: 1px solid rgba(255,107,0,.1);
}

/* ── Cards (Services, Blog, Portfolio) ────────────────────────── */
.services-grid, .blog-grid, .portfolio-grid {
  display: grid; gap: 20px;
}
.services-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.blog-grid     { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.portfolio-grid{ grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.service-card {
  display: block; padding: 28px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: all var(--transition); text-decoration: none; color: var(--text);
}
.service-card:hover {
  border-color: var(--primary); background: var(--bg-card-hover);
  transform: translateY(-4px); box-shadow: 0 8px 30px rgba(255,107,0,.1);
  color: var(--text);
}
.service-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.service-card p { color: var(--text-muted); font-size: .88rem; margin-bottom: 8px; }
.service-icon { font-size: 2rem; margin-bottom: 14px; }
.service-price { color: var(--primary); font-size: .82rem; font-weight: 600; }

.blog-card {
  display: block; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border);
  transition: all var(--transition); text-decoration: none; color: var(--text);
}
.blog-card:hover {
  border-color: var(--primary); transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(255,107,0,.1); color: var(--text);
}
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 20px; }
.blog-card-body h3 { font-size: 1rem; margin-bottom: 8px; }
.blog-card-body p { color: var(--text-muted); font-size: .85rem; }
.blog-cat {
  display: inline-block; font-size: .72rem; font-weight: 600;
  color: var(--primary); text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 6px;
}

.portfolio-card {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3; background: var(--bg-card); border: 1px solid var(--border);
  transition: all var(--transition);
}
.portfolio-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.portfolio-card:hover img { transform: scale(1.05); }
.portfolio-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 24px;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.85) 100%);
}
.portfolio-overlay h3 { color: #fff; font-size: 1rem; }
.portfolio-cat { color: var(--primary); font-size: .75rem; font-weight: 600; text-transform: uppercase; margin-bottom: 4px; }

/* ── Filter Bar ───────────────────────────────────────────────── */
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px;
}
.filter-btn {
  padding: 8px 20px; border-radius: 20px; font-size: .82rem; font-weight: 500;
  color: var(--text-muted); background: var(--bg-card); border: 1px solid var(--border);
  text-decoration: none; transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

/* ── Forms ─────────────────────────────────────────────────────── */
.form-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: .82rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  transition: border-color var(--transition); outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,107,0,.12); }
textarea.form-control { resize: vertical; }

/* ── Contact Grid ─────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.contact-info { padding: 32px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.contact-info h3 { margin-bottom: 20px; }
.contact-item { margin-bottom: 18px; }
.contact-item strong { display: block; font-size: .78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .3px; margin-bottom: 4px; }

/* ── Content Wrap ─────────────────────────────────────────────── */
.content-wrap { max-width: 800px; margin: 0 auto; }
.featured-image { width: 100%; border-radius: var(--radius); margin-bottom: 32px; }
.features-list { margin-top: 32px; }
.features-list ul { list-style: none; }
.features-list li { padding: 10px 0; border-bottom: 1px solid var(--border); padding-left: 20px; position: relative; }
.features-list li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }

/* ── Gallery Grid ─────────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.gallery-grid figure { border-radius: var(--radius); overflow: hidden; }
.gallery-grid img { width: 100%; height: 200px; object-fit: cover; transition: transform .3s; }
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid figcaption { padding: 8px; font-size: .8rem; color: var(--text-muted); text-align: center; background: var(--bg-card); }

/* ── Pagination ───────────────────────────────────────────────── */
.pagination-wrap { display: flex; justify-content: center; margin-top: 40px; }
.pagination { display: flex; gap: 6px; list-style: none; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; border-radius: var(--radius-sm);
  font-size: .85rem; font-weight: 500; border: 1px solid var(--border);
  color: var(--text-muted); text-decoration: none; transition: all var(--transition);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Flash Messages ───────────────────────────────────────────── */
.alert {
  padding: 14px 20px; border-radius: var(--radius-sm); margin-bottom: 20px;
  font-size: .88rem; font-weight: 500;
}
.alert-success { background: rgba(0,196,140,.12); border: 1px solid rgba(0,196,140,.25); color: var(--success); }
.alert-error   { background: rgba(255,71,87,.12); border: 1px solid rgba(255,71,87,.25); color: var(--danger); }
.alert-warning { background: rgba(255,165,2,.12); border: 1px solid rgba(255,165,2,.25); color: var(--warning); }
.alert-info    { background: rgba(55,66,250,.12); border: 1px solid rgba(55,66,250,.25); color: var(--info); }

/* ── Badges ───────────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 6px;
  font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .3px;
}
.b-active  { background: rgba(0,196,140,.15); color: var(--success); }
.b-pending { background: rgba(255,165,2,.15); color: var(--warning); }
.b-info    { background: rgba(55,66,250,.15); color: #6c7aff; }
.b-danger  { background: rgba(255,71,87,.15); color: var(--danger); }

/* ── Footer ───────────────────────────────────────────────────── */
.site-footer {
  padding: 60px 0 0; background: var(--surface);
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px;
  max-width: var(--container); margin: 0 auto; padding: 0 24px 40px;
}
.footer-brand h3 { color: #fff; margin-bottom: 10px; }
.footer-brand p { color: var(--text-muted); font-size: .88rem; }
.footer-col h4 {
  font-size: .82rem; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-muted); margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-muted); font-size: .88rem; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 18px 24px;
  text-align: center; font-size: .8rem; color: var(--text-muted);
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .header-nav { display: none; }
  .mobile-toggle { display: block; }
  .hero { min-height: 75vh; padding-top: 120px; }
  .section { padding: 50px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .services-grid, .blog-grid, .portfolio-grid { grid-template-columns: 1fr; }
}

/* ── Animations ───────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
.hero-content { animation: fadeInUp .7s ease-out; }
.section-header { animation: fadeInUp .6s ease-out; }

/* ── Customer/Admin Panel Shared ──────────────────────────────── */
.panel {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 18px;
}
.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  font-weight: 600; font-size: .92rem; color: #fff;
}
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  padding: 10px 16px; text-align: left; font-size: .75rem; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px;
  border-bottom: 1px solid var(--border); background: rgba(255,255,255,.02);
}
.data-table td { padding: 12px 16px; border-bottom: 1px solid rgba(34,34,48,.5); font-size: .88rem; }
.data-table tr:hover td { background: rgba(255,107,0,.03); }

.page-header {
  display: flex; align-items: center; gap: 14px; margin-bottom: 24px; flex-wrap: wrap;
}
.page-title { font-size: 1.4rem; font-weight: 700; }

/* ── Navbar (header.php) ──────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,10,15,.88); backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(34,34,48,.5);
  transition: all var(--transition);
}
.navbar.scrolled { background: rgba(10,10,15,.96); box-shadow: 0 4px 20px rgba(0,0,0,.4); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--container); margin: 0 auto; padding: 14px 24px;
}
.nav-logo {
  font-size: 1.3rem; font-weight: 800; text-decoration: none; color: #fff;
  display: flex; align-items: center; gap: 2px;
}
.logo-pixel { color: #fff; }
.logo-kreatif { color: var(--primary); }
.nav-links {
  display: flex; align-items: center; gap: 8px; list-style: none;
  margin: 0; padding: 0;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 16px; color: var(--text-muted); font-size: .88rem;
  font-weight: 500; text-decoration: none; border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-links > li > a:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav-links > li > a svg { opacity: .5; transition: transform .2s; }

/* Submenu */
.nav-item-has-children:hover > .nav-submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-submenu {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px 0;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .2s ease; list-style: none; z-index: 100;
}
.nav-submenu li a {
  display: block; padding: 10px 20px; color: var(--text-muted);
  font-size: .85rem; text-decoration: none; transition: all var(--transition);
}
.nav-submenu li a:hover { color: #fff; background: rgba(255,107,0,.08); }

.nav-buttons { display: flex; align-items: center; gap: 12px; }

.nav-cta {
  padding: 10px 22px !important; border-radius: var(--radius-sm) !important;
}

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px; background: #fff;
  border-radius: 2px; transition: all .3s;
}

/* ── Footer (footer.php) ──────────────────────────────────────── */
.footer {
  padding: 60px 0 0; background: var(--surface);
  border-top: 1px solid var(--border); margin-top: 40px;
}
.footer-inner {
  display: grid; grid-template-columns: 1.5fr 2fr; gap: 48px;
  max-width: var(--container); margin: 0 auto; padding: 0 24px 40px;
}
.footer-logo {
  font-size: 1.2rem; font-weight: 800; margin-bottom: 12px;
}
.footer-desc { color: var(--text-muted); font-size: .88rem; line-height: 1.7; margin-bottom: 16px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  color: var(--text-muted); transition: all var(--transition);
}
.footer-social a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.footer-links {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}

@media (max-width: 768px) {
  .nav-links, .nav-buttons { display: none; }
  .nav-links.active { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 16px 24px; }
  .hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}
