/* Tor Anonymous View — proxy UI styles */

body {
  padding-top: 64px; /* nav height */
}

/* Wrapper */
.av-wrapper {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 64px);
}

/* Status bar */
.av-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px clamp(16px, 4vw, 40px);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}
.av-status-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.av-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.av-status-label {
  font-size: 12px;
  color: var(--fg-muted);
  font-weight: 500;
  letter-spacing: 0.3px;
}
.av-status-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.av-badge {
  font-size: 11px;
  padding: 3px 10px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid rgba(61,252,140,0.15);
}
.av-back-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
  font-weight: 500;
}
.av-back-link:hover { color: var(--fg); }

/* URL bar */
.av-url-bar {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 12px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.av-lock-icon {
  color: var(--accent);
  display: flex;
  align-items: center;
  padding: 0 12px 0 0;
  flex-shrink: 0;
}
.av-url-form {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.av-url-form:focus-within {
  border-color: rgba(61,252,140,0.3);
}
.av-url-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--fg);
  font-weight: 400;
}
.av-url-input::placeholder { color: var(--fg-muted); }
.av-go-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.av-go-btn:hover { opacity: 0.85; }
.av-refresh-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--fg-muted);
  padding: 10px 14px;
  margin-left: 8px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.15s, border-color 0.15s;
}
.av-refresh-btn:hover {
  color: var(--fg);
  border-color: rgba(255,255,255,0.15);
}

/* Content area */
.av-content-area {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.av-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #fff;
}

/* Loading state */
.av-loading {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--bg);
  z-index: 10;
}
.av-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.av-loading span {
  font-size: 14px;
  color: var(--fg-muted);
  font-weight: 500;
}

/* Empty state */
.av-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 40px;
  height: 100%;
}
.av-empty-icon {
  color: var(--fg-muted);
  opacity: 0.4;
  margin-bottom: 32px;
}
.av-empty-state h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.av-empty-state p {
  font-size: 16px;
  color: var(--fg-muted);
  max-width: 400px;
  line-height: 1.7;
  margin-bottom: 40px;
  font-weight: 300;
}
.av-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.av-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--fg-muted);
  font-weight: 400;
}
.av-check {
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
}

/* Mobile */
@media (max-width: 640px) {
  .av-status-bar { padding: 8px 16px; }
  .av-badge-ip { display: none; }
  .av-url-bar { padding: 10px 16px; }
  .av-refresh-btn { display: none; }
}