/* ============================================================
   URL Redirect Checker Tool - Standalone Styles
   Fully isolated from main website
   ============================================================ */

:root {
  /* Brand Colors */
  --primary: #00e556;
  --primary-dim: rgba(0, 229, 86, 0.1);
  --primary-glow: #00e556;
  
  /* Light Theme (Default) */
  --bg-main: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-surface: #ffffff;
  --surface-light: #ffffff;
  --text-main: #0b0b0b;
  --text-muted: #4b5563;
  --text-light: #6b7280;
  --border-color: #e2e8f0;
  --border-light: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(0, 229, 86, 0.3);
}

html.dark {
  --bg-main: #030303;
  --bg-secondary: #0a0a0a;
  --bg-surface: #0f0f0f;
  --surface-light: #0f0f0f;
  --text-main: #ffffff;
  --text-muted: #a0a0a0;
  --text-light: #6b7280;
  --border-color: #262626;
  --border-light: #262626;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(0, 229, 86, 0.4);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Header */
.tool-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.88);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

html.dark .tool-header {
  background: rgba(3, 3, 3, 0.8);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.25rem;
  transition: color 0.3s ease;
}

.logo-link:hover {
  color: var(--primary);
}

.logo-badge {
  background: var(--primary-dim);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Header Navigation */
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  margin-right: 16px;
  background: var(--surface-light);
  padding: 4px;
  border: 1px solid var(--border-light);
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 9999px;
  text-decoration: none;
  color: var(--text-muted);
  background: transparent;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--text-main);
  background: var(--bg-secondary);
}

.nav-link .material-icons-outlined {
  font-size: 18px;
}

@media (max-width: 768px) {
  .nav-link span:not(.material-icons-outlined) {
    display: none;
  }
  
  .nav-link {
    padding: 8px 12px;
    min-width: 40px;
    justify-content: center;
  }
  
  .header-nav {
    margin-right: 8px;
  }
}

.theme-toggle {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-main);
}

.theme-toggle:hover {
  background: var(--primary-dim);
  border-color: var(--primary);
  transform: scale(1.05);
}

