/* ====================================
   CSS Variables
   ==================================== */
:root {
    --prz-blue: #003366;
    --prz-gold: #c5a059;
    --text-dark: #1a1a1a;
    --text-light: #5e6d77;
    --bg-light: #f4f7f9;
    --white: #ffffff;
    --transition: 0.3s ease;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ====================================
   Typography
   ==================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ====================================
   Layout Components
   ==================================== */
.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 60px 0;
    border-bottom: 1px solid #eee;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--prz-blue);
    color: var(--white);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}

/* ====================================
   Header
   ==================================== */
header {
    border-bottom: 2px solid var(--prz-blue);
    background: var(--white);
    padding: 10px 0;
    position: relative;
    z-index: 100;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logos-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-main {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.logo-small {
    height: 35px;
    width: auto;
    object-fit: contain;
}

.inst-title {
    border-left: 1px solid #ddd;
    padding-left: 12px;
}

.inst-title p {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--prz-blue);
    margin: 0;
    line-height: 1.1;
}

.logos-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* ====================================
   Navigation
   ==================================== */
nav {
    background: var(--prz-blue);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: var(--transition);
}

.nav-flex {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

nav a {
    color: var(--white);
    padding: 14px 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--prz-gold);
    transition: var(--transition);
    transform: translateX(-50%);
}

nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--prz-gold);
}

nav a:hover::after {
    width: 80%;
}

nav a:focus {
    outline: 2px solid var(--prz-gold);
    outline-offset: -2px;
}

/* ====================================
   Hero Section
   ==================================== */
.hero {
    background: linear-gradient(135deg, #fdfdfd 0%, #eceef1 100%);
    padding: 80px 0;
}

.hero-flex {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1.2;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: var(--prz-blue);
    text-transform: none;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 300;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: var(--prz-blue);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: #002244;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--prz-blue);
    border: 2px solid var(--prz-blue);
}

.btn-secondary:hover {
    background: var(--prz-blue);
    color: var(--white);
}

.hero-visual {
    flex: 0.8;
    text-align: right;
}

.hero-visual img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 15px 15px 0px var(--prz-blue);
}

/* ====================================
   Section Headers
   ==================================== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    color: var(--prz-blue);
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    width: 60px;
    height: 3px;
    background: var(--prz-gold);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    color: var(--text-light);
    font-size: 1rem;
    margin-top: 15px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ====================================
   PCA Framework Section
   ==================================== */
