/* --- ZMIENNE I RESET --- */
:root {
    --bg-gradient: linear-gradient(180deg, rgba(26, 26, 26, 0.8) 0%, rgba(36, 25, 14, 0.6) 100%);
    --nav-bg: rgba(15, 15, 15, 0.85);
    --text-color: #ffffff;
    --primary-color: #f7931e;
    --discord-color: #5865F2;
    --font-headers: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: #1a1a1a;
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-gradient), url('img/tlo.webp') center/cover fixed;
    filter: blur(4px) brightness(0.8);
    z-index: -2;
}

#sand-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

/* --- NAGŁÓWEK --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--nav-bg);
    border-bottom: 1px solid rgba(247, 147, 30, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

header .logo img {
    height: 35px;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    transition: 0.3s;
}

nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(15, 15, 15, 0.98);
    padding: 20px 0;
    text-align: center;
}

nav.active {
    display: block;
}

nav ul {
    list-style: none;
}

nav ul li a {
    text-decoration: none;
    color: #888;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
}

nav ul li a.active {
    color: var(--primary-color);
}

/* --- TREŚĆ GŁÓWNA --- */
main {
    padding: 10px 20px;
    position: relative;
    z-index: 10;
}

section {
    margin-bottom: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

h1,
h2 {
    font-family: var(--font-headers);
    text-transform: uppercase;
    margin-bottom: 15px;
}

h1 {
    font-size: 24px;
    text-shadow: 0 0 15px rgba(247, 147, 30, 0.3);
}

p {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 20px;
}

.highlight {
    color: var(--primary-color);
}

/* --- KAFELKI (STRONA GŁÓWNA) --- */
.features-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 10px;
    margin: 15px auto 20px auto;
    width: 100%;
}

.feature-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(247, 147, 30, 0.2);
    border-radius: 12px;
    padding: 15px;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.feature-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.feature-icon {
    font-size: 24px;
}

.feature-item span:last-child {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    line-height: 1.2;
}

/* --- PRZYCISKI --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    height: 55px;
    border-radius: 6px;
    font-family: var(--font-headers);
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 13px;
    transition: 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-discord {
    background: var(--discord-color);
    color: #fff;
    gap: 10px;
}

.btn-icon {
    height: 20px;
    margin-right: 10px;
    filter: brightness(0) invert(1);
}

.btn-discord img {
    height: 20px;
}

.copy-container,
.discord-btn-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.copy-alert {
    position: absolute;
    bottom: -35px;
    background: #4caf50;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11px;
    opacity: 0;
    transition: 0.3s;
}

.copy-alert.show {
    opacity: 1;
    transform: translateY(5px);
}

.skin-render {
    margin: 15px 0;
}

.skin-render img {
    height: 250px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

/* MOBILNE WYRÓWNANIE DISCORDA */
.discord-container {
    display: flex;
    flex-direction: column;
}

.discord-content {
    order: 1;
}

.skin-man {
    order: 2;
}

/* --- ADMINISTRACJA - STYLE OGÓLNE --- */
.admin-page {
    padding: 40px 0;
    max-width: 1000px;
    margin: 0 auto;
}

.page-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 10px;
}

.admin-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 25px;
    transition: 0.3s ease;
    backdrop-filter: blur(5px);
    text-align: left;
    /* Wyrównanie tekstu do lewej */
}

.admin-card:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
}

.admin-head img {
    height: 80px;
    width: 80px;
    image-rendering: pixelated;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

.admin-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Wyrównanie zawartości info do lewej */
    gap: 6px;
}

.admin-mc-name {
    font-family: var(--font-headers);
    font-size: 20px;
    text-transform: uppercase;
}

.admin-desc {
    color: #bbb;
    font-size: 15px;
}

.admin-discord-badge {
    display: inline-flex;
    align-items: center;
    background: #5865F2;
    padding: 6px 16px;
    border-radius: 50px;
    gap: 8px;
    width: fit-content;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.2);
    margin-top: 5px;
}

.admin-discord-badge img {
    height: 16px;
}

