/* Yeniyollar SERP — vivid, international, animated UI */

.yy-serp-shell {
  --yy-vivid-1: #0a8f66;
  --yy-vivid-2: #0e7490;
  --yy-vivid-3: #7c3aed;
  --yy-vivid-4: #ea580c;
  --yy-vivid-5: #2563eb;
  background:
    radial-gradient(ellipse 900px 500px at 5% -5%, rgba(10,143,102,0.28), transparent 60%),
    radial-gradient(ellipse 700px 400px at 95% 2%, rgba(124,58,237,0.18), transparent 55%),
    radial-gradient(ellipse 600px 350px at 50% 100%, rgba(14,116,144,0.14), transparent 50%),
    linear-gradient(165deg, #dff5ec 0%, #eef8f3 35%, #f8faf9 70%, #fff 100%) !important;
}

.yy-serp-blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.yy-serp-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  animation: yyBlobFloat 18s ease-in-out infinite;
}

.yy-serp-blob:nth-child(1) {
  width: 320px; height: 320px;
  background: linear-gradient(135deg, #34d399, #0ea5e9);
  top: -80px; left: -60px;
  animation-delay: 0s;
}

.yy-serp-blob:nth-child(2) {
  width: 280px; height: 280px;
  background: linear-gradient(135deg, #a78bfa, #f472b6);
  top: 10%; right: -40px;
  animation-delay: -6s;
  animation-duration: 22s;
}

.yy-serp-blob:nth-child(3) {
  width: 240px; height: 240px;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  bottom: 15%; left: 20%;
  animation-delay: -12s;
  animation-duration: 20s;
  opacity: 0.3;
}

@keyframes yyBlobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(24px, -18px) scale(1.06); }
  66% { transform: translate(-16px, 12px) scale(0.94); }
}

.yy-serp { z-index: 1; }

.yy-serp-brand {
  background: linear-gradient(120deg, #066b4c 0%, #0e7490 45%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: yyBrandShine 4s ease-in-out infinite;
}

@keyframes yyBrandShine {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
}

/* Instant answer cards */
.yy-ia-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}

.yy-ia-card {
  position: relative;
  border-radius: 18px;
  padding: 16px 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 12px 40px rgba(12, 40, 32, 0.08);
  backdrop-filter: blur(12px);
  animation: yyCardIn 0.5s ease both;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.yy-ia-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(12, 40, 32, 0.12);
}

.yy-ia-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: 18px 18px 0 0;
}

