.audit-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.audit-header {
  text-align: center;
  padding: 60px 20px 40px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px); /* Safari / iOS */
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  color: white;
  margin-bottom: 40px;
}

.header-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.header-content p {
  font-size: 1.1rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
}

/* Main Content */
.audit-main {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px); /* Safari / iOS */
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  padding: 50px 40px;
}

/* Input Section */
.audit-input-section {
  margin-bottom: 50px;
}

.input-group {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.url-input {
  flex: 1;
  min-height: 56px;
  padding: 14px 20px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  font-family: var(--font);
  transition: all 0.3s ease;
  background: white;
}

.url-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.url-input::placeholder {
  color: var(--text-muted);
}

.analyze-btn {
  min-height: 56px;
  padding: 14px 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
  white-space: nowrap;
}

.analyze-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.35);
}

.analyze-btn:active {
  transform: translateY(0);
}

.input-hint {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Loading State */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.loading-state.hidden {
  display: none;
}

.spinner {
  margin-bottom: 20px;
}

.spinner-circle {
  width: 60px;
  height: 60px;
  border: 4px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-state p {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Results Section */
.results-section {
  display: none;
  animation: fadeIn 0.5s ease;
}

.results-section.hidden {
  display: none;
}

.results-section.visible {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Overall Score Container */
.overall-score-container {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 50px;
  padding: 40px;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.05) 0%,
    rgba(15, 23, 42, 0.05) 100%
  );
  border-radius: 16px;
  border: 1px solid var(--border);
}

.score-circle {
  position: relative;
  width: 160px;
  height: 160px;
  flex-shrink: 0;
}

.progress-ring {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.progress-ring-circle {
  fill: none;
  stroke: var(--border);
  stroke-width: 8;
  stroke-dasharray: 377;
  transition: stroke-dashoffset 0.8s ease;
}

.score-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.score-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
}

.score-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.score-info h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: var(--text);
}

.score-info p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Results Grid */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

/* Result Card */
.result-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px); /* Safari / iOS */
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);

  padding: 30px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.result-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.card-icon {
  font-size: 1.8rem;
}

.card-header h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
}

.card-score {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 20px;
}

.score {
  font-size: 2.2rem;
  font-weight: 700;
}

.score-unit {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.metric-label {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.metric-value {
  font-weight: 600;
  color: var(--text-primary);
}

.recommendations {
  list-style: none;
  padding: 0;
}

.recommendations li {
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Card Color Variations */
.result-card.performance .card-header,
.result-card.performance .score {
  color: #8b5cf6;
}

.result-card.seo .card-header,
.result-card.seo .score {
  color: #06b6d4;
}

.result-card.mobile .card-header,
.result-card.mobile .score {
  color: #ec4899;
}

.result-card.ux .card-header,
.result-card.ux .score {
  color: #f59e0b;
}

.result-card.security .card-header,
.result-card.security .score {
  color: #10b981;
}

.result-card.accessibility .card-header,
.result-card.accessibility .score {
  color: #3b82f6;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  border-radius: 16px;
  padding: 50px 40px;
  color: white;
  text-align: center;
  margin-bottom: 30px;
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.2);
}

.cta-content h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.cta-content p {
  font-size: 1.05rem;
  opacity: 0.95;
  margin-bottom: 25px;
}

.cta-button {
  display: inline-block;
  padding: 14px 40px;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);

  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  color: var(--primary-color);
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(56, 189, 248, 0.4);
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
}

/* Action Buttons */
.action-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.new-audit-btn {
  display: inline-block;
  padding: 14px 40px;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);

  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  color: var(--primary-color);
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.new-audit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(56, 189, 248, 0.4);
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
}

/* Error Message */
.error-message {
  display: none;
  padding: 20px;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 12px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 500;
}

.error-message.visible {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .audit-header {
    padding: 40px 20px 30px;
  }

  .header-content h1 {
    font-size: 1.8rem;
  }

  .header-content p {
    font-size: 1rem;
  }

  .audit-main {
    padding: 30px 20px;
  }

  .input-group {
    flex-direction: column;
  }

  .analyze-btn {
    width: 100%;
  }

  .overall-score-container {
    flex-direction: column;
    gap: 25px;
    padding: 30px 20px;
    text-align: center;
  }

  .score-circle {
    width: 140px;
    height: 140px;
  }

  .score-number {
    font-size: 2.5rem;
  }

  .score-info h2 {
    font-size: 1.5rem;
  }

  .results-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .result-card {
    padding: 20px;
  }

  .cta-section {
    padding: 30px 20px;
  }

  .cta-content h3 {
    font-size: 1.5rem;
  }

  .cta-content p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .audit-container {
    padding: 10px;
  }

  .audit-header {
    padding: 30px 15px 20px;
    margin-bottom: 20px;
    border-radius: 15px;
  }

  .header-content h1 {
    font-size: 1.5rem;
  }

  .header-content p {
    font-size: 0.95rem;
  }

  .audit-main {
    padding: 20px 15px;
    border-radius: 15px;
  }

  .url-input {
    font-size: 16px;
  }

  .card-header h3 {
    font-size: 1.1rem;
  }

  .score {
    font-size: 1.8rem;
  }

  .action-buttons {
    flex-direction: column;
  }
}

.hidden {
  display: none !important;
}
