/* PeerGem Gradient Background */
:root {
  /* Corner colors */
  --bg-corner: #1a0935;
  
  /* Main vertical gradient colors with specific breakpoints */
  --bg-top: #0e0038;
  --bg-middle: #0e0038;
  --bg-half-bottom: #4c322c;
  --bg-bottom: #976d1d;
}

/* Main background with adjusted gradient transition */
body {
  margin: 0;
  padding: 0;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  
  /* Base background color */
  background-color: var(--bg-top);
  color: #fff !important;
}

/* Primary dome/half-circle gradient */
body::before {
  content: '';
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50%; /* Only affect bottom half */
  /* Create half-circle dome effect from bottom center */
  background: radial-gradient(
    ellipse at 50% 100%,
    var(--bg-bottom) 0%,      /* Center bottom is gold */
    var(--bg-half-bottom) 40%, /* Transitional color */
    var(--bg-middle) 70%,      /* Blend back to dark purple */
    transparent 100%           /* Fade to base color */
  );
  z-index: -1;
  pointer-events: none;
}

/* Corner gradients to blend with the dome */
body::after {
  content: '';
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50%; /* Only affect bottom half */
  background: 
    /* Bottom left corner gradient that meets the dome */
    radial-gradient(
      circle at 0% 100%,
      var(--bg-corner) 0%,
      var(--bg-corner) 20%,
      transparent 50%
    ),
    /* Bottom right corner gradient that meets the dome */
    radial-gradient(
      circle at 100% 100%,
      var(--bg-corner) 0%,
      var(--bg-corner) 20%,
      transparent 50%
    );
  z-index: -2;
  pointer-events: none;
}

/* Additional subtle vertical gradient overlay */
.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    var(--bg-top) 0%,
    var(--bg-top) 40%,
    transparent 70%
  );
  z-index: -3;
  pointer-events: none;
}

/* Container styling - REMOVE BORDERS AND BOX SHADOW */
.container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

/* Main section styling for centering content */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  width: 100%;
  position: relative;
  overflow: visible;
  padding-top: 0;
}

/* Logo center positioning - adjusted to be lower */
.logo-center {
  position: absolute;
  top: 46%; /* Moved down from 40% to position 2-3 inches lower */
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column; /* Changed to column to stack logo and tagline */
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
}

.logo-center img {
  max-width: 280px;
  height: auto;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
  margin-top: 2rem; /* Extra top margin to push down further */
  margin-bottom: 0.5rem; /* Reduced from 1.5rem to 0.5rem for closer spacing */
}

/* Tagline styling */
.tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0;
  text-align: center;
  max-width: 90%;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  white-space: nowrap; /* Keep on single line for desktop */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  body::before {
    height: 60%; /* Slightly larger dome on smaller screens */
  }
  
  .logo-center img {
    max-width: 220px;
    margin-bottom: 0.4rem; /* Reduced from 1.25rem to 0.4rem */
  }
  
  .tagline {
    white-space: normal; /* Allow wrapping on mobile */
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  body::before {
    height: 70%; /* Even larger dome on mobile */
  }
  
  .logo-center img {
    max-width: 180px;
    margin-bottom: 0.3rem; /* Reduced from 1rem to 0.3rem */
  }
  
  .tagline {
    white-space: normal; /* Ensure wrapping on smallest screens */
    font-size: 0.75rem;
  }
}

/* Countdown Timer Styles */
.countdown-container {
  margin-top: 20px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 10px;
  padding: 1.2rem 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0.2rem;
}

.countdown-separator {
  font-size: 1.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0.2rem;
  padding-bottom: 1rem;
}

.time-value {
  font-family: 'Inter', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffc108;
  text-shadow: 0 0 10px rgba(255, 193, 8, 0.4);
  min-width: 3rem;
  text-align: center;
}

.time-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

.countdown-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1rem;
  letter-spacing: 0.02em;
}