.yy-ia-card.yy-ia-weather { background: linear-gradient(135deg, rgba(224,242,254,0.95), rgba(255,255,255,0.85)); }
.yy-ia-card.yy-ia-weather::before { background: linear-gradient(90deg, #0ea5e9, #38bdf8); }
.yy-ia-card.yy-ia-fx { background: linear-gradient(135deg, rgba(254,249,195,0.95), rgba(255,255,255,0.85)); }
.yy-ia-card.yy-ia-fx::before { background: linear-gradient(90deg, #eab308, #f59e0b); }
.yy-ia-card.yy-ia-calculator { background: linear-gradient(135deg, rgba(237,233,254,0.95), rgba(255,255,255,0.85)); }
.yy-ia-card.yy-ia-calculator::before { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.yy-ia-card.yy-ia-dictionary { background: linear-gradient(135deg, rgba(255,237,213,0.95), rgba(255,255,255,0.85)); }
.yy-ia-card.yy-ia-dictionary::before { background: linear-gradient(90deg, #ea580c, #fb923c); }
.yy-ia-card.yy-ia-default { background: linear-gradient(135deg, rgba(236,253,245,0.95), rgba(255,255,255,0.88)); }
.yy-ia-card.yy-ia-default::before { background: linear-gradient(90deg, #0a8f66, #14b8a6); }

.yy-ia-card .yy-ia-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 12px;
  font-size: 18px;
  margin-bottom: 8px;
  background: rgba(255,255,255,0.7);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.yy-ia-card h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--yy-ink);
  font-family: var(--yy-display, Georgia, serif);
}

.yy-ia-card .desc {
  font-size: 15px;
  line-height: 1.5;
  color: #334155;
}

/* Nearby / local pack — hero card */
.yy-nearby-pack {
  border: none !important;
  border-radius: 20px !important;
  background: linear-gradient(145deg, rgba(255,255,255,0.92), rgba(236,253,245,0.88)) !important;
  box-shadow: 0 20px 60px rgba(10,143,102,0.15), 0 0 0 1px rgba(10,143,102,0.12) !important;
  margin-bottom: 24px !important;
  animation: yyCardIn 0.55s ease both;
  overflow: hidden;
}

.yy-nearby-pack.yy-nearby-regional {
  background: linear-gradient(145deg, rgba(255,255,255,0.94), rgba(224,242,254,0.88)) !important;
  box-shadow: 0 20px 60px rgba(14,116,144,0.14), 0 0 0 1px rgba(14,116,144,0.12) !important;
}

.yy-nearby-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 18px 8px;
  background: linear-gradient(90deg, rgba(10,143,102,0.08), transparent);
}

.yy-nearby-regional .yy-nearby-head {
  background: linear-gradient(90deg, rgba(14,116,144,0.1), transparent);
}

.yy-nearby-pin {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: linear-gradient(135deg, #12a574, #0e7490);
  color: #fff;
  box-shadow: 0 8px 20px rgba(10,143,102,0.35);
  animation: yyPinPulse 2.5s ease-in-out infinite;
}

.yy-nearby-regional .yy-nearby-pin {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  box-shadow: 0 8px 20px rgba(14,116,144,0.3);
}

@keyframes yyPinPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.yy-nearby-head h2 {
  margin: 0 0 4px !important;
  padding: 0 !important;
  font-size: 1.2rem !important;
  font-weight: 700;
  color: var(--yy-brand-deep);
  font-family: var(--yy-display, Georgia, serif);
}

.yy-nearby-sub {
  margin: 0;
  font-size: 13px;
  color: var(--yy-muted);
  line-height: 1.4;
}

.yy-nearby-map {
  border: 0;
  width: 100%;
  height: 240px;
  display: block;
}

.yy-nearby-list {
  list-style: none;
  margin: 0;
  padding: 8px 14px 14px;
}

.yy-nearby-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(10,143,102,0.1);
  transition: background 0.15s, transform 0.15s;
  animation: yyListIn 0.4s ease both;
}

.yy-nearby-list li:hover {
  background: #fff;
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(10,143,102,0.08);
}

.yy-nearby-list li:nth-child(1) { animation-delay: 0.05s; }
.yy-nearby-list li:nth-child(2) { animation-delay: 0.1s; }
.yy-nearby-list li:nth-child(3) { animation-delay: 0.15s; }
.yy-nearby-list li:nth-child(4) { animation-delay: 0.2s; }
.yy-nearby-list li:nth-child(5) { animation-delay: 0.25s; }

@keyframes yyListIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

.yy-nearby-kind {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(10,143,102,0.12);
  color: #066b4c;
}

.yy-nearby-dist {
  color: #0a8f66;
  font-weight: 700;
  font-size: 13px;
}

.yy-nearby-list a[href^="tel:"] {
  font-size: 13px;
  font-weight: 600;
  color: #0e7490;
  text-decoration: none;
}

.yy-nearby-hours {
  font-size: 12px;
  color: #5b6b7c;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yy-nearby-open {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.yy-nearby-open-yes {
  background: rgba(10, 143, 102, 0.14);
  color: #066b4c;
}

.yy-nearby-open-no {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

.yy-nearby-addr {
  font-size: 12px;
  color: #64748b;
  max-width: 260px;
}

.yy-geo-loc-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 20px 10px;
  border-top: 1px solid rgba(10, 143, 102, 0.08);
  background: rgba(255, 255, 255, 0.45);
}

.yy-geo-loc-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.yy-geo-chip {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(10, 143, 102, 0.08);
  color: #0a5c44;
  text-decoration: none;
}

.yy-geo-chip.active {
  background: linear-gradient(135deg, #12a574, #0e7490);
  color: #fff;
}

.yy-geo-save {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px dashed rgba(10, 143, 102, 0.35);
  background: transparent;
  color: #0a5c44;
  cursor: pointer;
}

.yy-ai-summary {
  margin: 0 0 16px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(10, 143, 102, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.18);
}

.yy-ai-summary-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 15px;
  color: #312e81;
}

.yy-ai-summary-icon {
  font-size: 18px;
}

.yy-ai-summary-text {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.55;
  color: #1e293b;
}

.yy-ai-summary-bullets {
  margin: 0 0 10px 18px;
  font-size: 13px;
  color: #334155;
}

.yy-ai-summary-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.yy-ai-summary-sources a {
  font-size: 12px;
  color: #0e7490;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.65);
  padding: 4px 10px;
  border-radius: 999px;
}

.yy-nearby-links {
  padding: 0 18px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.yy-nearby-links a {
  font-size: 13px;
  font-weight: 600;
  color: #fff !important;
  background: linear-gradient(135deg, #12a574, #0e7490);
  padding: 8px 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.15s, filter 0.15s;
}

.yy-nearby-links a:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

/* Search hits */
.yy-hit {
  padding: 14px 16px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(10,143,102,0.1);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.yy-hit:hover {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 10px 32px rgba(10,143,102,0.1);
  transform: translateY(-1px);
}

.yy-hit .hostmark {
  width: 22px; height: 22px;
  border-radius: 7px;
  font-size: 11px;
  box-shadow: 0 2px 8px rgba(10,143,102,0.25);
}

.yy-chips a {
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(236,253,245,0.8));
  border-color: rgba(10,143,102,0.2);
  font-weight: 600;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.yy-chips a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(10,143,102,0.15);
  background: #fff;
}

.yy-serp-tabs a.active {
  background: linear-gradient(180deg, transparent 60%, rgba(10,143,102,0.12));
  border-radius: 8px 8px 0 0;
}

.yy-serp-meta .yy-badge-organic {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
  font-size: 12px;
  font-weight: 700;
  animation: yyBadgePop 0.4s ease both;
}

.yy-serp-meta .yy-badge-noads {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  margin-left: 8px;
}

@keyframes yyBadgePop {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes yyCardIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

#yy-serp-loading.yy-shimmer {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #0a8f66, #0ea5e9, #7c3aed, #0a8f66);
  background-size: 300% 100%;
  animation: yyShimmer 1.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes yyShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

html[data-theme="dark"] .yy-serp-shell {
  background:
    radial-gradient(ellipse 900px 500px at 5% -5%, rgba(46,207,150,0.15), transparent 60%),
    radial-gradient(ellipse 700px 400px at 95% 2%, rgba(124,58,237,0.12), transparent 55%),
    linear-gradient(165deg, #0a1210 0%, #0e1815 50%, #0c1412 100%) !important;
}

html[data-theme="dark"] .yy-hit {
  background: rgba(18,32,28,0.65);
  border-color: rgba(46,207,150,0.15);
}

html[data-theme="dark"] .yy-nearby-pack {
  background: linear-gradient(145deg, rgba(18,32,28,0.95), rgba(12,24,20,0.9)) !important;
}

html[data-theme="dark"] .yy-ia-card { border-color: rgba(46,207,150,0.2); }
html[data-theme="dark"] .yy-ia-card .desc { color: #c5d4ce; }

@media (prefers-reduced-motion: reduce) {
  .yy-serp-blob, .yy-nearby-pin, .yy-serp-brand { animation: none !important; }
}
