/* Yeniyollar SERP — Google-style layout (mockup-aligned) */

body.yy-serp-page .yy-utility,
body.yy-serp-page .yy-top,
body.yy-serp-page .yy-topbar,
body.yy-serp-page .yy-foot,
body.yy-serp-page .yy-whatsapp-float { display: none !important; }

body.yy-serp-page { background: #fff; }

.yy-serp-shell.yy-g-mode {
  background: #fff !important;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.yy-serp-shell.yy-g-mode .yy-serp-blobs { display: none; }

.yy-serp-shell.yy-g-mode .yy-serp {
  max-width: none;
  padding: 0;
  margin: 0;
}

/* ── Sticky header ── */
.yy-g-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #ebebeb;
  padding: 12px 24px 0;
}

.yy-g-header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.yy-g-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 140px;
}

.yy-g-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.yy-g-logo span {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #0a8f66 0%, #0e7490 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.yy-g-search-wrap {
  flex: 1;
  max-width: 720px;
  position: relative;
}

.yy-g-search {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #dfe1e5;
  border-radius: 28px;
  padding: 4px 6px 4px 16px;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.08);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.yy-g-search:focus-within {
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(32, 33, 36, 0.15), 0 0 0 1px rgba(10, 143, 102, 0.25);
}

.yy-g-search input[type=search] {
  flex: 1;
  border: 0;
  outline: none;
  font-size: 16px;
  padding: 10px 8px;
  background: transparent;
  color: #202124;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.yy-g-search-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.yy-g-icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  color: #5f6368;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.yy-g-icon-btn:hover { background: #f1f3f4; }

.yy-g-search-submit {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #12a574, #0e7490);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  transition: filter 0.15s, transform 0.15s;
}

.yy-g-search-submit:hover { filter: brightness(1.08); transform: scale(1.04); }

.yy-g-header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.yy-g-safe-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #137333;
  background: #e6f4ea;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  white-space: nowrap;
}

.yy-g-safe-badge.off { color: #5f6368; background: #f1f3f4; }

.yy-g-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #0ea5e9);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* ── Tabs ── */
.yy-g-tabs {
  display: flex;
  gap: 4px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  border-bottom: 1px solid #ebebeb;
  overflow-x: auto;
}

.yy-g-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 14px;
  color: #5f6368;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color 0.15s;
}

.yy-g-tabs a:hover { color: #202124; }

.yy-g-tabs a.active {
  color: #0a8f66;
  font-weight: 600;
  border-bottom-color: #0a8f66;
}

.yy-g-tabs .tab-icon { font-size: 16px; opacity: 0.85; }

/* ── Stats bar ── */
.yy-g-stats {
  max-width: 1200px;
  margin: 0;
  padding: 14px 0 6px;
  font-size: 14px;
  color: #70757a;
}

/* ── Two-column layout ── */
.yy-g-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.yy-g-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 960px) {
  .yy-g-layout { grid-template-columns: 1fr; }
  .yy-g-knowledge { order: -1; }
  .yy-g-header-tools .yy-g-safe-badge span.txt { display: none; }
}

/* ── Result cards (Google organic) ── */
.yy-g-mode .yy-hit {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.06);
  transition: box-shadow 0.2s, border-color 0.2s;
  animation: yyGSlideIn 0.35s ease both;
}

.yy-g-mode .yy-hit:hover {
  border-color: #d2e3fc;
  box-shadow: 0 4px 16px rgba(66, 133, 244, 0.12);
  transform: none;
}

@keyframes yyGSlideIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.yy-g-mode .yy-hit .hostrow {
  margin-bottom: 6px;
}

.yy-g-mode .yy-hit .hostmark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 12px;
  background: #f1f3f4;
  color: #5f6368;
  overflow: hidden;
}

.yy-g-mode .yy-hit .hostmark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yy-g-mode .yy-hit .hostpath {
  font-size: 14px;
  color: #202124;
  font-weight: 500;
}

.yy-g-mode .yy-hit .hostpath span { color: #5f6368 !important; font-weight: 400; }

.yy-g-mode .yy-hit a.title {
  font-family: inherit;
  font-size: 20px;
  color: #1a0dab;
  line-height: 1.3;
  margin: 2px 0 4px;
}

.yy-g-mode .yy-hit a.title:hover { color: #681da8; text-decoration: underline; }

.yy-g-mode .yy-hit .snip {
  font-size: 14px;
  color: #4d5156;
  line-height: 1.58;
}

.yy-g-mode .yy-hit .sitelinks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.yy-g-mode .yy-hit .sitelinks a {
  font-size: 13px;
  padding: 6px 12px;
  background: #e8f0fe;
  color: #1967d2 !important;
  border-radius: 20px;
  text-decoration: none !important;
  font-weight: 500;
  transition: background 0.15s;
}

.yy-g-mode .yy-hit .sitelinks a:hover { background: #d2e3fc; }

.yy-g-save-btn {
  float: right;
  font-size: 12px;
  color: #5f6368;
  background: #f8f9fa;
  border: 1px solid #dadce0;
  border-radius: 8px;
  padding: 4px 10px;
  cursor: pointer;
}

/* ── Knowledge panel ── */
.yy-g-knowledge {
  position: sticky;
  top: 120px;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(60, 64, 67, 0.1);
  animation: yyGSlideIn 0.45s ease both;
}

.yy-g-kp-hero {
  height: 140px;
  background: linear-gradient(135deg, #fce7f3 0%, #dbeafe 50%, #d1fae5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  position: relative;
}

.yy-g-kp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(124, 58, 237, 0.15), transparent 60%);
}

.yy-g-kp-body { padding: 16px 18px 18px; }

.yy-g-kp-body h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #202124;
  line-height: 1.25;
}

.yy-g-kp-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5f6368;
  margin: 14px 0 8px;
}