.theme-icon-light,
.theme-icon-dark {
  font-size: 20px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

html.dark .theme-icon-light {
  display: none;
}

html:not(.dark) .theme-icon-dark {
  display: none;
}

/* Main Content */
.tool-main {
  flex: 1;
  padding: 40px 0;
}

/* Hero Section */
.hero-section {
  text-align: center;
  margin-bottom: 32px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.text-glow {
  background: linear-gradient(135deg, var(--primary) 0%, #00c44a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(0, 229, 86, 0.5);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Privacy Notice */
.privacy-notice {
  background: var(--primary-dim);
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.privacy-notice-content {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
}

.privacy-icon {
  color: var(--primary);
  font-size: 24px;
  flex-shrink: 0;
}

.privacy-text {
  color: var(--text-main);
  font-size: 0.9375rem;
  line-height: 1.6;
  flex: 1;
}

.privacy-text strong {
  color: var(--primary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .privacy-notice {
    padding: 14px 16px;
    margin-bottom: 24px;
  }
  
  .privacy-notice-content {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  
  .privacy-icon {
    font-size: 20px;
  }
  
  .privacy-text {
    font-size: 0.875rem;
  }
}

/* Tool Section */
.tool-section {
  margin-bottom: 32px;
}

/* Tool Tabs */
.tool-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: var(--bg-secondary);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.tool-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tool-tab:hover {
  color: var(--text-main);
  background: var(--bg-main);
}

.tool-tab.active {
  background: var(--primary);
  color: #000;
}

.tool-tab .material-icons-outlined {
  font-size: 20px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Checker Container */
.checker-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.input-section {
  margin-bottom: 24px;
}

.input-group {
  display: flex;
  gap: 12px;
}

.input-group .form-input {
  flex: 1;
}

.input-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.input-hint .material-icons-outlined {
  font-size: 16px;
}

/* Results Section */
.results-section {
  margin-top: 32px;
  animation: fadeIn 0.5s ease;
}

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

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-color);
}

.results-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.results-actions {
  display: flex;
  gap: 8px;
}

/* Redirect Chain */
.redirect-chain {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.redirect-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  margin-bottom: 12px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  border-left: 4px solid var(--primary);
  transition: all 0.3s ease;
}

.redirect-step:last-child {
  margin-bottom: 0;
}

.redirect-step.final {
  border-left-color: #22c55e;
  background: rgba(34, 197, 94, 0.05);
}

.redirect-step.loop {
  border-left-color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #000;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.redirect-step.final .step-number {
  background: #22c55e;
}

.redirect-step.loop .step-number {
  background: #ef4444;
  color: #fff;
}

.step-content {
  flex: 1;
}

.step-url {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
  word-break: break-all;
}

.step-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-status.status-301,
.step-status.status-308 {
  background: rgba(234, 179, 8, 0.1);
  color: #eab308;
}

.step-status.status-302,
.step-status.status-307 {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.step-status.status-200 {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.step-status.status-error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.step-info {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.step-headers {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.step-headers-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.step-headers-list {
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  color: var(--text-main);
  background: var(--bg-secondary);
  padding: 8px;
  border-radius: 4px;
  max-height: 150px;
  overflow-y: auto;
}

.step-headers-list code {
  display: block;
  padding: 2px 0;
  word-break: break-all;
}

.redirect-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0;
  color: var(--primary);
  font-size: 1.5rem;
}

/* Summary Section */
.summary-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
}

.summary-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.summary-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.summary-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Space Grotesk', sans-serif;
}

.summary-warning {
  margin-top: 16px;
  padding: 12px;
  background: rgba(234, 179, 8, 0.1);
  border-left: 3px solid #eab308;
  border-radius: 6px;
  font-size: 0.875rem;
  color: var(--text-main);
}

.summary-error {
  margin-top: 16px;
  padding: 12px;
  background: rgba(239, 68, 68, 0.1);
  border-left: 3px solid #ef4444;
  border-radius: 6px;
  font-size: 0.875rem;
  color: var(--text-main);
}

/* Loading Section */
.loading-section {
  text-align: center;
  padding: 60px 20px;
  animation: fadeIn 0.5s ease;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 1s linear infinite;
}

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

.loading-text {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Error Section */
.error-section {
  margin-top: 24px;
  animation: fadeIn 0.5s ease;
}

.error-content {
  background: rgba(239, 68, 68, 0.1);
  border: 2px solid #ef4444;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.error-icon {
  color: #ef4444;
  font-size: 32px;
  flex-shrink: 0;
}

.error-message {
  color: var(--text-main);
  font-size: 0.875rem;
  flex: 1;
}

/* Form Elements */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  background: var(--bg-main);
  color: var(--text-main);
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-dim);
}

/* Buttons */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--primary);
  color: #000;
  white-space: nowrap;
}

.btn-primary:hover {
  background: #00c44a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary .material-icons-outlined {
  font-size: 20px;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-icon {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-main);
  flex-shrink: 0;
}

.btn-icon:hover {
  background: var(--primary-dim);
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(1.05);
}

.btn-icon .material-icons-outlined {
  font-size: 18px;
}

/* Info Section */
.info-section {
  margin-top: 64px;
  margin-bottom: 32px;
}

.info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.info-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
}

.info-content {
  color: var(--text-muted);
  line-height: 1.8;
}

.info-content p {
  margin-bottom: 16px;
}

.info-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 24px 0 12px 0;
}

.info-list {
  list-style: none;
  padding-left: 0;
  margin: 12px 0;
}

.info-list li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
}

.info-list li::before {
  content: '•';
  position: absolute;
  left: 8px;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.25rem;
}

.info-content ol {
  list-style: decimal;
  padding-left: 24px;
  margin: 12px 0;
}

.info-content ol li {
  padding: 8px 0;
  padding-left: 8px;
}

.info-content ol li::before {
  display: none;
}

.info-note {
  background: var(--primary-dim);
  border-left: 3px solid var(--primary);
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--text-main);
}

.info-content a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.info-content a:hover {
  text-decoration: underline;
}

/* Footer */
.tool-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  margin-top: auto;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px 24px;
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
  max-width: 300px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast-icon {
  font-size: 20px;
}

.toast.success .toast-icon {
  color: var(--primary);
}

.toast.error .toast-icon {
  color: #ef4444;
}

.toast-message {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .checker-container {
    padding: 24px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .info-card {
    padding: 24px;
  }

  .input-group {
    flex-direction: column;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .redirect-step {
    flex-direction: column;
    gap: 12px;
  }

  .step-number {
    align-self: flex-start;
  }

  .toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
    max-width: none;
  }
}

/* Reference Container */
.reference-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.reference-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.reference-intro {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Header Categories */
.header-category {
  margin-bottom: 40px;
}

.category-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
}

/* Header Items */
.header-item {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.header-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.header-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  font-family: 'Space Grotesk', sans-serif;
}

.header-description {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.header-example {
  font-size: 0.875rem;
  color: var(--text-main);
  margin-bottom: 8px;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: 6px;
  border-left: 3px solid var(--primary);
}

.header-example code {
  font-family: 'Courier New', monospace;
  color: var(--primary);
  font-weight: 600;
}

.header-notes {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: 6px;
  margin-top: 8px;
}

.header-notes code {
  font-family: 'Courier New', monospace;
  color: var(--primary);
  background: var(--bg-main);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
}

.best-practices {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
}

.best-practices .info-list {
  margin: 0;
}

.best-practices .info-list li {
  padding: 10px 0;
  padding-left: 24px;
}

.best-practices .info-list li code {
  font-family: 'Courier New', monospace;
  color: var(--primary);
  background: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8125rem;
}

/* Focus visible for accessibility */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ============================================================
   Status Code Reference Styles
   ============================================================ */

.status-code-search {
  margin-bottom: 32px;
}

.status-code-category {
  margin-bottom: 48px;
}

.status-codes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.status-code-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  transition: all 0.3s ease;
}

.status-code-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.status-code-item.status-info {
  border-left: 4px solid #3b82f6;
}

.status-code-item.status-success {
  border-left: 4px solid #22c55e;
}

.status-code-item.status-redirect {
  border-left: 4px solid #eab308;
}

.status-code-item.status-error {
  border-left: 4px solid #ef4444;
}

.status-code-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.status-code-number {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-main);
}