.launched-message {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Responsive adjustments for countdown */
@media (max-width: 768px) {
  .countdown-container {
    margin-top: 2rem;
  }
  
  .countdown-wrapper {
    padding: 1rem 1.4rem;
  }
  
  .time-value {
    font-size: 1.8rem;
    min-width: 2.4rem;
  }
  
  .countdown-separator {
    font-size: 1.5rem;
  }
  
  .time-label {
    font-size: 0.65rem;
  }
  
  .countdown-subtitle {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .countdown-container {
    margin-top: 1.5rem;
  }
  
  .countdown-wrapper {
    padding: 0.8rem 1rem;
  }
  
  .time-value {
    font-size: 1.5rem;
    min-width: 2rem;
  }
  
  .countdown-separator {
    font-size: 1.2rem;
    margin: 0 0.1rem;
  }
  
  .time-label {
    font-size: 0.55rem;
  }
  
  .countdown-subtitle {
    font-size: 0.7rem;
  }
}

/* Footer styles */
.site-footer {
  padding: 10px 0;
  margin-top: auto;
  width: 100%;
  text-align: center;
}

.copyright {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 1.2rem 0;
  }
  
  .copyright {
    font-size: 0.75rem;
  }
}

/* Legal pages styling */
.legal-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;  /* Reduced from 2rem */
}

.legal-content {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 2rem;
  margin: 0.5rem 0 2rem 0;  /* Changed from 2rem 0 to reduce top spacing */
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-content h1 {
  font-size: 2rem;
  color: #ffc107;
  margin-top: 0;
  margin-bottom: 1.5rem;
  text-align: center;
}

.legal-content h2 {
  font-size: 1.2rem;
  color: #ffffff;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-content p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.legal-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.legal-content li {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

.update-date {
  text-align: right;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2rem;
}

.company-info {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Homepage styles */
.home-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem;
  width: 100%;
  overflow: visible;
}

.home-hero {
  text-align: center;
  padding: 0.75rem 0 1rem;
}

.home-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: #ffc107;
  margin-bottom: 0.75rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.home-subtitle-container {
  text-align: center;
  margin-bottom: 1.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.home-subtitle-main {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.home-subtitle-features {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 0.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
}

.feature-checkmark {
  color: #2ecc71;
  font-weight: bold;
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

.domains-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.domain-card {
  background: rgba(20, 20, 25, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.domain-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.domain-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffc107;
  margin-bottom: 0.5rem;
}

.domain-description {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.domain-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2ecc71;
}

.browse-button {
  display: inline-block;
  background-color: #3b82f6;
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.browse-button:hover {
  background-color: #2563eb;
}

.text-center {
  text-align: center;
  margin-top: 1rem;
}

.loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: #ffc107;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

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

.loading-text {
  color: rgba(255, 255, 255, 0.6);
}

.last-updated {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 1rem;
}

/* Responsive styles for homepage */
@media (max-width: 992px) {
  .domains-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .home-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .domains-grid {
    grid-template-columns: 1fr;
  }
  
  .home-title {
    font-size: 1.5rem;
  }
  
  .home-subtitle-features {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .feature-item {
    justify-content: center;
    font-size: 1rem;
  }
  
  .home-subtitle-main {
    font-size: 1.1rem;
  }
}

/* Style the "View details" link - fix white background issue */
.domain-card button,
.domain-card a[onclick] {
  background: transparent;  /* Ensure completely transparent background */
  border: none;
  color: #3b82f6;
  font-size: 0.875rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  padding: 0;  /* Remove any padding that might show background */
  text-decoration: none;
}

.domain-card button:hover,
.domain-card a[onclick]:hover {
  color: #60a5fa;
  background: transparent;  /* Keep background transparent on hover */
}

/* Recent domains header with favicon icon */
.recent-domains-header {
  display: flex;
  align-items: center;
  margin-top: 0;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.recent-domains-icon {
  width: 16px;
  height: 16px;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.recent-domains-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}