/* Reset i zmienne */
:root {
    --primary: #685BC7;
    --primary-dark: #4f3f9e;
    --primary-darker: #3b2f7a;
    --bg-dark: #323232;
    --bg-light: #f5f5f5;
    --text-light: #eee;
    --text-dark: #222;
    --gray: #888;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    --transition: all 0.3s ease;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main {
    flex: 1;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Nagłówek */
.site-header {
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}
.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary);
    letter-spacing: 1px;
}
.main-nav {
    display: flex;
    align-items: center;
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}
.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}
.nav-menu a:hover {
    border-bottom-color: var(--primary);
    color: var(--primary);
}
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}
.hamburger .bar {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 3px 0;
    transition: var(--transition);
}

/* Stopka */
.site-footer {
    background: #1a1a1a;
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-menu ul {
    list-style: none;
}
.footer-menu li {
    margin-bottom: 0.5rem;
}
.footer-menu a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}
.footer-menu a:hover {
    color: var(--primary);
}
.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}
.footer-social a {
    color: var(--gray);
    transition: var(--transition);
}
.footer-social a:hover {
    color: var(--primary);
}
.footer-copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: var(--gray);
    font-size: 0.9rem;
}

/* Responsywność menu */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        right: 5%;
        background: var(--bg-dark);
        flex-direction: column;
        width: 250px;
        padding: 1.5rem;
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
        border: 1px solid var(--primary);
        gap: 1rem;
    }
    .nav-menu.active {
        display: flex;
    }
    .footer-social {
        justify-content: center;
    }
}

/* Przyciski */
.btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    text-align: center;
}
.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}
.btn:active {
    background: var(--primary-darker);
    transform: translateY(0);
}

/* Ramki na zdjęcia i filmy */
.image-frame, .video-frame {
    border: 3px solid var(--primary);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin: 1.5rem 0;
}
.image-frame img, .video-frame iframe {
    width: 100%;
    height: auto;
    display: block;
}
.video-frame {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}
.video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Formularze */
form {
    max-width: 600px;
    margin: 2rem auto;
}
.form-group {
    margin-bottom: 1.5rem;
}
label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
    color: var(--text-light);
}
input, textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: var(--border-radius);
    border: 1px solid #444;
    background: #2a2a2a;
    color: var(--text-light);
    font-family: inherit;
}
input:focus, textarea:focus {
    outline: 2px solid var(--primary);
    border-color: transparent;
}
button[type="submit"] {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}
button[type="submit"]:hover {
    background: var(--primary-dark);
}

/* Tytuły */
h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}
h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    border-left: 5px solid var(--primary);
    padding-left: 1rem;
}

/* Komentarze */
.comment {
    background: #2a2a2a;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary);
}
.comment-author {
    font-weight: bold;
    color: var(--primary);
}
.comment-date {
    font-size: 0.8rem;
    color: var(--gray);
}

/* Panel admina */
.admin-section {
    background: #2a2a2a;
    padding: 2rem;
    border-radius: var(--border-radius);
}