/* 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;
}

/* 쿠키 동의 배너 스타일 - 모달형 */
#cookie-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

#cookie-banner .cookie-modal {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    margin: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: #2c3e50;
}

#cookie-banner .cookie-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

#cookie-banner .cookie-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #2c3e50;
}

#cookie-banner .cookie-text {
    line-height: 1.6;
    margin-bottom: 25px;
    color: #555;
    text-align: left;
    white-space: pre-line;
    max-height: 300px;
    overflow-y: auto;
}

#cookie-banner .cookie-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

#cookie-banner .cookie-footer a {
    color: #3498db;
    text-decoration: none;
}

#cookie-banner .cookie-footer a:hover {
    text-decoration: underline;
}

#cookie-banner .cookie-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

#cookie-banner button {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
    min-width: 120px;
}

#cookie-banner .accept-btn {
    background: #27ae60;
    color: white;
}

#cookie-banner .accept-btn:hover {
    background: #2ecc71;
    transform: translateY(-1px);
}

#cookie-banner .accept-all-btn {
    background: #3498db;
    color: white;
}

#cookie-banner .accept-all-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

#cookie-banner .decline-btn {
    background: #95a5a6;
    color: white;
}

#cookie-banner .decline-btn:hover {
    background: #7f8c8d;
    transform: translateY(-1px);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    #cookie-banner .cookie-modal {
        margin: 15px;
        padding: 25px 20px;
        max-width: none;
    }

    #cookie-banner .cookie-icon {
        font-size: 2.5em;
    }

    #cookie-banner .cookie-title {
        font-size: 1.2em;
    }

    #cookie-banner .cookie-buttons {
        flex-direction: column;
        gap: 10px;
    }

    #cookie-banner button {
        width: 100%;
        padding: 14px;
    }
}

/* 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;
    }
}