/* Podstawowy styl z adminstyle.css z lekkimi modyfikacjami */

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #0b0f1a;
    color: #fff;
    min-height: 100vh;
    background: linear-gradient(to bottom, #0b0f1a 0%, #1a233a 100%);
    overflow-x: hidden;
}

/* Gwiezdne animacje tła */
body::before, body::after {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 200%;
    height: 200%;
    background-repeat: repeat;
    z-index: -1;
}


.highlight {
    margin-left: auto;
    margin-right: auto;
    width: 95%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #111;
    border: 2px solid #444;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.highlight h2 {
    color: #4aa8ff;
    font-size: 1.2em;
    margin-top: 15px;
}

.highlight img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 10px;
    border: 2px solid red;
}

a{all:unset; text-decoration: none; cursor: pointer;}

body::before {
    background-image: url('https://www.transparenttextures.com/patterns/stardust.png');
    animation: moveStars 100s linear infinite;
    opacity: 0.3;
}

body::after {
    background-image: url('https://www.transparenttextures.com/patterns/stardust.png');
    animation: moveStars 150s linear infinite reverse;
    opacity: 0.2;
}

@keyframes moveStars {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-500px, -500px); }
}

h2 {
    color: #4aa8ff;
    margin-left: 20px;
    margin-top: 30px;
}

/* Kontener listy tapet */
.wallpaper-list {
    width: 100%;
    padding: 0 20px 40px 20px;
    box-sizing: border-box;
}

/* Panel na wybraną tapetę (OnlyOneWallpaper) */
.only-one-wallpaper {
    width: 100%;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.only-one-wallpaper .wallpaper-panel {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 30px #4aa8ff;
    max-width: 1000px;
    width: 100%;
    position: relative;
}

.only-one-wallpaper img {
    width: 100%;
    height: auto;
    display: block;
}

.only-one-wallpaper .name {
    position: absolute;
    bottom: 10px;
    left: 20px;
    font-size: 1.8rem;
    color: #4aa8ff;
    text-shadow: 0 0 10px #000;
}

/* Grid tapet */
.wallpaper-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
}

.wallpaper-panel {
    background: #101928;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.7);
    cursor: pointer;
    overflow: hidden;
    width: 220px;
    text-align: center;
    transition: transform 0.3s ease;
}

.wallpaper-panel:hover {
    transform: scale(1.05);
}

.wallpaper-panel img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #1e2d45;
}

.wallpaper-panel .name {
    padding: 10px 5px;
    font-weight: 600;
    color: #4aa8ff;
}

/* NSFW: blur + gwiazdki + animacja */
.wallpaper-grid.nsfw .wallpaper-panel img {
    filter: blur(6px);
    position: relative;
    transition: filter 0.4s ease;
}

.wallpaper-grid.nsfw .wallpaper-panel:hover img {
    filter: blur(0);
}

/* Dodatkowe: na NSFW tapetach animacja gwiazd nałożona */
.wallpaper-grid.nsfw .wallpaper-panel::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    background-image: url('https://www.transparenttextures.com/patterns/stardust.png');
    animation: moveStars 100s linear infinite;
    opacity: 0.2;
    border-radius: 12px;
    mix-blend-mode: screen;
}

/* Responsive */
@media (max-width: 600px) {
    .wallpaper-panel {
        width: 48%;
    }

    .only-one-wallpaper .wallpaper-panel .name {
        font-size: 1.2rem;
        left: 10px;
        bottom: 5px;
    }
}