.status-code-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

.status-code-description {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.status-code-details {
  font-size: 0.875rem;
  color: var(--text-light);
}

.status-code-causes,
.status-code-actions {
  margin-bottom: 8px;
  line-height: 1.5;
}

.status-code-causes strong,
.status-code-actions strong {
  color: var(--text-main);
}

/* ============================================================
   URL Analyzer Styles
   ============================================================ */

.url-analysis-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.url-analysis-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
}

.url-analysis-section h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
}

.url-display {
  font-family: 'Courier New', monospace;
  font-size: 0.9375rem;
  background: var(--bg-secondary);
  padding: 16px;
  border-radius: 6px;
  word-break: break-all;
  line-height: 1.6;
}

.url-component {
  padding: 2px 4px;
  border-radius: 3px;
}

.url-component.protocol {
  color: #3b82f6;
  font-weight: 600;
}

.url-component.hostname {
  color: #22c55e;
  font-weight: 600;
}

.url-component.pathname {
  color: #eab308;
}

.url-component.search {
  color: #f59e0b;
}

.url-component.hash {
  color: #8b5cf6;
}

.url-components {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.url-component-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: 6px;
}

.url-component-item code {
  font-family: 'Courier New', monospace;
  background: var(--bg-main);
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--primary);
}

.url-params {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.url-param-item {
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
}

.url-param-item strong {
  color: var(--primary);
}

.url-analysis-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.metric-item {
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: 6px;
}

.metric-item.warning {
  border-left: 4px solid #eab308;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 8px;
}

.badge.success {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.badge.warning {
  background: rgba(234, 179, 8, 0.1);
  color: #eab308;
}

.badge.error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* ============================================================
   Response Analyzer Styles
   ============================================================ */

.response-analysis-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.response-analysis-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
}

.response-analysis-section h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
}

.response-overview {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.response-status {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 8px;
  background: var(--bg-secondary);
}

.response-status.status-success {
  border-left: 4px solid #22c55e;
}

.response-status.status-redirect {
  border-left: 4px solid #eab308;
}

.response-status.status-error {
  border-left: 4px solid #ef4444;
}

.response-status.status-info {
  border-left: 4px solid #3b82f6;
}

.status-code {
  font-size: 2rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-main);
}

.status-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-main);
}

.response-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.security-score {
  margin-bottom: 24px;
}

.score-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  background: var(--bg-secondary);
  border-radius: 8px;
}

.score-value {
  font-size: 3rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--primary);
}

.score-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.security-headers-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.security-header-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: 6px;
}

.security-header-item.present {
  border-left: 4px solid #22c55e;
}

.security-header-item.missing {
  border-left: 4px solid #ef4444;
}

.security-header-item .material-icons-outlined {
  font-size: 1.25rem;
}

.security-header-item.present .material-icons-outlined {
  color: #22c55e;
}

.security-header-item.missing .material-icons-outlined {
  color: #ef4444;
}

.performance-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.cache-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cache-item {
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
}

.cache-item.warning {
  border-left: 4px solid #eab308;
}

.headers-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
}

.header-item {
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  word-break: break-all;
}

.header-item strong {
  color: var(--primary);
  margin-right: 8px;
}

.header-item code {
  color: var(--text-main);
}

/* FAQ Styling */
.faq-item {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  font-family: 'Space Grotesk', sans-serif;
}

.faq-item p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 8px;
}

.faq-item code {
  font-family: 'Courier New', monospace;
  background: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--primary);
  font-size: 0.875rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .status-codes-grid {
    grid-template-columns: 1fr;
  }
  
  .url-analysis-metrics,
  .response-metrics,
  .performance-metrics {
    grid-template-columns: 1fr;
  }
  
  .response-status {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .status-code {
    font-size: 1.5rem;
  }
  
  .faq-item {
    margin-bottom: 24px;
    padding-bottom: 20px;
  }
}

