/* SEO Audit Tool Page Styles */
.seo-audit-tool-page {
  padding-top: 6rem;
  min-height: 100vh;
  background-color: var(--color-dark);
  color: var(--color-white);
}

.tool-hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--color-white-5);
  background: linear-gradient(135deg, var(--color-gray) 0%, var(--color-darker) 100%);
}

.tool-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--color-white-60);
}

.tool-breadcrumb-link {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-speed);
}

.tool-breadcrumb-link:hover {
  color: var(--color-white);
}

.tool-breadcrumb-separator {
  color: var(--color-white-40);
}

.tool-breadcrumb-current {
  color: var(--color-white);
}

.tool-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-white);
}

.tool-subtitle {
  font-size: 1.125rem;
  color: var(--color-white-60);
  max-width: 700px;
  line-height: 1.6;
}

.tool-content {
  padding: 3rem 0;
}

.tool-form-section {
  margin-bottom: 2rem;
}

.tool-error {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background-color: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: var(--border-radius);
  color: #fca5a5;
  margin-bottom: 2rem;
}

.tool-error svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.tool-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.tool-loading.hidden {
  display: none;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--color-white-10);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.tool-loading p {
  color: var(--color-white-60);
  font-size: 1rem;
}

.tool-info-section {
  margin-top: 4rem;
  padding: 2rem;
  background-color: var(--color-gray);
  border: 1px solid var(--color-white-5);
  border-radius: var(--border-radius);
}

.tool-info-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-white);
}

.tool-info-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-white);
}

.tool-info-section p {
  color: var(--color-white-60);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.tool-info-list {
  margin: 1rem 0;
  padding-left: 1.5rem;
  color: var(--color-white-60);
  line-height: 1.8;
}

.tool-info-list li {
  margin-bottom: 0.5rem;
}

/* Form Styles */
.seo-audit-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-white);
}

.form-input-wrapper {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.form-input {
  flex: 1;
  padding: 0.875rem 1rem;
  background-color: var(--color-gray);
  border: 1px solid var(--color-white-10);
  border-radius: var(--border-radius);
  color: var(--color-white);
  font-size: 1rem;
  transition: all var(--transition-speed);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(13, 103, 254, 0.1);
}

.form-input::placeholder {
  color: var(--color-white-40);
}

.form-submit-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, var(--color-accent), var(--color-blue));
  border: none;
  border-radius: var(--border-radius);
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed);
  white-space: nowrap;
}

.form-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 103, 254, 0.3);
}

.form-submit-btn:active {
  transform: translateY(0);
}

.form-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-submit-btn svg {
  width: 20px;
  height: 20px;
}

.form-hint {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-white-60);
  line-height: 1.6;
}

/* Result Cards */
.seo-audit-result-card {
  background-color: var(--color-gray);
  border: 1px solid var(--color-white-5);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.seo-audit-result-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--color-white);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-white-5);
}

.seo-audit-result-title svg {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* SEO Score Display */
.seo-score-card {
  background: linear-gradient(135deg, var(--color-gray) 0%, var(--color-darker) 100%);
  border: 2px solid var(--color-white-5);
}

.seo-score-display {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.seo-score-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 8px solid;
  position: relative;
  flex-shrink: 0;
}

.seo-score-excellent {
  border-color: #22c55e;
  background-color: rgba(34, 197, 94, 0.1);
}

.seo-score-good {
  border-color: #3b82f6;
  background-color: rgba(59, 130, 246, 0.1);
}

.seo-score-fair {
  border-color: #fbbf24;
  background-color: rgba(251, 191, 36, 0.1);
}

.seo-score-poor {
  border-color: #dc2626;
  background-color: rgba(220, 38, 38, 0.1);
}

.seo-score-percentage {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
}

.seo-score-grade {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white-60);
  margin-top: 0.25rem;
}

.seo-score-details {
  flex: 1;
  min-width: 250px;
}

.seo-score-summary {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.seo-score-stats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.seo-stat-item {
  font-size: 0.9375rem;
  color: var(--color-white-60);
}

.seo-stat-item strong {
  color: var(--color-white);
  font-weight: 600;
}

/* Section Titles */
.seo-section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-white);
}

.seo-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.125rem;
  font-weight: 700;
  flex-shrink: 0;
}

.seo-status-badge.status-good {
  background-color: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 2px solid rgba(34, 197, 94, 0.3);
}

.seo-status-badge.status-warning {
  background-color: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 2px solid rgba(251, 191, 36, 0.3);
}

/* Analysis Content */
.seo-analysis-content {
  margin-top: 1rem;
}

.seo-content-preview {
  padding: 1rem;
  background-color: var(--color-darker);
  border-radius: calc(var(--border-radius) / 1.5);
  margin-bottom: 0.75rem;
}

.seo-content-preview strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-white-60);
  font-size: 0.875rem;
}

