﻿/* Demoincele CMS — Frontend (Bootstrap bağımsız) */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-family, 'Montserrat', system-ui, sans-serif);
  color: var(--text, #212121);
  background: #fff;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

/* Ortak genişlik sarmalayıcı */
.di-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Top bar */
.di-topbar {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 8px 0;
  font-size: 13px;
  color: #666;
}
.di-topbar-inner { text-align: center; }

/* Header */
.di-header {
  width: 100%;
  background: #fff;
  padding: 18px 0 14px;
  border-bottom: 1px solid #f0f0f0;
}
.di-header-inner {
  display: flex;
  justify-content: center;
  align-items: center;
}
.di-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.di-logo img { max-height: 64px; width: auto; }
.di-logo-mark {
  width: 56px; height: 56px;
  border-radius: 50% 50% 50% 8px;
  background: linear-gradient(135deg, var(--primary, #1E88E5), var(--navy, #0D47A1));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 14px rgba(30,136,229,.35);
  flex-shrink: 0;
}
.di-logo-text { text-align: left; line-height: 1.15; }
.di-logo-text strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #1a1a1a;
}
.di-logo-text small {
  font-size: 12px;
  color: #888;
  font-weight: 500;
  letter-spacing: .04em;
}

/* Hero */
.di-hero {
  position: relative;
  z-index: 30;
  width: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(105deg, rgba(13,30,55,.88), rgba(20,50,90,.75)),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="800" height="400"><defs><pattern id="g" width="40" height="40" patternUnits="userSpaceOnUse"><rect fill="%231a3a5c" width="40" height="40"/><path d="M0 40L40 0M-10 10L10 -10M30 50L50 30" stroke="%232a4a6c" stroke-width="1"/></pattern></defs><rect fill="url(%23g)" width="800" height="400"/></svg>') center/cover;
  color: #fff;
  padding: 48px 0 56px;
  overflow: visible;
}
.di-hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 20%, rgba(0,0,0,.35) 100%);
  pointer-events: none;
}
.di-hero-inner { position: relative; z-index: 2; text-align: center; }
.di-hero-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: .06em;
  margin: 0 0 10px;
  text-transform: uppercase;
  color: #fff;
}
.di-hero-sub {
  margin: 0 0 28px;
  opacity: .9;
  font-size: 15px;
  font-weight: 400;
  color: #fff;
}

