/* Cep sohbet portal tarzı — dullar.net (açık tema, mavi/yeşil) */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cep-blue: #1565c0;
  --cep-blue-mid: #1976d2;
  --cep-blue-dark: #0d47a1;
  --cep-green: #2e7d32;
  --cep-green-light: #43a047;
  --cep-green-soft: #e8f5e9;
  --cep-orange: #ef6c00;
  --cep-orange-soft: #fff3e0;
  --bg-page: #eceff1;
  --bg-white: #ffffff;
  --bg-card: #fafafa;
  --text: #263238;
  --text-muted: #607d8b;
  --border: #cfd8dc;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 28px rgba(13, 71, 161, 0.12);
  --radius: 8px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: Consolas, "Courier New", monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg-page);
  min-height: 100vh;
}

a {
  color: var(--cep-blue-mid);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ========== Site üst şerit (cep sohbet tarzı) ========== */
.site-top {
  background: linear-gradient(180deg, var(--cep-blue-mid) 0%, var(--cep-blue-dark) 100%);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.site-top-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-logo:hover {
  text-decoration: none;
  opacity: 0.95;
}

.site-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-logo:hover .site-logo-img {
  transform: scale(1.04);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 4px;
}

.site-nav a:hover {
  text-decoration: underline;
}

.nav-cta {
  background: var(--cep-green-light) !important;
  color: #fff !important;
  padding: 8px 16px !important;
  border-radius: 6px;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--cep-green) !important;
  text-decoration: none !important;
}

/* ========== Hero + giriş kartı ========== */
.hero {
  padding: 36px 16px 48px;
  background: linear-gradient(180deg, #e3f2fd 0%, var(--bg-page) 45%);
}

.hero-inner {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cep-orange);
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 700;
  color: var(--cep-blue-dark);
  margin-bottom: 8px;
}

.hero-lead {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.login-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-lg);
  text-align: left;
}

.login-card h2 {
  font-size: 1.1rem;
  color: var(--cep-blue-dark);
  margin-bottom: 6px;
  text-align: center;
}

.login-hint {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 20px;
}

.login-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.login-form label span {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 12px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  margin-bottom: 16px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-form input:focus {
  outline: none;
  border-color: var(--cep-blue-mid);
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.2);
}

.btn-connect {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--cep-green-light), var(--cep-green));
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(46, 125, 50, 0.35);
  transition: transform 0.15s, box-shadow 0.2s;
}

.btn-connect:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(46, 125, 50, 0.45);
}

.btn-connect:active {
  transform: translateY(0);
}

/* İndirme şeridi */
.download-strip {
  max-width: 1100px;
  margin: -20px auto 0;
  padding: 0 16px 40px;
}

.download-strip-inner {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  box-shadow: var(--shadow);
}

.download-strip-title {
  width: 100%;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--cep-blue-dark);
  margin-bottom: 4px;
}

.download-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.download-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.download-links a:hover {
  background: var(--cep-orange-soft);
  border-color: #ffcc80;
  text-decoration: none;
}

/* Özellik kartları */
.features {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
}

.feature-ico {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 1.05rem;
  color: var(--cep-blue-dark);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
}

.cta-banner {
  max-width: 1100px;
  margin: 0 auto 40px;
  padding: 0 16px;
}

