/* Polish Language - Polish Flag Theme */

/* CSS Variables for Polish Flag Colors */
:root {
    --polish-white: #FFFFFF;
    --polish-red: #DC143C;
    --polish-red-dark: #B01030;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #E0E0E0;
    --bg-light: #F5F5F5;
    --shadow: rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --border-radius-lg: 12px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--polish-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--polish-red);
    border-bottom: 4px solid var(--polish-red-dark);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px var(--shadow);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--polish-red);
    text-decoration: none;
    background: var(--polish-white);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    border: 2px solid var(--polish-red);
    transition: all 0.3s ease;
}

.site-title:hover {
    background: var(--polish-red);
    color: var(--polish-white);
}

/* Navigation */
.main-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.menu-toggle {
    display: none;
}

.menu-button {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    padding: 5px;
}

.menu-button span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--polish-white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-link {
    color: var(--polish-white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.2);
}

.nav-link:hover {
    background: var(--polish-white);
    color: var(--polish-red);
}

.nav-link.current {
    background: var(--polish-white);
    color: var(--polish-red);
    font-weight: 600;
}

/* Main Container */
.main-container {
    display: flex;
    gap: 2rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    flex: 1;
}

/* Sidebar */
.sidebar {
    flex: 0 0 280px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Breadcrumbs */
.breadcrumbs {
    background: var(--bg-light);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--polish-red);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .separator {
    margin: 0 0.5rem;
    color: var(--text-light);
}

.breadcrumbs .current {
    color: var(--text-dark);
    font-weight: 500;
}

/* Section Tree */
.section-tree {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: var(--border-radius-lg);
    border-left: 4px solid var(--polish-red);
}

.section-tree h3 {
    color: var(--polish-red);
    margin-bottom: 0.75rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-tree ul {
    list-style: none;
}

.section-tree li {
    margin: 0.5rem 0;
}

.section-tree li.subpage {
    padding-left: 1rem;
    border-left: 2px solid var(--border-color);
}

.section-tree a {
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    padding: 0.4rem 0.75rem;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
}

.section-tree a:hover {
    background: var(--polish-white);
    color: var(--polish-red);
}

.section-tree li.current a {
    background: var(--polish-red);
    color: var(--polish-white);
    font-weight: 500;
}

/* Content */
.content {
    flex: 1;
}

.content-with-image {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.content-with-image .page-image {
    flex: 0 0 300px;
    max-width: 300px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px var(--shadow);
}

.content-with-image .content-text {
    flex: 1;
    min-width: 0;
}

@media (max-width: 768px) {
    .content-with-image {
        flex-direction: column;
    }

    .content-with-image .page-image {
        flex: none;
        max-width: 100%;
        width: 100%;
    }
}

.content h1 {
    color: var(--polish-red);
    font-size: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--polish-red);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.content h2 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content h3 {
    color: var(--text-light);
    font-size: 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.content p {
    margin-bottom: 1rem;
    text-align: justify;
}

.content a {
    color: var(--polish-red);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.content a:hover {
    border-bottom-color: var(--polish-red);
}

.content ul,
.content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.content li {
    margin: 0.25rem 0;
}

.content blockquote {
    border-left: 4px solid var(--polish-red);
    padding-left: 1rem;
    margin: 1rem 0;
    color: var(--text-light);
    font-style: italic;
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.content code {
    background: var(--bg-light);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    color: var(--polish-red);
}

.content pre {
    background: var(--text-dark);
    color: var(--polish-white);
    padding: 1rem;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: 1rem 0;
}

.content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px var(--shadow);
}

.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.content th,
.content td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.content th {
    background: var(--polish-red);
    color: var(--polish-white);
    font-weight: 600;
}

.content tr:nth-child(even) {
    background: var(--bg-light);
}

.content tr:hover {
    background: rgba(220, 20, 60, 0.05);
}

/* Footer */
.site-footer {
    background: var(--text-dark);
    color: var(--polish-white);
    padding: 1.5rem 0;
    margin-top: auto;
    text-align: center;
}

.site-footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .site-header {
        background: var(--polish-red);
    }
    
    .site-header .container {
        flex-wrap: wrap;
    }
    
    .site-title {
        background: var(--polish-white);
    }
    
    .menu-button {
        display: flex;
    }
    
    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
        padding-top: 1rem;
    }
    
    .menu-toggle:checked ~ .main-nav {
        display: flex;
    }
    
    .nav-link {
        text-align: center;
    }
    
    .main-container {
        flex-direction: column;
    }
    
    .sidebar {
        flex: none;
        position: static;
        width: 100%;
    }
    
    .content {
        max-width: 100%;
    }
    
    .content h1 {
        font-size: 1.5rem;
    }
    
    .content h2 {
        font-size: 1.25rem;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .sidebar,
    .site-footer {
        display: none;
    }
    
    .content {
        max-width: 100%;
    }
}