.pca-box {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.pca-img {
    max-width: 100%;
    height: auto;
    max-height: 600px;
    border-radius: 4px;
}

/* ====================================
   Teams Grid
   ==================================== */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.team-card {
    background: var(--bg-light);
    padding: 30px;
    border-top: 4px solid var(--prz-blue);
    border-radius: 4px;
    transition: var(--transition);
}

.team-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.team-card h3 {
    color: var(--prz-blue);
    margin-bottom: 20px;
    font-size: 1.1rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.team-card ul {
    list-style: none;
}

.team-card li {
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--text-light);
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.team-card li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: var(--prz-gold);
    font-size: 0.8rem;
}

/* ====================================
   Software Section
   ==================================== */
.software-section {
    background: var(--bg-light);
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.soft-item {
    background: var(--white);
    border: 1px solid #e0e0e0;
    padding: 25px;
    text-align: center;
    border-radius: 8px;
    transition: var(--transition);
}

.soft-item:hover {
    border-color: var(--prz-gold);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.soft-item i {
    font-size: 2rem;
    color: var(--prz-blue);
    margin-bottom: 12px;
    display: block;
}

.soft-item span {
    font-weight: 700;
    font-size: 0.95rem;
    display: block;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.soft-item small {
    font-size: 0.75rem;
    color: var(--text-light);
    display: block;
}

/* ====================================
   Rehabilitation Section
   ==================================== */
.rehab-box {
    background: var(--white);
    border-left: 8px solid var(--prz-gold);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border-radius: 4px;
}

.rehab-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 20px;
}

.rehab-grid h3 {
    color: var(--prz-blue);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.rehab-grid p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
}

.rehab-tags {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px dashed #ddd;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.tag {
    font-size: 0.8rem;
    background: var(--bg-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    color: var(--text-dark);
}

/* ====================================
   Robot Specifications Section
   ==================================== */
.robot-dark {
    background: var(--prz-blue);
    color: var(--white);
    padding: 80px 0;
}

.robot-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: start;
}

.robot-specs h2 {
    color: var(--prz-gold);
    margin-bottom: 20px;
    font-size: 2rem;
}

.robot-intro {
    margin-bottom: 40px;
    opacity: 0.9;
    font-size: 1rem;
    line-height: 1.7;
}

.spec-table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.spec-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 12px;
}

.spec-item strong {
    color: var(--prz-gold);
    font-size: 0.75rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.spec-item p {
    font-size: 0.95rem;
    margin: 0;
    font-weight: 300;
}

.vr-infrastructure {
    background: rgba(255, 255, 255, 0.05);
    padding: 35px;
    border: 2px solid var(--prz-gold);
    border-radius: 8px;
}

.vr-infrastructure h3 {
    color: var(--prz-gold);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.vr-infrastructure p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.7;
}

.vr-infrastructure .status {
    font-size: 0.8rem;
    color: #aaa;
    margin: 0;
}

/* ====================================
   Footer
   ==================================== */
footer {
    background: #111;
    color: #888;
    padding: 60px 0 20px;
    font-size: 0.85rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

footer h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

footer p {
    line-height: 1.7;
    margin-bottom: 10px;
}

footer address {
    font-style: normal;
}

footer a {
    color: var(--prz-gold);
    transition: var(--transition);
}

footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 25px;
    text-align: center;
}

.version-tag {
    color: var(--prz-gold);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    margin-top: 10px;
    opacity: 0.7;
}

/* ====================================
   Responsive Design
   ==================================== */

/* Tablet */
@media (max-width: 1024px) {
    .hero-flex {
        flex-direction: column;
        text-align: center;
    }

    .hero-visual {
        text-align: center;
        margin-top: 40px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .teams-grid,
    .software-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .robot-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-about {
        grid-column: 1 / -1;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    section {
        padding: 40px 0;
    }

    /* Header */
    .header-flex {
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }

    .logos-left {
        flex-direction: column;
        gap: 15px;
    }

    .inst-title {
        border-left: none;
        border-top: 1px solid #ddd;
        padding-left: 0;
        padding-top: 15px;
        text-align: center;
    }

    .logo-main {
        height: 40px;
    }

    .logo-small {
        height: 30px;
    }

    /* Navigation */
    .mobile-menu-toggle {
        display: flex;
        margin: 10px auto;
    }

    .nav-flex {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .nav-flex.active {
        display: flex;
    }

    nav a {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Hero */
    .hero {
        padding: 50px 0;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .hero-visual img {
        box-shadow: 10px 10px 0px var(--prz-blue);
    }

    /* Grids */
    .teams-grid,
    .software-grid,
    .rehab-grid,
    .spec-table,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Section Headers */
    .section-header h2 {
        font-size: 1.5rem;
    }

    /* Robot Section */
    .robot-specs h2 {
        font-size: 1.6rem;
    }

    .robot-dark {
        padding: 50px 0;
    }

    /* Footer */
    footer {
        padding: 40px 0 20px;
    }

    .footer-grid {
        gap: 30px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.3rem;
    }

    .soft-item i {
        font-size: 1.5rem;
    }

    .team-card,
    .soft-item,
    .rehab-box,
    .vr-infrastructure {
        padding: 20px;
    }
}

/* ====================================
   Print Styles
   ==================================== */
@media print {
    nav,
    .hero-cta,
    .mobile-menu-toggle {
        display: none;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .hero-visual img {
        box-shadow: none;
    }
}

/* ====================================
   Accessibility Improvements
   ==================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --prz-blue: #000080;
        --prz-gold: #996600;
        --text-dark: #000000;
    }
}

/* Focus Visible */
:focus-visible {
    outline: 3px solid var(--prz-gold);
    outline-offset: 2px;
}

/* ====================================
   Contact Page - Form Styles
   ==================================== */
.contact-hero {
    padding: 60px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.benefit-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #eee;
}

.benefit-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.benefit-card i {
    font-size: 2.5rem;
    color: var(--prz-blue);
    margin-bottom: 15px;
    display: block;
}

.benefit-card h3 {
    color: var(--prz-blue);
    font-size: 1rem;
    margin-bottom: 10px;
}

.benefit-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.form-section {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.form-section legend {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: var(--prz-blue);
    font-weight: 600;
    padding: 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.required {
    color: #d32f2f;
    margin-left: 3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: 'Roboto', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--prz-blue);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #d32f2f;
}

.error-message {
    color: #d32f2f;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
    min-height: 20px;
}

.form-hint {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

.team-selection {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.team-option {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.team-option input[type="radio"] {
    margin-top: 5px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.team-label {
    flex: 1;
    cursor: pointer;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: var(--transition);
}

.team-option input[type="radio"]:checked + .team-label {
    border-color: var(--prz-blue);
    background: rgba(0, 51, 102, 0.05);
}

.team-label:hover {
    border-color: var(--prz-blue);
    background: rgba(0, 51, 102, 0.02);
}

.team-label strong {
    display: block;
    color: var(--prz-blue);
    margin-bottom: 5px;
}

.team-label p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.checkbox-group {
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    gap: 10px;
    cursor: pointer;
    align-items: flex-start;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
}

.checkbox-label span {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.6;
}

.checkbox-label a {
    color: var(--prz-blue);
    text-decoration: underline;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn-submit {
    min-width: 200px;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    font-size: 0.95rem;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.contact-info-card {
    background: var(--white);
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #eee;
}

.contact-info-card i {
    font-size: 2rem;
    color: var(--prz-blue);
    margin-bottom: 15px;
}

.contact-info-card h3 {
    color: var(--prz-blue);
    font-size: 1rem;
    margin-bottom: 10px;
}

.contact-info-card p,
.contact-info-card a {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.contact-info-card a {
    color: var(--prz-blue);
    text-decoration: underline;
}

/* ====================================
   WIKI Page Styles
   ==================================== */
.wiki-hero {
    background: linear-gradient(135deg, #003366 0%, #004d99 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.wiki-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(197, 160, 89, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(197, 160, 89, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.wiki-hero .hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.wiki-hero-icon {
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 20px;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.wiki-hero h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 20px;
    font-weight: 700;
}

.wiki-hero .hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.6;
}

.wiki-hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
    min-width: 120px;
}

.hero-stat:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.hero-stat strong {
    display: block;
    font-size: 2.5rem;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 5px;
}

.hero-stat span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wiki-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.wiki-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 50px;
    align-items: start;
}

.wiki-sidebar {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.sidebar-sticky {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 30px 25px;
}

.sidebar-sticky::-webkit-scrollbar {
    width: 6px;
}

.sidebar-sticky::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.sidebar-sticky::-webkit-scrollbar-thumb {
    background: var(--prz-blue);
    border-radius: 3px;
}

.sidebar-sticky::-webkit-scrollbar-thumb:hover {
    background: #002244;
}

.wiki-search {
    position: relative;
    margin-bottom: 30px;
}

.wiki-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--prz-blue);
    font-size: 1.1rem;
    z-index: 1;
}

.wiki-search input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.wiki-search input:focus {
    outline: none;
    border-color: var(--prz-blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.wiki-search input::placeholder {
    color: #aaa;
}

.wiki-nav h3 {
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--prz-gold);
}

.wiki-category {
    margin-bottom: 30px;
}

.wiki-category h4 {
    font-size: 0.9rem;
    color: var(--prz-blue);
    margin-bottom: 12px;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.05) 0%, rgba(0, 51, 102, 0.02) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.wiki-category h4:hover {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.08) 0%, rgba(0, 51, 102, 0.04) 100%);
    transform: translateX(2px);
}

.wiki-category h4 i {
    font-size: 1.1rem;
}

.wiki-category ul {
    list-style: none;
    padding: 0;
    padding-left: 8px;
}

.wiki-category li {
    margin-bottom: 4px;
}

.wiki-category a {
    display: block;
    padding: 10px 12px;
    color: var(--text-dark);
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.wiki-category a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--prz-gold);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.wiki-category a:hover {
    background: rgba(0, 51, 102, 0.05);
    color: var(--prz-blue);
    padding-left: 18px;
}

.wiki-category a:hover::before {
    transform: scaleY(1);
}

.wiki-category a.active {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.1) 0%, rgba(0, 51, 102, 0.05) 100%);
    color: var(--prz-blue);
    font-weight: 600;
    padding-left: 18px;
}

.wiki-category a.active::before {
    transform: scaleY(1);
}

.wiki-content {
    background: var(--white);
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    min-height: 600px;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--prz-blue);
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: var(--prz-gold);
}

.breadcrumbs .separator {
    color: #ccc;
}

.breadcrumbs strong {
    color: var(--text-dark);
}

/* Wiki Welcome */
.wiki-welcome {
    max-width: 100%;
}

.wiki-welcome h2 {
    color: var(--prz-blue);
    font-size: 2.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.wiki-welcome h2 i {
    color: var(--prz-gold);
}

.welcome-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.wiki-article {
    max-width: 100%;
    line-height: 1.8;
}

/* Article Headers */
.wiki-article h1 {
    color: var(--prz-blue);
    font-size: 2.8rem;
    margin-bottom: 10px;
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
}

.wiki-article h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--prz-gold) 0%, transparent 100%);
    border-radius: 2px;
}

.wiki-article h2 {
    color: var(--prz-blue);
    font-size: 2rem;
    margin-top: 50px;
    margin-bottom: 25px;
    font-weight: 600;
    padding-left: 15px;
    border-left: 4px solid var(--prz-gold);
}

.wiki-article h3 {
    color: #1a1a1a;
    font-size: 1.5rem;
    margin-top: 35px;
    margin-bottom: 20px;
    font-weight: 600;
}

.wiki-article h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Paragraphs */
.wiki-article p {
    line-height: 1.9;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.05rem;
}

.wiki-article p strong {
    color: var(--prz-blue);
    font-weight: 600;
}

/* Lists */
.wiki-article ul,
.wiki-article ol {
    margin-left: 30px;
    margin-bottom: 25px;
    line-height: 1.9;
}

.wiki-article li {
    margin-bottom: 12px;
    color: #2c3e50;
    font-size: 1.05rem;
}

.wiki-article ul li::marker {
    color: var(--prz-gold);
}

.wiki-article ol li::marker {
    color: var(--prz-blue);
    font-weight: 600;
}

/* Code Blocks - Premium Design */
.wiki-article pre {
    background: #1e1e1e;
    padding: 25px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 30px 0;
    border: 1px solid #2d2d2d;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
}

.wiki-article pre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--prz-gold), var(--prz-blue));
    border-radius: 12px 12px 0 0;
}

.wiki-article pre code {
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #d4d4d4;
    overflow-x: auto;
    background: transparent;
    padding: 0;
    border: none;
    display: block;
}

.wiki-article code {
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3px 8px;
    border-radius: 5px;
    color: #c7254e;
    border: 1px solid #e0e0e0;
}

.wiki-article pre code {
    background: transparent;
    padding: 0;
    border: none;
    color: #d4d4d4;
}

/* Syntax Highlighting Enhancement */
.wiki-article .hljs {
    background: transparent;
}

.wiki-article .hljs-comment {
    color: #6A9955;
    font-style: italic;
}

.wiki-article .hljs-keyword {
    color: #569CD6;
    font-weight: 600;
}

.wiki-article .hljs-string {
    color: #CE9178;
}

.wiki-article .hljs-number {
    color: #B5CEA8;
}

.wiki-article .hljs-function {
    color: #DCDCAA;
}

.wiki-article .hljs-class {
    color: #4EC9B0;
}
    overflow-x: auto;
    margin: 20px 0;
}

.wiki-article code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.wiki-article pre code {
    background: none;
    padding: 0;
    color: #e0e0e0;
}

/* Tables - Premium Design */
.wiki-article table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 35px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.wiki-article th,
.wiki-article td {
    padding: 16px 20px;
    text-align: left;
    border: none;
}

.wiki-article thead {
    background: linear-gradient(135deg, var(--prz-blue) 0%, #004d99 100%);
}

.wiki-article th {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid var(--prz-gold);
}

.wiki-article tbody tr {
    background: white;
    transition: all 0.2s ease;
}

.wiki-article tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.wiki-article tbody tr:hover {
    background: #e3f2fd;
    transform: translateX(3px);
}

.wiki-article td {
    color: #2c3e50;
    border-bottom: 1px solid #e0e0e0;
}

.wiki-article tbody tr:last-child td {
    border-bottom: none;
}

/* Table with code */
.wiki-article td code {
    background: #f1f3f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Blockquotes - Premium Design */
.wiki-article blockquote {
    border-left: 5px solid var(--prz-gold);
    background: linear-gradient(135deg, #fff9e6 0%, #fff5d6 100%);
    padding: 25px 30px;
    margin: 35px 0;
    border-radius: 8px;
    color: #2c3e50;
    font-style: italic;
    position: relative;
    box-shadow: 0 2px 10px rgba(197, 160, 89, 0.1);
}

.wiki-article blockquote::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--prz-gold);
    position: absolute;
    top: -10px;
    left: 15px;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.wiki-article blockquote p {
    margin: 0;
    padding-left: 30px;
}

/* Links - Premium Design */
.wiki-article a {
    color: var(--prz-blue);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    font-weight: 500;
}

.wiki-article a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--prz-gold), var(--prz-blue));
    transition: width 0.3s ease;
}

.wiki-article a:hover {
    color: var(--prz-gold);
}

.wiki-article a:hover::after {
    width: 100%;
}

/* Images */
.wiki-article img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.wiki-article img:hover {
    transform: scale(1.02);
}

.breadcrumbs {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.breadcrumbs a {
    color: var(--prz-blue);
    text-decoration: none;
}

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

.breadcrumbs .separator {
    margin: 0 8px;
    color: #ccc;
}

.wiki-welcome {
    padding: 20px 0;
}

.wiki-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.stat-card i {
    font-size: 2rem;
    color: var(--prz-blue);
    margin-bottom: 10px;
}

.stat-card strong {
    display: block;
    font-size: 1.8rem;
    color: var(--prz-blue);
    margin-bottom: 5px;
}

.stat-card span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.quick-start {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px;
    border-radius: 12px;
    margin: 40px 0;
    border: 1px solid #e0e0e0;
}

.quick-start h3 {
    color: var(--prz-blue);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
}

.quick-start > p {
    color: var(--text-dark);
    margin-bottom: 25px;
    font-size: 1rem;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.quick-link-card {
    padding: 20px;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.quick-link-card:hover {
    border-color: var(--prz-blue);
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 51, 102, 0.15);
}

.quick-link-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--prz-blue) 0%, #004d99 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.quick-link-card:hover .quick-link-icon {
    transform: scale(1.1) rotate(5deg);
}

.quick-link-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.quick-link-content strong {
    color: var(--prz-blue);
    font-size: 1.05rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.quick-link-card:hover .quick-link-content strong {
    color: var(--prz-gold);
}

.quick-link-content span {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Wiki Info Box */
.wiki-info-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid #2196f3;
    border-radius: 12px;
    padding: 25px;
    margin: 40px 0;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.wiki-info-box > i {
    font-size: 2rem;
    color: #1976d2;
    flex-shrink: 0;
}

.wiki-info-box strong {
    display: block;
    color: #1565c0;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.wiki-info-box p {
    color: #0d47a1;
    line-height: 1.6;
    margin: 0;
}

/* Article Status Badges */
.wiki-article-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 15px;
    vertical-align: middle;
}

.badge-complete {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
}

.badge-draft {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
}

.badge-planned {
    background: linear-gradient(135deg, #9e9e9e 0%, #757575 100%);
    color: white;
}

/* Alert Boxes */
.wiki-alert {
    border-radius: 12px;
    padding: 25px;
    margin: 35px 0;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid;
}

.wiki-alert i {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.wiki-alert-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left-color: #2196f3;
}

.wiki-alert-info i {
    color: #1976d2;
}

.wiki-alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    border-left-color: #ffc107;
}

.wiki-alert-warning i {
    color: #f57c00;
}

.wiki-alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left-color: #28a745;
}

.wiki-alert-success i {
    color: #1e7e34;
}

.wiki-alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-left-color: #dc3545;
}

.wiki-alert-danger i {
    color: #c82333;
}

/* Note Box (Yellow) */
.wiki-note {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 25px;
    margin: 35px 0;
    display: flex;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.15);
}

.wiki-note i {
    font-size: 1.8rem;
    color: #f57c00;
    flex-shrink: 0;
}

.wiki-note p {
    margin: 0;
    color: #856404;
    line-height: 1.7;
}

/* Loading State - Premium */
.loading {
    text-align: center;
    padding: 80px 20px;
    font-size: 1.2rem;
    color: var(--prz-blue);
}

.loading i {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    color: var(--prz-gold);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.1rem;
    color: #6c757d;
    margin-top: 15px;
}

/* Progress Bar */
.loading-progress {
    width: 200px;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    margin: 20px auto 0;
    overflow: hidden;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--prz-blue), var(--prz-gold), var(--prz-blue));
    background-size: 200% 100%;
    animation: progressSlide 1.5s ease-in-out infinite;
}

