/* Sitemap Page Styles */

/* Submenu Navigation */
.sitemap-submenu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-color);
}

.sitemap-submenu-item {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.sitemap-submenu-item:hover {
    color: var(--primary-color);
}

.sitemap-submenu-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

.sitemap-submenu-separator {
    color: var(--text-light);
    font-weight: 300;
    user-select: none;
}

/* Page Header */
.page-header {
    margin-bottom: 30px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

/* Wrapper for Short Description and Image - Full Width */
.sitemap-short-wrapper {
    position: relative;
    margin: 30px 0;
}

.sitemap-short-wrapper.with-image {
    /* Wrapper is just a container for absolute positioning */
}

/* Main Image on Right Side - absolutely positioned, overlapping the frame */
.sitemap-image-wrapper {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 2;
}

.sitemap-main-image {
    max-width: 400px;
    max-height: 500px;
    width: auto;
    height: auto;
    display: block;
}

/* Short Description (Zajawka) - Full Width with Frame */
.sitemap-short-description {
    width: 100%;
    padding: 25px;
    padding-right: 300px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #f8f9fa 100%);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    position: relative;
    z-index: 1;
}

.sitemap-short-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
}

.sitemap-short-text p {
    margin: 0;
    line-height: 1.8;
}


/* Full Content */
.sitemap-full-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-dark);
}

/* Quill Content Styling */
.sitemap-full-content h1,
.sitemap-short-text h1 {
    font-size: 28px;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-dark);
    line-height: 1.8;
}

.sitemap-full-content h2,
.sitemap-short-text h2 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-dark);
    line-height: 1.8;
}

.sitemap-full-content h3,
.sitemap-short-text h3 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.8;
}

.sitemap-full-content h4,
.sitemap-short-text h4 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
    line-height: 1.8;
}

.sitemap-full-content h5,
.sitemap-short-text h5 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
    line-height: 1.8;
}

.sitemap-full-content h6,
.sitemap-short-text h6 {
    font-size: 14px;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 8px;
    color: var(--text-dark);
    line-height: 1.8;
}

.sitemap-full-content p {
    margin: 0;
    line-height: 1.8;
}

.sitemap-full-content p + p {
    margin-top: 0.8em;
}

.sitemap-full-content img,
.sitemap-short-text img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

.sitemap-full-content ul,
.sitemap-full-content ol,
.sitemap-short-text ul,
.sitemap-short-text ol {
    margin-left: 20px;
    margin-bottom: 20px;
    padding-left: 10px;
}

.sitemap-full-content ul li,
.sitemap-short-text ul li {
    list-style: disc;
    margin-bottom: 8px;
    line-height: 1.6;
}

.sitemap-full-content ol li,
.sitemap-short-text ol li {
    list-style: decimal;
    margin-bottom: 8px;
    line-height: 1.6;
}

.sitemap-full-content ul ul,
.sitemap-full-content ol ul,
.sitemap-short-text ul ul,
.sitemap-short-text ol ul {
    margin-top: 8px;
}

.sitemap-full-content ul ol,
.sitemap-full-content ol ol,
.sitemap-short-text ul ol,
.sitemap-short-text ol ol {
    margin-top: 8px;
}

/* Links */
.sitemap-full-content a,
.sitemap-short-text a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.sitemap-full-content a:hover,
.sitemap-short-text a:hover {
    color: var(--primary-hover);
    border-bottom-color: var(--primary-hover);
}

/* Strong & Em */
.sitemap-full-content strong,
.sitemap-short-text strong {
    font-weight: 700;
    color: var(--text-dark);
}

.sitemap-full-content em,
.sitemap-short-text em {
    font-style: italic;
}

.sitemap-full-content u,
.sitemap-short-text u {
    text-decoration: underline;
}

.sitemap-full-content s,
.sitemap-short-text s {
    text-decoration: line-through;
}

/* Tables */
.sitemap-full-content table,
.sitemap-short-text table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sitemap-full-content table th,
.sitemap-full-content table td,
.sitemap-short-text table th,
.sitemap-short-text table td {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.sitemap-full-content table th,
.sitemap-short-text table th {
    background-color: var(--bg-light);
    font-weight: 600;
    color: var(--text-dark);
}

.sitemap-full-content table tr:nth-child(even),
.sitemap-short-text table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Blockquotes */
.sitemap-full-content blockquote,
.sitemap-short-text blockquote {
    margin: 20px 0;
    padding: 15px 20px;
    background-color: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    font-style: italic;
    color: var(--text-gray);
}

/* Code */
.sitemap-full-content code,
.sitemap-short-text code {
    padding: 2px 6px;
    background-color: #f4f4f4;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.sitemap-full-content pre,
.sitemap-short-text pre {
    margin: 20px 0;
    padding: 15px;
    background-color: #f4f4f4;
    border-radius: var(--radius-sm);
    overflow-x: auto;
}

.sitemap-full-content pre code,
.sitemap-short-text pre code {
    padding: 0;
    background-color: transparent;
}

/* Quill color classes */
.ql-color-white { color: #fff; }
.ql-color-red { color: #e60000; }
.ql-color-orange { color: #f90; }
.ql-color-yellow { color: #ff0; }
.ql-color-green { color: #008a00; }
.ql-color-blue { color: #06c; }
.ql-color-purple { color: #93f; }

.ql-bg-white { background-color: #fff; }
.ql-bg-red { background-color: #e60000; }
.ql-bg-orange { background-color: #f90; }
.ql-bg-yellow { background-color: #ff0; }
.ql-bg-green { background-color: #008a00; }
.ql-bg-blue { background-color: #06c; }
.ql-bg-purple { background-color: #93f; }

/* Responsive Design */
@media (max-width: 991px) {
    .sitemap-image-wrapper {
        position: static;
        transform: none;
        text-align: center;
        margin-bottom: 20px;
    }

    .sitemap-short-description {
        padding-right: 25px;
    }

    .sitemap-main-image {
        max-width: 100%;
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 26px;
    }

    .sitemap-short-wrapper {
        margin: 20px 0;
    }

    .sitemap-short-description {
        padding: 20px;
    }


    .sitemap-short-text {
        font-size: 15px;
    }

    .sitemap-full-content {
        font-size: 14px;
    }

    .sitemap-main-image {
        max-height: 300px;
    }

    .sitemap-full-content h1,
    .sitemap-short-text h1 {
        font-size: 24px;
    }

    .sitemap-full-content h2,
    .sitemap-short-text h2 {
        font-size: 20px;
    }

    .sitemap-full-content h3,
    .sitemap-short-text h3 {
        font-size: 18px;
    }
}