.admin-discord-badge span {
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* --- STOPKA --- */
footer {
    padding: 30px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-disclaimer p {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 10px;
}

.footer-copyright p {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
}

/* --- WIDOK PC --- */
@media (min-width: 769px) {
    header {
        padding: 15px 5%;
    }

    header .logo img {
        height: 45px;
    }

    .menu-toggle {
        display: none;
    }

    nav {
        display: block;
        position: static;
        width: auto;
        background: none;
    }

    nav ul {
        display: flex;
        gap: 40px;
    }

    .hero-container,
    .discord-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        max-width: 1400px;
        margin: 0 auto;
        gap: 80px;
        padding: 30px 5%;
    }

    h1 {
        font-size: 52px;
        line-height: 1.2;
    }

    h2 {
        font-size: 46px;
    }

    p {
        font-size: 18px;
        max-width: 650px;
    }

    .hero-content {
        text-align: left;
        flex: 1.2;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-content .features-grid {
        justify-content: flex-start;
        max-width: 700px;
        margin: 25px 0;
    }

    .hero-content .copy-container {
        align-items: flex-start;
    }

    .skin-woman {
        flex: 0.8;
        display: flex;
        justify-content: flex-end;
    }

    .discord-content {
        text-align: right;
        flex: 1.2;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        order: 2;
    }

    .discord-content .features-grid {
        justify-content: flex-end;
        max-width: 700px;
        margin: 25px 0;
    }

    .discord-content .discord-btn-wrapper {
        align-items: flex-end;
    }

    .skin-man {
        flex: 0.8;
        display: flex;
        justify-content: flex-start;
        order: 1;
    }

    .feature-item {
        flex: 1;
        min-height: 120px;
        max-width: 220px;
        padding: 20px;
    }

    .feature-inner {
        flex-direction: column;
        text-align: center;
    }

    .feature-icon {
        font-size: 32px;
    }

    .feature-item span:last-child {
        font-size: 13px;
    }

    .skin-render {
        margin: 0;
    }

    .skin-render img {
        height: 550px;
    }

    /* Administracja PC */
    .page-title {
        font-size: 48px;
    }

    .admin-card {
        padding: 30px;
        gap: 40px;
    }

    .admin-head img {
        height: 120px;
        width: 120px;
    }

    .admin-mc-name {
        font-size: 26px;
    }

    .admin-desc {
        font-size: 18px;
    }

    footer {
        padding: 40px 5%;
    }
}

/* --- DOSTOSOWANIE MOBILNE (DLA ADMINISTRACJI) --- */
@media (max-width: 768px) {
    .admin-card {
        gap: 15px;
        padding: 15px;
    }

    .admin-head img {
        height: 60px;
        width: 60px;
    }

    .admin-mc-name {
        font-size: 18px;
    }

    .admin-desc {
        font-size: 14px;
    }

    .admin-discord-badge {
        padding: 5px 12px;
    }
}

.admin-discord-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: fit-content;
}

.admin-discord-badge:hover {
    filter: brightness(1.2);
    transform: scale(1.05);
    transition: 0.2s;
}

/* --- AKTUALNOŚCI --- */
.news-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 32px;
    margin-bottom: 40px;
    text-align: center;
}

.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.news-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(247, 147, 30, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: 0.3s ease;
    text-align: left;
    backdrop-filter: blur(5px);
}

.news-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
}

.news-date {
    background: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    font-size: 12px;
    font-weight: bold;
    width: fit-content;
    border-bottom-right-radius: 10px;
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    font-family: var(--font-headers);
    margin-bottom: 10px;
    color: #fff;
}

.news-content p {
    font-size: 14px;
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-more {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Płynne przewijanie do sekcji #news */
html {
    scroll-behavior: smooth;
}


.rules-page {
    padding: 120px 20px 60px;
    min-height: 80vh;
    display: flex;
    justify-content: center;
}

.rules-container {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.rules-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    margin-top: 40px;
    backdrop-filter: blur(10px);
}

.rules-placeholder {
    color: #bbb;
    font-size: 18px;
    line-height: 1.6;
}