/* SiteReport Style - Copied from sitereport.mmediausa.com */

/* Ensure logo container is visible and doesn't collapse */
.site-logo {
  max-height: 30px;
  min-height: 30px;
  display: flex;
  align-items: center;
}

/* Logo theme swap */
.logo-img {
  min-height: 27px;
  max-height: 27px;
  height: auto;
}

.logo-light {
  display: block;
}

.logo-dark {
  display: none;
}

body.dark-mode .logo-light {
  display: none !important;
}

body.dark-mode .logo-dark {
  display: block !important;
}

/* Header Styling */
header.site-header {
  padding-top: 1rem;
  padding-bottom: 1rem;
  margin-top: auto;
  width: 100%;
}

body.dark-mode header.site-header,
body.dark-mode footer.site-footer {
  background: #f1f1f1 !important;
  color: #181a1b !important;
}

body.light-mode header.site-header,
body.light-mode footer.site-footer {
  background: #181a1b !important;
  color: #ffffff !important;
}

body.dark-mode header.site-header .lead {
  color: #b0b3b8 !important;
}

body.light-mode header.site-header .lead {
  color: #6c757d !important;
}

/* Theme toggle button/icon visibility fixes */
body.light-mode #themeToggle.btn-outline-secondary {
  border-color: #212529;
  color: #212529;
  background: #fff;
}

/* Footer Styling */
footer.site-footer {
  text-align: center;
  padding-top: 2rem;
  padding-bottom: 1rem;
  margin-top: auto;
  width: 100%;
}

/* Stage Progress Bar */
.stage-progress .progress {
  height: 8px;
  border-radius: 4px;
  background-color: #e9ecef;
}

.stage-labels span {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Cards */
.card {
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 0.375rem;
}

.card.shadow {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.card.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Hero Section */
.hero-section {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
}

.badge-section h5 {
  color: #495057;
  margin-bottom: 0.5rem;
}

/* Results */
#results {
  max-width: 1000px;
  margin: 2rem auto;
}

.result-card {
  background-color: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.result-header {
  padding: 1rem 1.5rem;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  border-radius: 8px 8px 0 0;
}

.result-header h5,
.result-header h6 {
  margin: 0;
  color: #333333;
  font-weight: 600;
}

.result-body {
  padding: 1.5rem;
}

.whois-data {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 1rem;
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #333;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 400px;
  overflow-y: auto;
}

.ip-info .info-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.ip-info .info-label {
  font-weight: 600;
  color: #333333;
}

.ip-info .info-value {
  color: #0d6efd;
  font-family: monospace;
}

/* Progress Bar */
#progressBar {
  height: 6px;
  background-color: #e9ecef;
  border-radius: 3px;
  overflow: hidden;
  margin: 1rem 0;
}

#progressBar .progress-bar {
  height: 100%;
  background-color: #0d6efd;
  transition: width 0.3s ease;
  border-radius: 3px;
}

/* Logos Animation - Perfect Infinite Scroll */
.logos-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  height: 2rem;
  -webkit-mask: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  mask: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}

.logos-track {
  display: flex;
  gap: 2.5rem; /* Optimized for smooth scroll */
  font-size: 1.5rem;
  animation: infiniteScroll 30s linear infinite;
  white-space: nowrap;
  width: fit-content;
}

.logos-track i {
  flex: 0 0 auto;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  color: #6c757d;
}

.logos-track i:hover {
  opacity: 1;
  color: #0d6efd;
}

/* Perfect infinite scroll - moves exactly half the width (one logo set) */
@keyframes infiniteScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%); /* Moves exactly half the track width */
  }
}

/* Responsive */
@media (max-width: 768px) {
  .site-logo {
    min-width: auto;
  }

  .site-logo img {
    max-width: 80px !important;
  }

  .card {
    margin: 1rem;
    padding: 1rem !important;
  }

  body {
    padding-top: 0;
  }
}

/* IP Lookup Specific Styles */
.current-ip-display .ip-box {
  transition: all 0.3s ease;
}

.current-ip-display .ip-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.quick-actions {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
}

.quick-actions .btn {
  transition: all 0.3s ease;
}

.quick-actions .btn:hover {
  transform: translateY(-1px);
}