.yy-g-kp-desc {
  font-size: 14px;
  line-height: 1.55;
  color: #4d5156;
}

.yy-g-kp-more {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  color: #1a73e8;
  text-decoration: none;
  font-weight: 500;
}

.yy-g-kp-more:hover { text-decoration: underline; }

.yy-g-kp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.yy-g-kp-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f8f9fa;
  border-radius: 12px;
  text-decoration: none;
  color: #202124;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s;
}

.yy-g-kp-tile:hover { background: #e8f0fe; }

.yy-g-kp-tile .ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.yy-g-kp-tile:nth-child(6n+1) .ico { background: #dcfce7; }
.yy-g-kp-tile:nth-child(6n+2) .ico { background: #ede9fe; }
.yy-g-kp-tile:nth-child(6n+3) .ico { background: #dbeafe; }
.yy-g-kp-tile:nth-child(6n+4) .ico { background: #ffedd5; }
.yy-g-kp-tile:nth-child(6n+5) .ico { background: #fce7f3; }
.yy-g-kp-tile:nth-child(6n+6) .ico { background: #ccfbf1; }

.yy-g-kp-footer {
  padding: 12px 18px;
  border-top: 1px solid #ebebeb;
  text-align: center;
}

.yy-g-kp-footer button {
  background: none;
  border: 0;
  color: #1a73e8;
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
}

/* ── Related searches ── */
.yy-g-related {
  margin: 32px 0 24px;
  padding-top: 24px;
  border-top: 1px solid #ebebeb;
}

.yy-g-related h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #202124;
  margin: 0 0 14px;
}

.yy-g-related-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.yy-g-related-pills a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: #202124;
  transition: transform 0.15s, box-shadow 0.15s;
}

.yy-g-related-pills a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.yy-g-related-pills a:nth-child(6n+1) { background: #dcfce7; }
.yy-g-related-pills a:nth-child(6n+2) { background: #ede9fe; }
.yy-g-related-pills a:nth-child(6n+3) { background: #dbeafe; }
.yy-g-related-pills a:nth-child(6n+4) { background: #ffedd5; }
.yy-g-related-pills a:nth-child(6n+5) { background: #fce7f3; }
.yy-g-related-pills a:nth-child(6n+6) { background: #e0e7ff; }

.yy-g-related-pills .pill-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* ── Pagination ── */
.yy-g-mode .yy-pager {
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  padding-bottom: 24px;
}

.yy-g-mode .yy-pager a,
.yy-g-mode .yy-pager .pg-num {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: #1a73e8;
  background: transparent;
  padding: 0 12px;
  box-shadow: none;
}

.yy-g-mode .yy-pager a:hover { background: #f1f3f4; }

.yy-g-mode .yy-pager .pg-num.current {
  background: #0a8f66;
  color: #fff;
  font-weight: 700;
}

.yy-g-mode .yy-pager .pg-label {
  color: #70757a;
  font-size: 14px;
  padding: 0 8px;
}

/* ── Advanced tools (collapsed) ── */
.yy-g-advanced {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 8px;
}

.yy-g-advanced details {
  font-size: 13px;
  color: #5f6368;
}

.yy-g-advanced summary {
  cursor: pointer;
  color: #1a73e8;
  font-weight: 500;
}

/* ── Instant / nearby in Google mode ── */
.yy-g-mode .yy-nearby-pack {
  border-radius: 20px !important;
  margin-bottom: 20px !important;
}

.yy-g-mode .yy-ia-card {
  border-radius: 16px;
  margin-bottom: 12px;
}

.yy-g-mode .yy-chips a {
  border-radius: 20px;
  font-weight: 500;
}

/* ── PAA ── */
.yy-g-mode .yy-paa details {
  border-radius: 12px;
  border-color: #e8eaed;
  margin-bottom: 8px;
}

html[data-theme="dark"] body.yy-serp-page { background: #202124; }
html[data-theme="dark"] .yy-g-header,
html[data-theme="dark"] .yy-g-tabs { background: #202124; border-color: #3c4043; }
html[data-theme="dark"] .yy-g-search { background: #303134; border-color: #5f6368; }
html[data-theme="dark"] .yy-g-search input { color: #e8eaed; }
html[data-theme="dark"] .yy-g-mode .yy-hit { background: #303134; border-color: #3c4043; }
html[data-theme="dark"] .yy-g-mode .yy-hit a.title { color: #8ab4f8; }
html[data-theme="dark"] .yy-g-knowledge { background: #303134; border-color: #3c4043; }