@keyframes progressSlide {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* Error State - Premium */
.wiki-error {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #fff5f5 0%, #fee 100%);
    border-radius: 12px;
    margin: 40px 0;
}

.wiki-error i {
    font-size: 4rem;
    color: #d32f2f;
    margin-bottom: 25px;
    display: block;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.wiki-error h3 {
    color: #c62828;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.wiki-error p {
    color: #6c757d;
}

/* Edit Link */
.wiki-edit-link {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 2px solid #e9ecef;
}

.wiki-edit-link a {
    color: #6c757d;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-radius: 8px;
}

.wiki-edit-link a:hover {
    color: var(--prz-blue);
    background: #f8f9fa;
    transform: translateX(5px);
}

.wiki-edit-link a i {
    font-size: 1.1rem;
}

/* ====================================
   Responsive Design Updates
   ==================================== */

/* Tablet */
@media (max-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wiki-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .wiki-sidebar {
        position: static;
    }
    
    .sidebar-sticky {
        position: static;
        max-height: none;
    }
    
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
    
    .wiki-hero-stats {
        gap: 20px;
    }
    
    .hero-stat {
        min-width: 100px;
        padding: 15px 20px;
    }
    
    .wiki-hero h1 {
        font-size: 2.5rem;
    }
    
    .wiki-hero-icon {
        font-size: 3rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .form-container {
        padding: 25px;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-submit {
        width: 100%;
    }
    
    .benefits-grid,
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    
    .wiki-content {
        padding: 25px;
    }
    
    .wiki-hero {
        padding: 60px 0 40px;
    }
    
    .wiki-hero h1 {
        font-size: 2rem;
    }
    
    .wiki-hero .hero-subtitle {
        font-size: 1rem;
    }
    
    .wiki-hero-icon {
        font-size: 2.5rem;
    }
    
    .wiki-hero-stats {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .hero-stat {
        width: 100%;
    }
    
    .wiki-article h1 {
        font-size: 1.8rem;
    }
    
    .wiki-article h2 {
        font-size: 1.4rem;
    }
    
    .quick-start {
        padding: 25px;
    }
    
    .quick-links-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .quick-link-card {
        padding: 15px;
    }
    
    .quick-link-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .wiki-info-box {
        flex-direction: column;
        padding: 20px;
    }
    
    .breadcrumbs {
        font-size: 0.85rem;
        padding: 12px 15px;
        flex-wrap: wrap;
    }
    
    .wiki-stats {
        grid-template-columns: 1fr;
    }
    
    .wiki-article table {
        font-size: 0.85rem;
    }
    
    .wiki-article pre {
        padding: 15px;
        font-size: 0.85rem;
    }
}


/* ====================================
   Premium Global Enhancements
   ==================================== */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--prz-blue) 0%, #004d99 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #004d99 0%, var(--prz-blue) 100%);
}

/* Selection Color */
::selection {
    background: var(--prz-gold);
    color: white;
}

::-moz-selection {
    background: var(--prz-gold);
    color: white;
}

/* Focus States */
*:focus {
    outline: 2px solid var(--prz-gold);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

/* Smooth Transitions Global */
* {
    scroll-behavior: smooth;
}

/* Code Font Import */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600&display=swap');

/* Horizontal Rule */
.wiki-article hr {
    border: none;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--prz-gold) 50%, transparent 100%);
    margin: 40px 0;
}

/* Keyboard Shortcuts Display */
.wiki-article kbd {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 2px 8px;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Definition List */
.wiki-article dl {
    margin: 25px 0;
}

.wiki-article dt {
    font-weight: 600;
    color: var(--prz-blue);
    margin-top: 15px;
}

.wiki-article dd {
    margin-left: 30px;
    margin-bottom: 10px;
    color: #2c3e50;
}

/* Mark/Highlight */
.wiki-article mark {
    background: linear-gradient(135deg, #fff9e6 0%, #ffe69c 100%);
    padding: 2px 6px;
    border-radius: 3px;
    color: #856404;
}

/* Abbreviation */
.wiki-article abbr {
    text-decoration: underline dotted var(--prz-gold);
    cursor: help;
}

/* Details/Summary */
.wiki-article details {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px 0;
}

.wiki-article summary {
    font-weight: 600;
    color: var(--prz-blue);
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wiki-article summary::before {
    content: '\25B6';
    display: inline-block;
    transition: transform 0.3s ease;
}

.wiki-article details[open] summary::before {
    transform: rotate(90deg);
}

/* Footer in Articles */
.wiki-article footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
    color: #6c757d;
    font-size: 0.9rem;
    font-style: italic;
}

/* Print Styles */
@media print {
    .wiki-sidebar,
    .breadcrumbs,
    .wiki-search,
    .wiki-hero,
    nav,
    footer {
        display: none !important;
    }
    
    .wiki-content {
        box-shadow: none !important;
        padding: 0 !important;
    }
    
    .wiki-article pre {
        page-break-inside: avoid;
    }
    
    .wiki-article table {
        page-break-inside: avoid;
    }
}
/* ====================================
   DARK MODE SYSTEM
   ==================================== */

:root[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3a3a3a;
    
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-tertiary: #808080;
    
    --prz-blue-dark: #4a90e2;
    --prz-gold-dark: #d4a853;
    
    --shadow-dark: 0 4px 20px rgba(0, 0, 0, 0.5);
    --border-dark: rgba(255, 255, 255, 0.1);
}

/* Dark Mode Styles */
[data-theme="dark"] body {
    background: var(--bg-primary);
    color: var(--text-primary);
}

[data-theme="dark"] .wiki-sidebar {
    background: var(--bg-secondary);
    border: 1px solid var(--border-dark);
}

[data-theme="dark"] .wiki-content {
    background: var(--bg-secondary);
    box-shadow: var(--shadow-dark);
}

[data-theme="dark"] .wiki-article h1,
[data-theme="dark"] .wiki-article h2 {
    color: var(--prz-blue-dark);
}

[data-theme="dark"] .wiki-article p,
[data-theme="dark"] .wiki-article li {
    color: var(--text-primary);
}

[data-theme="dark"] .wiki-category a {
    color: var(--text-secondary);
}

[data-theme="dark"] .wiki-category a:hover,
[data-theme="dark"] .wiki-category a.active {
    background: rgba(74, 144, 226, 0.2);
    color: var(--prz-blue-dark);
}

[data-theme="dark"] .wiki-search input {
    background: var(--bg-tertiary);
    border-color: var(--border-dark);
    color: var(--text-primary);
}

[data-theme="dark"] .wiki-search input::placeholder {
    color: var(--text-tertiary);
}

[data-theme="dark"] code {
    background: var(--bg-tertiary);
    color: var(--prz-gold-dark);
    border-color: var(--border-dark);
}

[data-theme="dark"] table {
    box-shadow: var(--shadow-dark);
}

[data-theme="dark"] thead {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
}

[data-theme="dark"] tbody tr {
    background: var(--bg-tertiary);
}

[data-theme="dark"] tbody tr:nth-child(even) {
    background: var(--bg-secondary);
}

[data-theme="dark"] tbody tr:hover {
    background: rgba(74, 144, 226, 0.1);
}

[data-theme="dark"] .quick-link-card {
    background: var(--bg-tertiary);
    border-color: var(--border-dark);
}

[data-theme="dark"] .quick-link-card:hover {
    border-color: var(--prz-blue-dark);
}

[data-theme="dark"] .breadcrumbs {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .wiki-info-box {
    background: linear-gradient(135deg, #1e3a5f 0%, #152740 100%);
    border-color: var(--prz-blue-dark);
}

/* ====================================
   DARK MODE TOGGLE BUTTON
   ==================================== */

.dark-mode-toggle {
    position: fixed;
    top: 100px;
    right: 30px;
    z-index: 1000;
    
    width: 60px;
    height: 60px;
    border-radius: 50%;
    
    background: linear-gradient(135deg, var(--prz-blue) 0%, #004d99 100%);
    border: 3px solid var(--prz-gold);
    
    color: white;
    font-size: 1.5rem;
    
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    box-shadow: 0 4px 20px rgba(0, 51, 102, 0.4);
    
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mode-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 30px rgba(197, 160, 89, 0.6);
}

.dark-mode-toggle:active {
    transform: scale(0.95);
}

.dark-mode-toggle i {
    transition: transform 0.4s ease;
}

.dark-mode-toggle:hover i {
    transform: rotate(-15deg);
}

[data-theme="dark"] .dark-mode-toggle {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border-color: var(--prz-gold-dark);
}

/* ====================================
   ADVANCED ANIMATIONS
   ==================================== */

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(197, 160, 89, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(197, 160, 89, 0.6);
    }
}

/* Apply animations */
.wiki-sidebar {
    animation: slideInLeft 0.6s ease-out;
}

.wiki-content {
    animation: slideInRight 0.6s ease-out;
}

.wiki-category {
    animation: fadeInUp 0.5s ease-out backwards;
}

.wiki-category:nth-child(1) { animation-delay: 0.1s; }
.wiki-category:nth-child(2) { animation-delay: 0.2s; }
.wiki-category:nth-child(3) { animation-delay: 0.3s; }
.wiki-category:nth-child(4) { animation-delay: 0.4s; }
.wiki-category:nth-child(5) { animation-delay: 0.5s; }
.wiki-category:nth-child(6) { animation-delay: 0.6s; }

.quick-link-card:hover .quick-link-icon {
    animation: pulse 0.6s ease-in-out;
}

/* ====================================
   INTERACTIVE ELEMENTS
   ==================================== */

/* Smooth scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--prz-blue), var(--prz-gold));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Reading time estimate */
.reading-time {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 20px;
    font-size: 0.9rem;
    color: #1565c0;
    margin: 20px 0;
    border: 1px solid #2196f3;
}

[data-theme="dark"] .reading-time {
    background: linear-gradient(135deg, #1e3a5f 0%, #152740 100%);
    border-color: var(--prz-blue-dark);
    color: var(--prz-blue-dark);
}

.reading-time i {
    font-size: 1.1rem;
}

/* Table of contents */
.article-toc {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid var(--prz-gold);
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
}

[data-theme="dark"] .article-toc {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    border-left-color: var(--prz-gold-dark);
}

.article-toc h3 {
    margin-top: 0;
    color: var(--prz-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

[data-theme="dark"] .article-toc h3 {
    color: var(--prz-blue-dark);
}

.article-toc ul {
    list-style: none;
    padding-left: 0;
}

.article-toc li {
    padding: 8px 0;
}

.article-toc a {
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

[data-theme="dark"] .article-toc a {
    color: var(--text-primary);
}

.article-toc a:hover {
    color: var(--prz-blue);
    transform: translateX(5px);
}

/* Copy code button */
.code-block-wrapper {
    position: relative;
}

.copy-code-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    
    color: #d4d4d4;
    font-size: 0.85rem;
    cursor: pointer;
    
    transition: all 0.3s ease;
}

.copy-code-btn:hover {
    background: rgba(197, 160, 89, 0.2);
    border-color: var(--prz-gold);
    color: var(--prz-gold);
}

.copy-code-btn.copied {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4caf50;
    color: #4caf50;
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #2d2d2d;
    color: white;
    text-align: center;
    border-radius: 8px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85rem;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #2d2d2d transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Enhanced Mobile Menu */
@media (max-width: 768px) {
    .dark-mode-toggle {
        top: 80px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Particle background effect */
.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
}

[data-theme="dark"] .particles-bg {
    opacity: 0.05;
}
/* ====================================
   WIKI SIDEBAR - NOWY UKŁAD I KOLORY
   ==================================== */

.wiki-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.wiki-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.sidebar-sticky {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 20px;
}

.wiki-nav h3 {
    color: #e2e8f0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(197, 160, 89, 0.3);
}

.wiki-nav h3 i {
    color: var(--prz-gold);
    margin-right: 8px;
}

.wiki-category {
    margin-bottom: 20px;
}

.wiki-category h4 {
    color: var(--prz-gold);
    font-size: 0.9rem;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: rgba(197, 160, 89, 0.1);
    border-radius: 6px;
    border-left: 3px solid var(--prz-gold);
}

.wiki-category h4 i {
    margin-right: 8px;
    font-size: 0.9rem;
}

.wiki-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wiki-category li {
    margin: 0;
}

.wiki-category a {
    display: block;
    padding: 8px 12px;
    color: #cbd5e0;
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-bottom: 2px;
}

.wiki-category a:hover {
    background: rgba(74, 144, 226, 0.15);
    color: #4a90e2;
    transform: translateX(4px);
    padding-left: 16px;
}

.wiki-category a.active {
    background: rgba(74, 144, 226, 0.2);
    color: #4a90e2;
    font-weight: 600;
    border-left: 3px solid #4a90e2;
    padding-left: 12px;
}

.wiki-search {
    position: relative;
    margin-bottom: 20px;
}

.wiki-search input {
    width: 100%;
    padding: 10px 12px 10px 38px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.wiki-search input::placeholder {
    color: rgba(226, 232, 240, 0.5);
}

.wiki-search input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--prz-gold);
}

.wiki-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(226, 232, 240, 0.5);
    font-size: 0.9rem;
}

.wiki-content {
    flex: 1;
    min-width: 0;
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Dark mode adjustments */
[data-theme="dark"] .wiki-sidebar {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

[data-theme="dark"] .wiki-category a {
    color: #94a3b8;
}

[data-theme="dark"] .wiki-category a:hover {
    background: rgba(74, 144, 226, 0.2);
    color: #60a5fa;
}

[data-theme="dark"] .wiki-category a.active {
    background: rgba(74, 144, 226, 0.25);
    color: #60a5fa;
}

/* Scrollbar dla sidebaru */
.sidebar-sticky::-webkit-scrollbar {
    width: 6px;
}

.sidebar-sticky::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.sidebar-sticky::-webkit-scrollbar-thumb {
    background: rgba(197, 160, 89, 0.3);
    border-radius: 3px;
}

.sidebar-sticky::-webkit-scrollbar-thumb:hover {
    background: rgba(197, 160, 89, 0.5);
}

/* Responsive */
@media (max-width: 1024px) {
    .wiki-layout {
        flex-direction: column;
    }
    
    .wiki-sidebar {
        width: 100%;
        position: static;
    }
    
    .sidebar-sticky {
        position: static;
        max-height: none;
    }
}

/* ====================================
   ROBOT GALLERY SECTION
   ==================================== */

.robot-gallery-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.gallery-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 0;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item figcaption {
    padding: 20px;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: white;
    border-top: 3px solid var(--prz-gold);
}

[data-theme="dark"] .robot-gallery-section {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
}

[data-theme="dark"] .gallery-item {
    background: var(--bg-secondary);
}

[data-theme="dark"] .gallery-item figcaption {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-item img {
        height: 300px;
    }
}

/* Robot Gallery in Hero */
.robot-gallery {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.robot-gallery img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}