.seo-content-preview code {
  font-family: 'Courier New', monospace;
  font-size: 0.9375rem;
  color: var(--color-white);
  word-break: break-all;
}

.seo-content-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-white-60);
}

.seo-optimal-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 4px;
  color: #22c55e;
  font-weight: 600;
  font-size: 0.75rem;
}

.seo-issues-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
}

.seo-issues-list li {
  padding: 0.75rem 1rem;
  background-color: rgba(251, 191, 36, 0.1);
  border-left: 3px solid #fbbf24;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  color: #fbbf24;
  font-size: 0.9375rem;
}

.seo-missing {
  padding: 1rem;
  background-color: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: calc(var(--border-radius) / 1.5);
  color: #fca5a5;
  font-size: 0.9375rem;
}

/* Headings Structure */
.seo-headings-structure {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.seo-heading-item {
  padding: 0.75rem 1rem;
  background-color: var(--color-darker);
  border-radius: calc(var(--border-radius) / 1.5);
  border: 1px solid var(--color-white-5);
  font-size: 0.9375rem;
}

.seo-heading-item strong {
  color: var(--color-white);
  font-weight: 600;
  margin-right: 0.5rem;
}

.seo-heading-preview {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--color-white-60);
  font-style: italic;
}

/* Stats Grid */
.seo-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.seo-stat-box {
  padding: 1.25rem;
  background-color: var(--color-darker);
  border: 1px solid var(--color-white-5);
  border-radius: calc(var(--border-radius) / 1.5);
  text-align: center;
}

.seo-stat-box.seo-stat-good {
  border-color: rgba(34, 197, 94, 0.3);
  background-color: rgba(34, 197, 94, 0.1);
}

.seo-stat-box.seo-stat-warning {
  border-color: rgba(251, 191, 36, 0.3);
  background-color: rgba(251, 191, 36, 0.1);
}

.seo-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.seo-stat-label {
  font-size: 0.875rem;
  color: var(--color-white-60);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Technical SEO Grid */
.seo-technical-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.seo-technical-item {
  padding: 1rem;
  background-color: var(--color-darker);
  border-radius: calc(var(--border-radius) / 1.5);
  border: 1px solid var(--color-white-5);
}

.seo-technical-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-white-60);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.seo-technical-value {
  font-size: 0.9375rem;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.seo-technical-value code {
  font-family: 'Courier New', monospace;
  background-color: var(--color-gray);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  color: var(--color-white);
  word-break: break-all;
  font-size: 0.875rem;
}

.seo-status-good {
  color: #22c55e;
  font-weight: 600;
}

.seo-status-warning {
  color: #fbbf24;
  font-weight: 600;
}

/* Open Graph Tags */
.seo-og-tags {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.seo-og-tag {
  padding: 0.75rem 1rem;
  background-color: var(--color-darker);
  border-radius: calc(var(--border-radius) / 1.5);
  border: 1px solid var(--color-white-5);
}

.seo-og-tag strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-white-60);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.seo-og-tag code {
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  color: var(--color-white);
  word-break: break-all;
}

/* Structured Data */
.seo-structured-data {
  margin-top: 1rem;
}

.seo-data-types {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.seo-data-types li {
  padding: 0.5rem 1rem;
  background-color: var(--color-darker);
  border: 1px solid var(--color-white-5);
  border-radius: 4px;
}

.seo-data-types code {
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  color: var(--color-accent);
}

/* Recommendations */
.seo-recommendations-card {
  background: linear-gradient(135deg, rgba(13, 103, 254, 0.1) 0%, rgba(13, 103, 254, 0.05) 100%);
  border: 1px solid rgba(13, 103, 254, 0.3);
}

.seo-recommendations-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.seo-recommendations-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background-color: var(--color-darker);
  border-radius: calc(var(--border-radius) / 1.5);
  border: 1px solid var(--color-white-5);
  color: var(--color-white);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.seo-recommendations-list li svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .tool-title {
    font-size: 2rem;
  }

  .tool-subtitle {
    font-size: 1rem;
  }

  .form-input-wrapper {
    flex-direction: column;
  }

  .form-submit-btn {
    width: 100%;
    justify-content: center;
  }

  .seo-audit-result-card {
    padding: 1.5rem;
  }

  .seo-score-display {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .seo-score-circle {
    width: 120px;
    height: 120px;
  }

  .seo-score-percentage {
    font-size: 2rem;
  }

  .seo-headings-structure {
    grid-template-columns: 1fr;
  }

  .seo-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .seo-technical-grid {
    grid-template-columns: 1fr;
  }
}

/* Light theme support */
[data-theme='light'] .seo-audit-tool-page {
  background-color: var(--color-dark);
}

[data-theme='light'] .seo-audit-result-card,
[data-theme='light'] .tool-info-section {
  background-color: var(--color-gray);
  border-color: var(--color-gray-light);
}

