/*
 * Smart Sitemap Generator - Public CSS for HTML Sitemap
 * Version: 2.3.0
 */
body.ssg-html-sitemap-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background-color: #f8f9fa;
    color: #343a40;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

.ssg-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px 50px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    border: 1px solid #e9ecef;
}

.ssg-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 30px;
}

.ssg-header h1 {
    font-size: 2.8em;
    font-weight: 700;
    color: #212529;
    margin: 0;
}

.ssg-header p {
    font-size: 1.1em;
    color: #6c757d;
    margin: 5px 0 0;
}

.ssg-header h2 {
    font-size: 1.5em;
    font-weight: 300;
    color: #495057;
    margin-top: 15px;
}

.ssg-toc {
    margin-bottom: 50px;
    padding: 25px 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.ssg-toc h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.4em;
    color: #343a40;
    text-align: center;
}

.ssg-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.ssg-toc li {
    margin: 5px 15px;
}

.ssg-toc a {
    text-decoration: none;
    font-weight: 500;
    color: #007bff;
    padding: 8px 12px;
    border-radius: 20px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ssg-toc a:hover {
    background-color: #007bff;
    color: #fff;
}

.ssg-sitemap-section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 2em;
    color: #343a40;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #007bff;
    display: flex;
    align-items: center;
}

.section-title svg {
    margin-right: 15px;
    color: #007bff;
}

.ssg-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    column-count: 3;
    column-gap: 30px;
}

.ssg-link-list li {
    margin-bottom: 10px;
    break-inside: avoid-column;
}

.ssg-link-list a {
    text-decoration: none;
    color: #495057;
    font-size: 1em;
    display: block;
    padding: 5px 0;
    position: relative;
    transition: color 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ssg-link-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #007bff;
    transition: width 0.3s ease;
}

.ssg-link-list a:hover {
    color: #007bff;
}

.ssg-link-list a:hover::after {
    width: 100%;
}

/* Canonical Sitemap Table Styles */
.ssg-canonical-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    font-size: 0.9em;
}

.ssg-canonical-table th, 
.ssg-canonical-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.ssg-canonical-table thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.ssg-canonical-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.ssg-canonical-table tbody tr:hover {
    background-color: #e9ecef;
}

.ssg-canonical-table a {
    color: #007bff;
    text-decoration: none;
    word-break: break-all;
}

.ssg-canonical-table a:hover {
    text-decoration: underline;
}


.ssg-footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
    font-size: 0.9em;
    color: #6c757d;
}

@media (max-width: 992px) {
    .ssg-link-list { column-count: 2; }
}

@media (max-width: 768px) {
    .ssg-container { padding: 20px; }
    .ssg-link-list { column-count: 1; }
    .ssg-header h1 { font-size: 2.2em; }
}