/* --- Zmienne CSS --- */
:root {
    --color-dark-bg: #0A0A0A;
    --color-light-bg: #1A1A1A;
    --color-text-light: #F0F0F0;
    --color-text-gray: #B0B0B0;
    --color-accent-purple: #9B51E0;
    --color-accent-turquoise: #00E5FF;
    --border-color: #333333;
    --border-glow: 0 0 15px rgba(155, 81, 224, 0.4);
    --text-shadow-glow: 0 0 8px rgba(155, 81, 224, 0.6);
    --header-height: 80px;
    --footer-height: 60px;
    --sidebar-width: 200px;
}

/* --- Globalne style --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Roboto Mono', monospace;
    line-height: 1.6;
    color: var(--color-text-light);
    background-color: var(--color-dark-bg);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    /* KLUCZOWE: Paddingi na komputerze, by uwzględnić fixed header/footer */
    padding-top: var(--header-height);
    padding-bottom: var(--footer-height);
}

a {
    color: var(--color-accent-turquoise);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: var(--color-text-light);
    text-shadow: 0 0 5px var(--color-accent-turquoise);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Rajdhani', sans-serif;
    color: var(--color-accent-purple);
    text-shadow: var(--text-shadow-glow);
    margin-bottom: 0.5em;
    letter-spacing: 1px;
}

p {
    margin-bottom: 1em;
}

/* --- Nagłówek i Stopka (Fixed) --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    background-color: var(--color-light-bg);
    padding: 15px 20px;
    border-bottom: 2px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    background-color: var(--color-light-bg);
    padding: 20px;
    border-top: 2px solid var(--border-color);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
    text-align: center;
    height: var(--footer-height);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Holy Grail Layout (Desktop) --- */
.holy-grail-container {
    display: flex;
    width: 100%;
    /* NIE UŻYWAMY fixed, bo body ma już paddingi */
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
    margin: 0 auto;
}

.left-sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background-color: var(--color-light-bg);
    border-right: 1px solid var(--border-color);
    padding: 20px;
    overflow-y: auto;
}

.right-sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background-color: var(--color-light-bg);
    border-left: 1px solid var(--border-color);
    padding: 20px;
    overflow-y: auto;
}

.main-content {
    flex-grow: 1;
    padding: 20px;
    overflow-y: visible;
}

/* --- Nawigacja i Menu Mobilne (Desktop) --- */

.menu-toggle {
    display: none; /* Ukryty na desktopie */
}

.main-nav {
    display: none; /* Ukryty na desktopie, używamy sidebarów */
}

/* --- Wideo i Obrazy (dla Responsywności) --- */
.content-block iframe, .news-post iframe,
.content-block img, .news-post img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px auto;
}

/* --- Responsywność (poniżej 768px) --- */
@media (max-width: 768px) {
    /* Resetujemy layout na mobilny (przewijanie pionowe) */
    body {
        padding-top: var(--header-height);
        padding-bottom: var(--footer-height);
        min-height: auto;
    }

    .holy-grail-container {
        flex-direction: column;
        min-height: auto;
    }

    /* Ukrywamy sidebary na telefonie */
    .left-sidebar, .right-sidebar {
        display: none;
    }

    .main-content {
        width: 100%;
        padding: 20px;
    }

    /* Włączamy przycisk menu mobilnego */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 2001;
    }

    .menu-toggle .bar {
        width: 100%;
        height: 3px;
        background-color: var(--color-accent-purple);
        transition: all 0.3s linear;
        border-radius: 3px;
    }

    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.is-active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .menu-toggle.is-active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Menu mobilne (rozwija się na całą wysokość ekranu) */
    .main-nav {
        display: flex; /* Włączamy widoczność, wcześniej było display: none; */
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height)); /* Zaczyna się pod headerem */
        background-color: var(--color-light-bg);
        transform: translateX(-100%); /* Początkowo poza ekranem */
        transition: transform 0.5s ease;
        padding: 20px;
        box-shadow: 2px 0 10px rgba(0,0,0,0.5);
        z-index: 1500;
        overflow-y: auto;
        justify-content: center;
        align-items: flex-start;
    }

    .main-nav.is-active {
        transform: translateX(0); /* KLUCZOWE: Wsuwamy menu na ekran */
    }

    .main-nav ul {
        list-style: none;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 90%;
        max-width: 400px;
    }

    .main-nav ul li a {
        display: block;
        padding: 15px 20px;
        text-align: center;
        font-size: 1.2rem;
        background-color: var(--color-dark-bg);
        border: 1px solid var(--border-color);
        transition: background-color 0.3s ease;
    }

    .mobile-muza-header {
        margin-top: 20px;
        text-align: center;
        color: var(--color-accent-turquoise);
        font-size: 1.5rem;
        font-family: 'Rajdhani', sans-serif;
    }
}
/* --- Style dla Księgi Gości (Guestbook) --- */

.guestbook-entry {
    background-color: var(--color-light-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    transition: border-color 0.3s ease;
}

.guestbook-entry:hover {
    border-color: var(--color-accent-purple);
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px dashed var(--border-color);
}

.entry-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color-accent-turquoise);
    text-shadow: 0 0 5px rgba(0, 229, 255, 0.5);
}

.entry-date {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--color-text-gray);
}

.entry-body p {
    margin-top: 10px;
    margin-bottom: 0;
    line-height: 1.8;
}

/* Upewnij się, że formularz kontaktowy ma styl (już jest używany w contact.php) */
.contact-form .form-group {
    margin-bottom: 20px;
}
