/* Proxy test page styles — extends /assets/site.css */

body.proxy-body {
  background: var(--ls-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.proxy-header {
  background: var(--ls-navy);
  color: #fff;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 60px;
  border-bottom: 1px solid #000;
  position: relative;
  z-index: 2;
}

.proxy-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.proxy-header .brand-logo {
  height: 28px;
  width: auto;
  display: block;
}

.proxy-header .brand-name {
  color: #fff;
}

.proxy-main {
  flex: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  width: 100%;
}

.proxy-hero {
  text-align: center;
  margin-bottom: 40px;
}

.proxy-hero h1 {
  font-size: 36px;
  font-weight: 900;
  color: var(--ls-navy);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.proxy-hero .tagline {
  font-size: 16px;
  color: var(--ls-gray);
  margin-bottom: 28px;
}

.url-form {
  max-width: 720px;
  margin: 0 auto;
}

.url-input-wrap {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--ls-border);
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
  box-shadow: 0 1px 3px rgba(14, 29, 61, 0.05), 0 8px 24px rgba(14, 29, 61, 0.06);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.url-input-wrap:focus-within {
  border-color: var(--ls-blue);
  box-shadow: 0 0 0 3px rgba(0, 175, 215, 0.15), 0 8px 24px rgba(14, 29, 61, 0.08);
}

.protocol-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ls-gray);
  padding-right: 12px;
  border-right: 1px solid var(--ls-border);
  margin-right: 14px;
  flex-shrink: 0;
}

.protocol-badge svg {
  width: 14px;
  height: 14px;
}

.url-input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  color: var(--ls-navy);
  padding: 8px 4px;
  min-width: 0;
}

.url-input::placeholder {
  color: var(--ls-gray);
}

.url-submit {
  flex-shrink: 0;
  background: var(--ls-blue);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 10px 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
}

.url-submit:hover {
  background: var(--ls-blue-dark);
}

.url-submit svg {
  width: 14px;
  height: 14px;
}

.search-engine-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--ls-gray);
}

.search-engine-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 600;
}

.search-engine-row input[type="radio"] {
  accent-color: var(--ls-blue);
}

.quicklinks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 12px;
  margin: 32px auto 0;
  max-width: 720px;
}

.quicklink {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  background: #fff;
  border: 1px solid var(--ls-border);
  border-radius: 10px;
  color: var(--ls-navy);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  transition: transform 0.12s, border-color 0.12s, box-shadow 0.12s;
  cursor: pointer;
}

.quicklink:hover {
  transform: translateY(-2px);
  border-color: var(--ls-blue);
  box-shadow: var(--ls-shadow-md);
}

.quicklink-tile {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.browser-frame {
  background: #fff;
  border: 1px solid var(--ls-border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 40px;
  box-shadow: var(--ls-shadow-md);
}

.browser-chrome {
  background: #eef2f6;
  border-bottom: 1px solid var(--ls-border);
}

.tab-row {
  display: flex;
  gap: 2px;
  padding: 8px 10px 0;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: #fff;
  border: 1px solid var(--ls-border);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--ls-navy);
  max-width: 220px;
}

.tab-favicon {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--ls-blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 900;
  flex-shrink: 0;
}

.tab-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tab-close {
  color: var(--ls-gray);
  padding: 0 2px;
  font-weight: 900;
  cursor: pointer;
  line-height: 1;
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #fff;
  border-bottom: 1px solid var(--ls-border);
}

.nav-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  color: var(--ls-navy);
  cursor: pointer;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: background 0.12s;
}

.nav-btn:hover:not(:disabled) {
  background: #eef2f6;
}

.nav-btn:disabled {
  color: #bfc5cf;
  cursor: default;
}

.nav-url-display {
  flex: 1;
  padding: 6px 14px;
  background: #f2f5f8;
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--ls-gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-viewport {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: repeating-linear-gradient(45deg, #fafbfc, #fafbfc 10px, #f4f6f8 10px, #f4f6f8 20px);
}

.load-status {
  text-align: center;
  color: var(--ls-navy);
  font-weight: 600;
}

.load-status .spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--ls-border);
  border-top-color: var(--ls-blue);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.9s linear infinite;
}

.load-status p {
  font-size: 14px;
  color: var(--ls-navy);
}

.load-status .status-detail {
  margin-top: 6px;
  font-size: 12px;
  color: var(--ls-gray);
  font-weight: 400;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.load-status.err .spinner {
  border-color: #fbe2e2;
  border-top-color: #c62828;
  animation: none;
}

.load-status.err .err-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fbe2e2;
  color: #c62828;
  font-size: 22px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.load-status.err p {
  color: var(--ls-navy);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.status-bar {
  margin-top: auto;
  background: #0e1526;
  color: rgba(255, 255, 255, 0.7);
  padding: 10px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  gap: 24px;
}

.status-bar .status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #22d36a;
  font-weight: 700;
}

.status-bar .status-indicator::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22d36a;
  box-shadow: 0 0 6px rgba(34, 211, 106, 0.7);
  animation: pulse 1.6s ease-in-out infinite;
}

.status-bar .session {
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 720px) {
  .proxy-header {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 16px;
    gap: 12px;
  }
  .proxy-main { padding: 24px 16px; }
  .proxy-hero h1 { font-size: 26px; }
  .url-input-wrap { flex-wrap: wrap; border-radius: 16px; padding: 10px; }
  .protocol-badge { border-right: 0; margin-right: 0; padding: 0; padding-bottom: 6px; width: 100%; }
  .url-input { width: 100%; }
  .url-submit { width: 100%; justify-content: center; margin-top: 6px; }
  .status-bar { flex-direction: column; gap: 4px; align-items: flex-start; padding: 12px 16px; }
}
