/* Zengin Sonuçlar Testi — iPhone 17 Pro Max mobil önizleme */

#admin-view-richtest .rich-test-toolbar {
  margin-bottom: 20px;
}

#admin-view-richtest .rich-test-url-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

#admin-view-richtest .rich-test-url-input {
  flex: 1 1 280px;
  min-width: 0;
  height: 46px !important;
}

#admin-view-richtest #rich-test-status.is-err {
  color: #f87171;
}

#admin-view-richtest .rich-test-workspace {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#admin-view-richtest .rich-test-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 18px;
  align-items: start;
}

@media (max-width: 1100px) {
  #admin-view-richtest .rich-test-split {
    grid-template-columns: 1fr;
  }
}

#admin-view-richtest .rich-test-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

#admin-view-richtest .rich-test-panel-head h3 {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d4af6a;
}

#admin-view-richtest .rich-test-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(212, 175, 106, 0.12);
  border: 1px solid rgba(212, 175, 106, 0.25);
  color: #e8c882;
}

#admin-view-richtest .rich-test-device-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#admin-view-richtest .rich-test-code-panel,
#admin-view-richtest .rich-test-device-col,
#admin-view-richtest .rich-test-screenshot-panel {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
}

#admin-view-richtest .rich-test-code {
  margin: 0;
  max-height: 520px;
  overflow: auto;
  padding: 16px;
  border-radius: 12px;
  background: #0a0e16;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-family: "Cascadia Code", "Fira Code", Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.55;
  color: #a8d4a0;
  white-space: pre-wrap;
  word-break: break-word;
}

#admin-view-richtest .rich-test-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

#admin-view-richtest .rich-type-chip {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93c5fd;
}

#admin-view-richtest .rich-type-chip.is-empty {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #7a8ba8;
}

/* Google tarzı sekme */
#admin-view-richtest .rich-device-premium {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(212, 175, 106, 0.08), transparent 60%),
    rgba(0, 0, 0, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

#admin-view-richtest .rich-badge-live:not(:empty) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#admin-view-richtest .rich-badge-live:not(:empty)::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.8);
}

#admin-view-richtest .rich-test-google-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#admin-view-richtest .rich-gtab {
  padding: 10px 16px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a8ba8;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

#admin-view-richtest .rich-gtab.is-on {
  color: #93c5fd;
  border-bottom-color: #3b82f6;
}

/* iPhone 17 Pro Max çerçeve */
#admin-view-richtest .iphone-17-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  padding: 12px 0 0;
  filter: drop-shadow(0 32px 48px rgba(0, 0, 0, 0.45));
}

#admin-view-richtest .iphone-17-shell {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 13px;
  border-radius: 56px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.22) 0%, transparent 28%),
    linear-gradient(145deg, #d1d1d6 0%, #6e6e73 22%, #2c2c2e 48%, #9a9aa0 72%, #48484a 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 0 0 1px rgba(0, 0, 0, 0.65),
    0 24px 50px rgba(0, 0, 0, 0.5);
}

#admin-view-richtest .iphone-17-side {
  position: absolute;
  background: linear-gradient(180deg, #5c5c60, #2e2e32);
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

#admin-view-richtest .iphone-17-side-left {
  left: -3px;
  top: 148px;
  width: 3px;
  height: 38px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 58px 0 0 #3a3a3e,
    0 58px 0 1px rgba(255, 255, 255, 0.06),
    0 108px 0 0 #3a3a3e,
    0 108px 0 1px rgba(255, 255, 255, 0.06);
}

#admin-view-richtest .iphone-17-side-right {
  right: -3px;
  top: 182px;
  width: 3px;
  height: 72px;
}

#admin-view-richtest .iphone-17-screen-wrap {
  position: relative;
  border-radius: 48px;
  overflow: hidden;
  background: #000;
  border: 2px solid rgba(0, 0, 0, 0.85);
}

#admin-view-richtest .iphone-dynamic-island {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 32px;
  border-radius: 22px;
  background: #000;
  z-index: 5;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

#admin-view-richtest .iphone-17-screen {
  position: relative;
  width: 100%;
  height: 760px;
  background: #000;
  overflow: hidden;
}

#admin-view-richtest .iphone-shot-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

#admin-view-richtest .iphone-shot-scroll::-webkit-scrollbar {
  width: 4px;
}

#admin-view-richtest .iphone-shot-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 4px;
}

#admin-view-richtest .iphone-shot-scroll[hidden] {
  display: none !important;
}

#admin-view-richtest .iphone-preview-frame {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 820px;
  height: auto;
  border: 0;
  background: #fff;
  margin: 0 auto;
}

#admin-view-richtest .iphone-preview-frame[hidden] {
  display: none !important;
}

#admin-view-richtest .iphone-shot-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  background: #fff;
  object-fit: contain;
  object-position: center top;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
}

#admin-view-richtest .iphone-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 48px 20px 20px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #64748b;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  z-index: 3;
}

#admin-view-richtest .iphone-loading-ring {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(212, 175, 106, 0.25);
  border-top-color: #d4af6a;
  animation: rich-spin 0.9s linear infinite;
}

@keyframes rich-spin {
  to { transform: rotate(360deg); }
}

#admin-view-richtest .iphone-loading[hidden] {
  display: none !important;
}

#admin-view-richtest .iphone-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 20px;
  text-align: center;
  font-size: 0.76rem;
  color: #5f6368;
  background: #f8f9fa;
  z-index: 1;
}

#admin-view-richtest .iphone-empty[hidden] {
  display: none !important;
}

/* SERP önizleme */
#admin-view-richtest .rich-test-serp-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 480px;
  overflow: auto;
  padding-right: 4px;
}

#admin-view-richtest .rich-test-serp-empty {
  padding: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: #7a8ba8;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

#admin-view-richtest .rich-serp-card {
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  color: #202124;
  border: 1px solid #dfe1e5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

#admin-view-richtest .rich-serp-url {
  font-size: 0.72rem;
  color: #006621;
  margin-bottom: 4px;
  word-break: break-all;
}

#admin-view-richtest .rich-serp-title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 400;
  color: #1a0dab;
  line-height: 1.3;
}

#admin-view-richtest .rich-serp-desc {
  margin: 0;
  font-size: 0.78rem;
  color: #4d5156;
  line-height: 1.45;
}

#admin-view-richtest .rich-serp-badge {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a73e8;
  margin-bottom: 6px;
}

#admin-view-richtest .rich-serp-meta {
  font-size: 0.7rem;
  color: #70757a;
  margin-top: 6px;
}

#admin-view-richtest .rich-serp-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: #188038;
  margin-bottom: 4px;
}

#admin-view-richtest .rich-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#admin-view-richtest .rich-faq-item {
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8f9fa;
  border: 1px solid #e8eaed;
}

#admin-view-richtest .rich-faq-item strong {
  display: block;
  font-size: 0.78rem;
  color: #1a0dab;
  margin-bottom: 4px;
}

#admin-view-richtest .rich-faq-item span {
  font-size: 0.72rem;
  color: #4d5156;
}

#admin-view-richtest .rich-serp-crumbs {
  font-size: 0.75rem;
  color: #70757a;
}

#admin-view-richtest .rich-test-ext-link {
  text-decoration: none;
  white-space: nowrap;
}