/* IP Details Styling */
.ip-details .detail-row,
.tech-details .detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.detail-label {
  font-weight: 600;
  color: #333333;
  min-width: 120px;
}

.detail-value {
  color: #0d6efd;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 500;
  flex: 1;
  text-align: right;
}

/* DNS Records Styling */
.dns-records h6 {
  color: #495057;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.dns-records ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.dns-records li {
  margin-bottom: 0.25rem;
  font-family: monospace;
  font-size: 0.9rem;
  color: #333;
}

/* Copy Button Animation */
.btn .fa-check {
  animation: checkmark 0.6s ease-in-out;
}

@keyframes checkmark {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* Dark Mode Adjustments for IP Lookup */
body.dark-mode .current-ip-display .ip-box {
  background-color: #343a40 !important;
  color: #f8f9fa !important;
}

body.dark-mode .quick-actions {
  background-color: #343a40;
  border-color: #495057;
}

body.dark-mode .result-card {
  background-color: #343a40;
  border-color: #495057;
}

body.dark-mode .result-header {
  background-color: #495057;
  border-color: #6c757d;
}

body.dark-mode .result-header h5,
body.dark-mode .result-header h6 {
  color: #f8f9fa;
}

body.dark-mode .detail-label {
  color: #f8f9fa;
}

body.dark-mode .detail-value {
  color: #66d9ef;
}

body.dark-mode .dns-records h6 {
  color: #f8f9fa;
}

body.dark-mode .dns-records li {
  color: #f8f9fa;
}

/* DNS Modal Styles */
.dns-results .record-item {
  transition: all 0.2s ease;
}

.dns-results .record-item:hover {
  transform: translateX(5px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.dark-mode .dns-results .record-item {
  background-color: #2b2b2b !important;
  border-color: #404040 !important;
  color: #f8f9fa;
}

body.dark-mode .dns-results .record-item.bg-light {
  background-color: #1e1e1e !important;
}

body.dark-mode .dns-results .record-item:hover {
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.dns-results code {
  background-color: #f8f9fa;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  word-break: break-all;
}

body.dark-mode .dns-results code {
  background-color: #2b2b2b;
  color: #66d9ef;
  border: 1px solid #404040;
}

.btn-group .btn-check:checked + .btn {
  background-color: #0d6efd;
  border-color: #0d6efd;
  color: white;
}

body.dark-mode .btn-group .btn-outline-primary {
  color: #66d9ef;
  border-color: #66d9ef;
}

body.dark-mode .btn-group .btn-check:checked + .btn {
  background-color: #66d9ef;
  border-color: #66d9ef;
  color: #181a1b;
}

/* Modal customizations for dark mode */
body.dark-mode .modal-content {
  background-color: #2b2b2b;
  color: #f8f9fa;
  border-color: #404040;
}

body.dark-mode .modal-header {
  border-bottom-color: #404040;
}

body.dark-mode .modal-footer {
  border-top-color: #404040;
}

body.dark-mode .form-control {
  background-color: #1e1e1e;
  border-color: #404040;
  color: #f8f9fa;
}

body.dark-mode .form-control:focus {
  background-color: #1e1e1e;
  border-color: #66d9ef;
  color: #f8f9fa;
  box-shadow: 0 0 0 0.25rem rgba(102, 217, 239, 0.25);
}

/* Custom Responsive Container for Mobile-First Design */
.mobile-first-container {
  width: 100%;
  margin: 0 auto;
  padding: 0.5rem;
}

/* Mobile: Nearly full width */
@media (max-width: 767.98px) {
  .mobile-first-container {
    max-width: calc(100vw - 1rem);
    padding: 0.5rem;
  }

  .mobile-first-container .card {
    margin: 0;
    border-radius: 0.5rem;
  }

  /* Reduce padding on mobile for top containers */
  .mobile-ip-container {
    padding: 0.75rem 0.5rem !important;
  }

  .mobile-form-container {
    padding: 0.75rem 0.5rem !important;
  }
}

/* Tablet and up: Constrained width with generous padding */
@media (min-width: 768px) {
  .mobile-first-container {
    max-width: 900px;
    padding: 1.5rem;
  }

  .mobile-ip-container {
    padding: 2rem 1.5rem !important;
  }

  .mobile-form-container {
    padding: 2rem 1.5rem !important;
  }
}