/* Search */
.di-search {
  display: flex;
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: 2px;
  overflow: visible;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
  position: relative;
  text-align: left;
}
.di-search-wrap {
  flex: 1;
  position: relative;
  min-width: 0;
}
.di-search input {
  width: 100%;
  border: 0;
  padding: 16px 20px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  color: #333;
  background: transparent;
}
.di-search button {
  border: 0;
  background: var(--primary, #1E88E5);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  padding: 0 28px;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
  flex-shrink: 0;
}
.di-search button:hover { background: var(--primary-dark, #1565C0); }

.di-search-suggest {
  position: absolute;
  left: 0; right: 0; top: calc(100% - 1px);
  background: #fff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
  z-index: 1000;
  max-height: 360px;
  overflow-y: auto;
  color: #222;
}
.di-search-suggest.is-fixed {
  position: fixed;
  right: auto;
  top: auto;
  margin: 0;
}
.di-search-suggest[hidden] { display: none !important; }
.di-suggest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  color: #222;
  transition: background .15s;
}
.di-suggest-item:last-child { border-bottom: 0; }
.di-suggest-item:hover,
.di-suggest-item.is-active { background: #f3f8ff; }
.di-suggest-thumb {
  width: 48px; height: 34px;
  background: #ececec;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.di-suggest-thumb img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
}
.di-suggest-thumb i { color: #aaa; font-size: 14px; }
.di-suggest-meta { min-width: 0; flex: 1; }
.di-suggest-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.di-suggest-sub {
  display: block;
  font-size: 11px;
  color: #777;
  margin-top: 2px;
}
.di-suggest-sub strong { color: var(--primary, #1E88E5); }
.di-suggest-ai {
  font-size: 10px;
  font-weight: 700;
  background: #7B1FA2;
  color: #fff;
  padding: 2px 6px;
  flex-shrink: 0;
}
.di-suggest-empty,
.di-suggest-loading {
  padding: 14px 16px;
  font-size: 13px;
  color: #888;
  text-align: center;
}
.di-suggest-more {
  display: block;
  padding: 11px 14px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary, #1E88E5);
  border-top: 1px solid #eee;
  background: #fafafa;
}
.di-suggest-more:hover { background: #f0f6ff; }

/* Packages */
.di-packages {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 40px 0 60px;
  background: #fafafa;
  flex: 1;
}
.di-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid #e8e8e8;
}
.di-section-head i { color: var(--primary, #1E88E5); font-size: 20px; }
.di-section-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #222;
}

.di-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 1100px) { .di-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .di-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 480px)  { .di-grid { grid-template-columns: 1fr; } }

.di-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.di-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.di-card-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: #f3f3f3;
  overflow: hidden;
}
.di-card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  transition: transform .35s;
}
.di-card:hover .di-card-thumb img { transform: scale(1.03); }
.di-no-image {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d8d8d8;
  color: #777;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}
.di-ai-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: #7B1FA2;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  z-index: 2;
}
.di-card-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}
.di-card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  min-height: 2.7em;
}
.di-card-title a:hover { color: var(--primary, #1E88E5); }
.di-card-code {
  margin: 0;
  font-size: 12px;
  color: #777;
}
.di-card-code strong { color: var(--primary, #1E88E5); font-weight: 700; }
.di-demo-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #ccc;
  background: #fff;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  transition: border-color .2s, color .2s, background .2s;
}
.di-demo-btn:hover {
  border-color: var(--primary, #1E88E5);
  color: var(--primary, #1E88E5);
  background: #f5f9ff;
}
.di-empty {
  text-align: center;
  padding: 60px 20px;
  color: #888;
  background: #fff;
  border: 1px dashed #ddd;
}

/* Pagination */
.di-pagination {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}
.di-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.di-pagination a,
.di-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  font-size: 13px;
  font-weight: 600;
}
.di-pagination .is-active a {
  background: var(--primary, #1E88E5);
  border-color: var(--primary, #1E88E5);
  color: #fff;
}
.di-pagination .is-disabled a,
.di-pagination .is-disabled span {
  opacity: .45;
  pointer-events: none;
}

/* Footer */
.di-footer {
  width: 100%;
  background: #1a1a1a;
  color: rgba(255,255,255,.75);
  padding: 36px 0 28px;
  text-align: center;
  margin-top: auto;
}
.di-footer-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.di-footer-brand {
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  letter-spacing: .04em;
}
.di-footer-sep { opacity: .35; }
.di-footer-tag { font-size: 13px; }
.di-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 13px;
}
.di-footer-links a { color: rgba(255,255,255,.8); }
.di-footer-links a:hover { color: #fff; }

.di-newsletter {
  max-width: 480px;
  margin: 0 auto 22px;
  text-align: center;
}
.di-newsletter-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .03em;
}
.di-newsletter-desc {
  margin: 0 0 14px;
  font-size: 13px;
  color: rgba(255,255,255,.65);
}
.di-newsletter-form {
  display: flex;
  gap: 0;
  background: #fff;
  overflow: hidden;
}
.di-newsletter-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: #222;
  outline: none;
}
.di-newsletter-form button {
  border: 0;
  background: var(--primary, #1E88E5);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .03em;
  padding: 0 18px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background .2s;
}
.di-newsletter-form button:hover { background: var(--primary-dark, #1565C0); }
.di-newsletter-msg {
  margin: 10px 0 0;
  font-size: 13px;
}
.di-newsletter-msg.is-ok { color: #81c784; }
.di-newsletter-msg.is-err { color: #ef9a9a; }
.di-copyright { margin: 0; font-size: 12px; opacity: .55; }

/* ─── İç sayfalar ─── */
.di-page-banner {
  width: 100%;
  background: linear-gradient(105deg, #0d1e37 0%, #1a3a5c 100%);
  color: #fff;
  padding: 44px 0;
  text-align: center;
}
.di-page-banner h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: .02em;
}

.di-page-content {
  width: 100%;
  flex: 1;
  padding: 40px 0 56px;
  background: #f5f6f8;
}

.di-content-panel {
  background: #fff;
  border: 1px solid #e6e6e6;
  padding: 32px 36px;
  color: #333;
  font-size: 15px;
  line-height: 1.7;
  max-width: 860px;
  margin: 0 auto;
}
.di-content-center { text-align: center; }
.di-muted { color: #777; margin: 0 0 20px; }

.content-body h1,
.content-body h2,
.content-body h3,
.content-body h4,
.di-content-panel h1,
.di-content-panel h2,
.di-content-panel h3,
.di-content-panel h4 {
  color: #1a1a1a;
  font-weight: 800;
  margin: 1.35em 0 .55em;
  line-height: 1.3;
}
.content-body h2:first-child,
.di-content-panel h2:first-child,
.content-body > *:first-child,
.di-content-panel > *:first-child { margin-top: 0; }
.content-body h2, .di-content-panel h2 { font-size: 1.4rem; }
.content-body h3, .di-content-panel h3 { font-size: 1.15rem; }
.content-body p, .di-content-panel p { margin: 0 0 1em; }
.content-body ul, .di-content-panel ul,
.content-body ol, .di-content-panel ol {
  margin: 0 0 1.2em;
  padding-left: 1.35em;
  list-style: disc;
}
.content-body li, .di-content-panel li { margin-bottom: .4em; }
.content-body a, .di-content-panel a { color: var(--primary, #1E88E5); }
.content-body img, .di-content-panel img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius, 4px);
}

/* Contact */
.di-contact-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .di-contact-grid { grid-template-columns: 1fr; }
}

.di-contact-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  padding: 28px;
}
.di-contact-card h2 {
  margin: 0 0 20px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #1a1a1a;
}

.di-contact-form .di-field { margin-bottom: 14px; }
.di-contact-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #444;
}
.di-contact-form input,
.di-contact-form textarea {
  width: 100%;
  border: 1px solid #d5d5d5;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  color: #222;
  background: #fff;
  outline: none;
  transition: border-color .15s;
}
.di-contact-form input:focus,
.di-contact-form textarea:focus {
  border-color: var(--primary, #1E88E5);
}
.di-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 600px) {
  .di-field-row { grid-template-columns: 1fr; }
}

.di-contact-info p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 14px;
  color: #444;
  line-height: 1.45;
}
.di-contact-info p:last-child { margin-bottom: 0; }
.di-contact-info i {
  color: var(--primary, #1E88E5);
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}
.di-contact-info a:hover { color: var(--primary, #1E88E5); }

.di-btn-primary {
  display: inline-block;
  background: var(--primary, #1E88E5);
  color: #fff !important;
  border: 0;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s;
}
.di-btn-primary:hover { background: var(--primary-dark, #1565C0); }

.di-alert {
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  border: 1px solid transparent;
}
.di-alert-success { background: #e8f7ee; border-color: #b7e4c7; color: #1b7a3d; }
.di-alert-danger,
.di-alert-error { background: #fdecec; border-color: #f5c2c2; color: #b42318; }
.di-alert-warning { background: #fff8e6; border-color: #ffe08a; color: #8a6d00; }

/* Cookie */
.di-cookie {
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  max-width: 480px;
  background: #1a1a1a;
  color: #fff;
  padding: 16px 18px;
  z-index: 9999;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: 0 8px 30px rgba(0,0,0,.3);
}
.di-cookie p { margin: 0; font-size: 13px; flex: 1; }
.di-cookie button {
  background: var(--primary, #1E88E5);
  color: #fff;
  border: 0;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
