/* Sitemap Page Styles */
.sitemap-section {
  background: #f8f9fa;
  min-height: 100vh;
  padding: 0;
}

/* Header */
.sitemap-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.sitemap-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.sitemap-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Content */
.sitemap-content {
  padding: 80px 0;
}

.sitemap-section-group {
  margin-bottom: 4rem;
}

.section-group-title {
  font-size: 2.2rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 2rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.section-group-title i {
  color: #667eea;
}

/* Grid Layout */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Cards */
.sitemap-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sitemap-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card-header {
  padding: 2rem 2.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  border-bottom: 3px solid rgba(255, 255, 255, 0.1);
  min-height: 80px;
  flex-wrap: wrap;
  gap: 1rem;
}

.card-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
  flex: 1;
  min-width: 0;
  word-break: break-word;
  padding-right: 1rem;
  line-height: 1.4;
  max-width: calc(100% - 140px);
}

.card-header h3 i {
  font-size: 1.4rem;
  opacity: 0.9;
  flex-shrink: 0;
}

.subdomain-badge {
  background: rgba(255, 255, 255, 0.25);
  padding: 0.5rem 1.2rem;
  border-radius: 25px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  white-space: nowrap;
  flex-shrink: 0;
  align-self: center;
  min-width: 100px;
  text-align: center;
  z-index: 10;
  position: relative;
}

.subdomain-badge.dashboard {
  background: rgba(255, 193, 7, 0.4);
  border-color: rgba(255, 193, 7, 0.5);
}

.card-content {
  padding: 1.5rem;
}

/* Links */
.sitemap-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.sitemap-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: #f8f9fa;
  border: 2px solid transparent;
  border-radius: 10px;
  color: #495057;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.sitemap-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
  transition: left 0.5s ease;
}

.sitemap-link:hover {
  background: #e9ecef;
  border-color: #667eea;
  color: #667eea;
  text-decoration: none;
  transform: translateX(5px);
  box-shadow: 0 3px 10px rgba(102, 126, 234, 0.2);
}

.sitemap-link:hover::before {
  left: 100%;
}

.sitemap-link i {
  font-size: 1.2rem;
  color: #667eea;
  min-width: 24px;
  text-align: center;
}

.sitemap-link span {
  flex: 1;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Priority Badges */
.priority {
  font-size: 0.8rem;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.priority-critical {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.priority-high {
  background: linear-gradient(135deg, #fd7e14 0%, #e55a00 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(253, 126, 20, 0.3);
}

.priority-medium {
  background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
  color: #212529;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.priority-low {
  background: linear-gradient(135deg, #6c757d 0%, #545b62 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

/* Special Card Types */
.main-site .card-header {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.auth-subdomain .card-header {
  background: linear-gradient(135deg, #17a2b8 0%, #007bff 100%);
  box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.dashboard-main .card-header {
  background: linear-gradient(135deg, #fd7e14 0%, #ffc107 100%);
  box-shadow: 0 4px 15px rgba(253, 126, 20, 0.3);
}

.dashboard-section .card-header {
  background: linear-gradient(135deg, #6f42c1 0%, #e83e8c 100%);
  box-shadow: 0 4px 15px rgba(111, 66, 193, 0.3);
}

/* SEO Info */
.seo-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.seo-card {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  text-align: center;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.seo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.seo-card h3 {
  color: #2c3e50;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  font-size: 1.3rem;
  font-weight: 700;
}

.seo-card h3 i {
  color: #667eea;
  font-size: 1.5rem;
}

.seo-card p {
  color: #6c757d;
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.6;
}

.btn-sitemap {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-sitemap:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  color: white;
  text-decoration: none;
}

.btn-sitemap i {
  font-size: 1.1rem;
}

/* Priority Legend */
.priority-legend {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border: 1px solid #e9ecef;
}

.priority-legend h3 {
  color: #2c3e50;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.4rem;
  font-weight: 700;
}

.priority-legend h3 i {
  color: #667eea;
  font-size: 1.5rem;
}

.legend-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.legend-item:hover {
  background: #e9ecef;
  border-color: #dee2e6;
}

.priority-badge {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  min-width: 90px;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.priority-badge.critical {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.priority-badge.high {
  background: linear-gradient(135deg, #fd7e14 0%, #e55a00 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(253, 126, 20, 0.3);
}

.priority-badge.medium {
  background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
  color: #212529;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.priority-badge.low {
  background: linear-gradient(135deg, #6c757d 0%, #545b62 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .sitemap-title {
    font-size: 2.5rem;
  }
  
  .sitemap-subtitle {
    font-size: 1.1rem;
  }
  
  .section-group-title {
    font-size: 1.8rem;
  }
  
  .sitemap-grid {
    grid-template-columns: 1fr;
  }
  
  .seo-info {
    grid-template-columns: 1fr;
  }
  
  .legend-items {
    grid-template-columns: 1fr;
  }
  
  .card-header {
    padding: 1.5rem 2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .card-header h3 {
    padding-right: 0;
    max-width: 100%;
  }
  
  .subdomain-badge {
    align-self: flex-end;
    margin-top: 0;
  }
  
  .card-content {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .sitemap-content {
    padding: 40px 0;
  }
  
  .sitemap-section-group {
    margin-bottom: 2rem;
  }
  
  .sitemap-link {
    padding: 0.6rem 0.8rem;
  }
  
  .priority {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
  }
  
  .card-header {
    padding: 1rem 1.5rem;
  }
  
  .card-header h3 {
    font-size: 1.1rem;
  }
  
  .subdomain-badge {
    font-size: 0.7rem;
    padding: 0.4rem 1rem;
  }
}
