/**
 * @file
 * Sitemap component styles for PXL theme.
 */

/* Sitemap Page Styles - Using standard page layout */

/* Sitemap Page Styles */
.sitemap-page {
  padding: 60px 0;
  background-color: #f8f9fa;
}

/* Sitemap Tree Structure */
.sitemap-tree {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.sitemap-header {
  text-align: center;
  margin-bottom: 50px;
}

#page h1.sitemap-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.sitemap-title i {
  color: #3498db;
  font-size: 2.2rem;
}

.sitemap-message {
  font-size: 1.1rem;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Sitemap Content */
.sitemap-content {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 40px;
}

.sitemap-sections {
  display: grid;
  gap: 40px;
}

.sitemap-section {
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 30px;
}

.sitemap-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Sitemap Items */
.sitemap-item {
  margin-bottom: 30px;
}

.sitemap-item:last-child {
  margin-bottom: 0;
}

.sitemap-item-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 20px;
  border-left: 4px solid #3498db;
  padding-left: 15px;
}

.sitemap-item-content {
  margin-left: 20px;
}

/* Clear Hierarchy Styles */
.sitemap-menu {
  margin-bottom: 25px;
}

.sitemap-hierarchy {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.sitemap-category {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.sitemap-category-header {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  padding: 20px;
  text-align: center;
}

#page a.sitemap-category-title {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  display: block;
}

#page a.sitemap-category-title:hover {
  color: #ffffff;
  text-decoration: none;
}

.sitemap-category-items {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#page a.sitemap-category-item {
  display: block;
  padding: 12px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-align: center;
}

.sitemap-category-item:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Frontpage Item Styles */
.sitemap-frontpage-item {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  position: relative;
}

#page .sitemap-frontpage-item a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sitemap-frontpage-item a:hover {
  color: #f8f9fa;
  text-decoration: none;
}

.sitemap-rss-link {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.rss-feed-link {
  color: #f39c12;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s ease;
}

.rss-feed-link:hover {
  color: #e67e22;
  text-decoration: none;
}

.rss-feed-link i {
  font-size: 1rem;
}

/* Sitemap Block Styles */
.sitemap-block {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  overflow: hidden;
}

.sitemap-block-title {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  margin: 0;
  padding: 20px;
  font-size: 1.4rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sitemap-block-title i {
  font-size: 1.2rem;
}

.sitemap-block-content {
  padding: 20px;
}

/* Empty State */
.sitemap-empty {
  text-align: center;
  padding: 60px 20px;
  color: #6c757d;
}

.sitemap-empty p {
  font-size: 1.2rem;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .sitemap-page {
    padding: 30px 0;
  }
  
  .sitemap-content {
    padding: 20px;
    margin: 0 15px;
  }
  
  .sitemap-title {
    font-size: 2rem;
    flex-direction: column;
    gap: 10px;
  }
  
  .sitemap-item-title {
    font-size: 1.5rem;
  }
  
  .sitemap-hierarchy {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .sitemap-category-header {
    padding: 15px;
  }
  
  .sitemap-category-title {
    font-size: 1.1rem;
  }
  
  .sitemap-category-items {
    padding: 15px;
    gap: 10px;
  }
  
  .sitemap-category-item {
    padding: 10px 14px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .sitemap-content {
    padding: 15px;
    margin: 0 10px;
  }
  
  .sitemap-title {
    font-size: 1.8rem;
  }
  
  .sitemap-menu-link {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}