.cta-banner-inner {
  background: linear-gradient(135deg, var(--cep-blue-mid), var(--cep-blue-dark));
  color: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-banner-inner h2 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.cta-banner-inner p {
  font-size: 14px;
  opacity: 0.92;
  margin-bottom: 16px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.btn-white {
  display: inline-block;
  padding: 12px 28px;
  background: #fff;
  color: var(--cep-blue-dark) !important;
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none !important;
  font-size: 14px;
}

.btn-white:hover {
  background: var(--cep-green-soft);
}

/* SEO / içerik bloğu */
.content-block {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

.content-block h2 {
  font-size: 1.25rem;
  color: var(--cep-blue-dark);
  margin-bottom: 12px;
}

.content-block p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.content-block .article-body h3 {
  font-size: 1.05rem;
  color: var(--cep-blue-dark);
  margin: 22px 0 10px;
  font-weight: 600;
}

.content-block .article-body ul {
  margin: 0 0 14px 1.1rem;
  font-size: 14px;
  color: var(--text-muted);
}

.content-block .article-body li {
  margin-bottom: 6px;
}

.content-block .article-body strong {
  color: var(--text);
}

.page-intro {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px 16px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.page-intro strong {
  color: var(--cep-blue-dark);
}

body.page-chat .page-intro--chat {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 10px 16px 6px;
  font-size: 13px;
  flex-shrink: 0;
}

/* İç sayfalar (sözleşme, hakkımızda, iletişim) */
.page-static {
  max-width: 800px;
  margin: 0 auto;
  padding: 28px 16px 56px;
}

.page-static h1 {
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  color: var(--cep-blue-dark);
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-static .page-lead {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.65;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.page-static .page-lead strong {
  color: var(--text);
}

.page-static section {
  margin-bottom: 28px;
}

.page-static h2 {
  font-size: 1.08rem;
  margin-bottom: 12px;
  color: var(--cep-blue-dark);
  font-weight: 600;
}

.page-static p,
.page-static li {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.65;
}

.page-static ul,
.page-static ol {
  margin: 0 0 14px 1.2rem;
}

.page-static li {
  margin-bottom: 8px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
}

.contact-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--cep-blue-mid);
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.15);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form .btn-connect {
  width: auto;
  min-width: 200px;
  align-self: flex-start;
}

.contact-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

.contact-note code {
  font-size: 12px;
  padding: 2px 6px;
  background: #eceff1;
  border-radius: 4px;
}

/* Footer */
.site-footer {
  background: #37474f;
  color: rgba(255, 255, 255, 0.85);
  padding: 28px 16px;
  font-size: 13px;
}

.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* ========== Sohbet sayfası (aynı portal dili) ========== */
body.page-chat {
  overflow: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-page);
}

.page-chat .site-top {
  flex-shrink: 0;
}

.chat-shell {
  flex: 1;
  min-height: 0;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 10px;
  display: grid;
  grid-template-columns: 260px 1fr;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "side head"
    "side main"
    "side foot";
  gap: 10px;
}

@media (max-width: 900px) {
  .chat-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr auto;
    grid-template-areas:
      "head"
      "side"
      "main"
      "foot";
    height: auto;
    min-height: 0;
    flex: 1;
    overflow-y: auto;
  }

  body.page-chat {
    overflow: auto;
    height: auto;
    min-height: 100vh;
  }

  .chat-sidebar {
    max-height: 200px;
  }
}

.chat-sidebar {
  grid-area: side;
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chat-brand {
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fafafa, #fff);
}

.chat-brand a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
}

.chat-brand a:hover {
  color: var(--cep-blue-mid);
}

.chat-brand small {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.chat-sidebar-search {
  padding: 10px 12px;
}

.chat-sidebar-search input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  background: #fafafa;
}

.chat-sidebar-search input:focus {
  outline: none;
  border-color: var(--cep-blue-mid);
}

.search-wrap-chat {
  position: relative;
}

.search-wrap-chat::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  opacity: 0.4;
  background: var(--text);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") center / contain no-repeat;
}

.room-label-chat {
  padding: 6px 14px 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.room-list-chat {
  flex: 1;
  overflow-y: auto;
  padding: 0 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.room-item-chat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s;
}

.room-item-chat:hover {
  background: #f5f5f5;
}

.room-item-chat.active {
  background: var(--cep-green-soft);
  border-color: #a5d6a7;
}

.room-ico-chat {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #eceff1;
  display: grid;
  place-items: center;
  font-size: 16px;
}

.room-item-chat.active .room-ico-chat {
  background: #c8e6c9;
}

.room-meta-chat {
  flex: 1;
  min-width: 0;
}

.room-title-chat {
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.room-sub-chat {
  font-size: 11px;
  color: var(--text-muted);
}

.room-badge-chat {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e3f2fd;
  color: var(--cep-blue-dark);
}

.room-item-chat.active .room-badge-chat {
  background: var(--cep-green);
  color: #fff;
}

.chat-sidebar-footer {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pulse-chat {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cep-green-light);
  animation: pulse-cep 2s ease-in-out infinite;
}

@keyframes pulse-cep {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

.chat-header-bar {
  grid-area: head;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.chat-header-bar h1 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--cep-blue-dark);
}

.chat-header-bar p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.status-pill-chat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--cep-green-soft);
  border: 1px solid #a5d6a7;
  font-size: 12px;
  font-weight: 600;
  color: var(--cep-green);
}

.status-pill-chat .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cep-green-light);
}

.btn-icon-chat {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fafafa;
  color: var(--cep-blue-dark);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.btn-icon-chat:hover {
  background: #e3f2fd;
  border-color: #90caf9;
}

.chat-main-area {
  grid-area: main;
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 0;
}

.messages-chat {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #f5f5f5;
}

.day-sep-chat {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
  font-size: 12px;
  color: var(--text-muted);
}

.day-sep-chat::before,
.day-sep-chat::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.msg-row-chat {
  display: flex;
  gap: 10px;
  max-width: min(92%, 520px);
  animation: fadeIn-cep 0.3s ease;
}

@keyframes fadeIn-cep {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.msg-row-chat.outgoing {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.avatar-chat {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--cep-blue-mid);
}

.msg-body-chat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.msg-row-chat.outgoing .msg-body-chat {
  align-items: flex-end;
}

.msg-name-chat {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  padding-left: 4px;
}

.msg-row-chat.outgoing .msg-name-chat {
  padding-left: 0;
  padding-right: 4px;
}

.bubble-chat {
  padding: 10px 14px;
  border-radius: 14px 14px 14px 4px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.msg-row-chat.outgoing .bubble-chat {
  border-radius: 14px 14px 4px 14px;
  background: #e3f2fd;
  border-color: #90caf9;
}

.bubble-chat p {
  margin: 0;
  font-size: 14px;
}

.bubble-chat p + p {
  margin-top: 6px;
}

.msg-time-chat {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--mono);
  padding: 0 4px;
}

.typing-hint-chat {
  padding: 0 14px 8px;
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  background: #f5f5f5;
}

.typing-hint-chat strong {
  color: var(--cep-orange);
  font-style: normal;
}

.chat-composer-bar {
  grid-area: foot;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px;
  background: #fafafa;
  border-top: 1px solid var(--border);
}

.composer-input-chat {
  flex: 1;
  display: flex;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.composer-input-chat:focus-within {
  border-color: var(--cep-blue-mid);
  box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.15);
}

.composer-input-chat textarea {
  flex: 1;
  min-height: 40px;
  max-height: 100px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  resize: none;
  outline: none;
  line-height: 1.4;
  color: var(--text);
}

.btn-send-chat {
  flex-shrink: 0;
  height: 44px;
  padding: 0 20px;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(180deg, var(--cep-green-light), var(--cep-green));
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
}

.btn-send-chat:hover {
  filter: brightness(1.05);
}

.messages-chat::-webkit-scrollbar,
.room-list-chat::-webkit-scrollbar {
  width: 6px;
}

.messages-chat::-webkit-scrollbar-thumb,
.room-list-chat::-webkit-scrollbar-thumb {
  background: #bdbdbd;
  border-radius: 999px;
}
