/* GitLab Pages specific styling for ParksTool Manual */

.wy-nav-content-wrap {
    background: #fcfcfc;
}

.wy-nav-content {
    max-width: 1200px;
}

/* Custom header styling */
.wy-nav-top {
    background: #2980b9;
    color: white;
}

/* Custom sidebar styling */
.wy-nav-side {
    background: #343131;
}

/* Custom link colors */
.wy-menu-vertical a {
    color: #d9d9d9;
}

.wy-menu-vertical a:hover {
    background-color: #2980b9;
}

/* Korean font support */
body,
.wy-nav-content {
    font-family: "Lato", "Noto Sans KR", "Malgun Gothic", "돋움", sans-serif;
}

/* Improved heading spacing for better readability */
.rst-content h1,
.rst-content h2,
.rst-content h3,
.rst-content h4,
.rst-content h5,
.rst-content h6 {
    margin-top: 48px !important;
    margin-bottom: 24px !important;
    line-height: 1.3 !important;
}

/* First heading on page doesn't need extra top margin */
.rst-content .section:first-child>h1:first-child,
.rst-content .section:first-child>h2:first-child {
    margin-top: 24px !important;
}

/* Sub-headings with slightly less margin */
.rst-content h3,
.rst-content h4,
.rst-content h5,
.rst-content h6 {
    margin-top: 36px !important;
    margin-bottom: 18px !important;
}

/* Language selector styling */
.language-selector {
    position: fixed !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 1000 !important;
    background: white !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15) !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.language-selector select {
    padding: 8px 12px !important;
    border: none !important;
    background: transparent !important;
    font-size: 14px !important;
    cursor: pointer !important;
    outline: none !important;
    min-width: 120px !important;
}

.language-selector select:hover {
    background: #f8f9fa !important;
}

.language-selector::before {
    content: "🌐" !important;
    padding: 8px !important;
    display: inline-block !important;
}

/* Better mobile responsiveness */
@media (max-width: 768px) {
    .wy-nav-content {
        margin-left: 0;
    }

    .wy-nav-side {
        left: -300px;
    }

    .language-selector {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        margin: 10px !important;
        float: right !important;
    }
}

/* Warning and note boxes */
.admonition.warning {
    background-color: #ffebee;
    border-left: 5px solid #f44336;
}

.admonition.note {
    background-color: #e3f2fd;
    border-left: 5px solid #2196f3;
}

/* Code blocks */
.highlight {
    background-color: #f8f8f8;
    border: 1px solid #e1e4e5;
    border-radius: 4px;
}

/* Table styling */
.wy-table-responsive table td,
.wy-table-responsive table th {
    white-space: normal;
}

/* Footer */
.rst-footer-buttons {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e4e5;
}

/* Print media */
@media print {

    .wy-nav-side,
    .wy-nav-top,
    .rst-footer-buttons {
        display: none !important;
    }

    .wy-nav-content-wrap {
        margin-left: 0 !important;
    }
}