* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.header {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.logo h1 {
  color: white;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.logo p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

/* Main Content */
.main {
  flex: 1;
}

.hero {
  text-align: center;
  margin-bottom: 3rem;
  color: white;
}

.hero h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Form Styles */
.detector-form {
  margin-bottom: 3rem;
}

.form {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.input-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

#websiteUrl {
  flex: 1;
  min-width: 300px;
  padding: 1rem;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

#websiteUrl:focus {
  outline: none;
  border-color: #667eea;
}

#checkBtn {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
  position: relative;
  min-width: 150px;
}

#checkBtn:hover {
  transform: translateY(-2px);
}

#checkBtn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.loader {
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 2px solid white;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

.hidden {
  display: none;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Results Styles */
.results {
  margin-bottom: 3rem;
}

.result-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.website-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.website-url {
  color: #666;
  font-size: 0.9rem;
}

.status-badge {
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
}

.status-approved {
  background: #d4edda;
  color: #155724;
}

.status-not-approved {
  background: #f8d7da;
  color: #721c24;
}

.status-unknown {
  background: #fff3cd;
  color: #856404;
}

.result-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.detail-item {
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.detail-label {
  font-weight: 600;
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.detail-value {
  font-size: 1rem;
  color: #333;
}

.adsense-codes {
  margin-top: 1.5rem;
}

.adsense-codes h4 {
  margin-bottom: 1rem;
  color: #333;
}

.code-item {
  background: #f1f3f4;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  word-break: break-all;
}

/* Recent Checks */
.recent-checks {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.recent-checks h3 {
  margin-bottom: 1.5rem;
  color: #333;
}

.recent-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.recent-item:hover {
  background-color: #f8f9fa;
}

.recent-item:last-child {
  border-bottom: none;
}

.recent-url {
  font-weight: 500;
  color: #333;
}

.recent-status {
  font-size: 0.9rem;
}

.recent-time {
  font-size: 0.8rem;
  color: #666;
}

/* Footer */
.footer {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  margin-top: 3rem;
  text-align: center;
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .input-group {
    flex-direction: column;
  }

  #websiteUrl {
    min-width: auto;
  }

  .result-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .result-details {
    grid-template-columns: 1fr;
  }

  .recent-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .form {
    padding: 1.5rem;
  }

  .result-card {
    padding: 1.5rem;
  }

  .recent-checks {
    padding: 1.5rem;
  }
}

/* Add these styles to your existing style.css */

.status-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.confidence-badge {
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  color: white;
  min-width: 120px;
  text-align: center;
}

.verification-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e9ecef;
}

.verification-section h4 {
  margin-bottom: 1rem;
  color: #333;
}

.verification-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.verification-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.verification-item.verified {
  background: #d4edda;
  color: #155724;
}

.verification-item.not-verified {
  background: #f8d7da;
  color: #721c24;
}

.verification-icon {
  font-weight: bold;
  font-size: 1rem;
}

.ad-slots-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e9ecef;
}

.ad-slots-section h4 {
  margin-bottom: 1rem;
  color: #333;
}

.ad-slot-item {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.slot-format {
  color: #666;
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

/* Legal Pages Styles */
.legal-page {
  background: white;
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.legal-page h1 {
  color: #333;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 3px solid #667eea;
  padding-bottom: 1rem;
}

.last-updated {
  color: #666;
  font-style: italic;
  margin-bottom: 2rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.legal-page h2 {
  color: #333;
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e9ecef;
}

.legal-page h3 {
  color: #444;
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-page section {
  margin-bottom: 2rem;
}

.legal-page ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

.legal-page li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.legal-page p {
  line-height: 1.7;
  margin-bottom: 1rem;
  color: #555;
}

.legal-page strong {
  color: #333;
  font-weight: 600;
}

.disclaimer-highlight {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  border-left: 4px solid #f39c12;
}

.disclaimer-highlight h3 {
  color: #856404;
  margin-top: 0;
  margin-bottom: 1rem;
}

.disclaimer-highlight p {
  color: #856404;
  margin-bottom: 0;
  font-weight: 500;
}

.back-to-home {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e9ecef;
}

.btn-back {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.btn-back:hover {
  transform: translateY(-2px);
  text-decoration: none;
  color: white;
}

/* Enhanced Footer Styles */
.footer-content {
  padding: 2rem 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand h4 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
}

.link-group h5 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.link-group ul {
  list-style: none;
  padding: 0;
}

.link-group li {
  margin-bottom: 0.5rem;
}

.link-group a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.link-group a:hover {
  color: white;
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-legal-links a:hover {
  color: white;
  text-decoration: none;
}

/* Responsive Design for Legal Pages */
@media (max-width: 768px) {
  .legal-page {
    padding: 2rem;
    margin: 1rem;
  }

  .legal-page h1 {
    font-size: 2rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .legal-page {
    padding: 1.5rem;
    margin: 0.5rem;
  }

  .legal-page ul {
    padding-left: 1.5rem;
  }

  .footer-links {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-legal-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}
