*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{
    background:#090611;
    color:white;
    overflow-x:hidden;
}

/* TŁO */

body::before{
    content:"";
    position:fixed;
    width:800px;
    height:800px;
    background:radial-gradient(circle, rgba(168,85,247,0.25) 0%, transparent 70%);
    top:-300px;
    left:-300px;
    z-index:-2;
}

body::after{
    content:"";
    position:fixed;
    width:700px;
    height:700px;
    background:radial-gradient(circle, rgba(124,58,237,0.2) 0%, transparent 70%);
    bottom:-250px;
    right:-250px;
    z-index:-2;
}

.glow{
    position:absolute;
    width:350px;
    height:350px;
    background:#7c3aed;
    filter:blur(170px);
    opacity:0.15;
    z-index:-1;
}

.glow1{
    top:20%;
    left:10%;
}

.glow2{
    bottom:10%;
    right:10%;
}

/* HEADER */

header{
    position:sticky;
    top:0;
    z-index:999;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:22px 8%;
    background:rgba(8,8,15,0.45);
    backdrop-filter:blur(18px);
    border-bottom:1px solid rgba(255,255,255,0.06);
}

.logo{
    font-size:30px;
    font-weight:bold;
    letter-spacing:2px;
    background:linear-gradient(90deg,#f0abfc,#a855f7,#7c3aed);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

nav a{
    color:white;
    text-decoration:none;
    margin-left:28px;
    opacity:0.75;
    transition:0.3s;
    font-size:15px;
}

nav a:hover{
    opacity:1;
    color:#d8b4fe;
}

/* HERO */

.hero{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:80px 8%;
}

.hero-box{
    max-width:950px;
    width:100%;
    padding:65px;
    border-radius:35px;
    background:rgba(255,255,255,0.05);
    border:1px solid rgba(255,255,255,0.08);
    backdrop-filter:blur(22px);
    box-shadow:
        0 0 40px rgba(124,58,237,0.15),
        inset 0 0 25px rgba(255,255,255,0.02);
}

.hero h1{
    font-size:78px;
    line-height:1;
    margin-bottom:25px;
}

.gradient{
    background:linear-gradient(90deg,#f0abfc,#a855f7,#7c3aed);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.hero p{
    font-size:20px;
    line-height:1.9;
    opacity:0.88;
    margin-bottom:40px;
}

/* BUTTONY */

.buttons{
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
}

.btn{
    display:inline-block;
    padding:16px 32px;
    border-radius:18px;
    text-decoration:none;
    color:white;
    font-weight:bold;
    transition:0.3s;
    border:none;
    cursor:pointer;
    font-size:15px;
}

.btn-primary{
    background:linear-gradient(90deg,#9333ea,#6d28d9);
    box-shadow:0 0 25px rgba(147,51,234,0.45);
}

.btn-primary:hover{
    transform:translateY(-5px);
    box-shadow:0 0 35px rgba(147,51,234,0.75);
}

.btn-secondary{
    background:rgba(255,255,255,0.05);
    border:1px solid rgba(255,255,255,0.08);
}

.btn-secondary:hover{
    background:rgba(255,255,255,0.08);
    transform:translateY(-5px);
}

/* SEKCJE */

.section{
    padding:100px 8%;
}

.section-title{
    font-size:46px;
    margin-bottom:30px;
}

.section-subtitle{
    opacity:0.8;
    line-height:1.8;
    margin-bottom:25px;
}

/* KARTY */

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:25px;
    margin-top:45px;
}

.card{
    padding:35px;
    border-radius:28px;
    background:rgba(255,255,255,0.04);
    border:1px solid rgba(255,255,255,0.07);
    backdrop-filter:blur(15px);
    transition:0.35s;
}

.card:hover{
    transform:translateY(-10px);
    box-shadow:0 0 30px rgba(124,58,237,0.25);
}

.card h3{
    margin-bottom:15px;
    color:#d8b4fe;
    font-size:24px;
}

.card p{
    line-height:1.8;
    opacity:0.85;
}

/* NEWS */

.news-card{
    overflow:hidden;
    padding:0;
}

.news-card:hover{
    transform:translateY(-10px);
}

.news-card img{
    width:100%;
    height:230px;
    object-fit:cover;
    display:block;
}

.news-body{
    padding:28px;
}

.news-title{
    font-size:26px;
    line-height:1.25;
    color:#f0abfc;
    margin-bottom:12px;
}

.news-date{
    opacity:0.65;
    font-size:14px;
    margin-bottom:16px;
}

.news-text{
    line-height:1.85;
    opacity:0.9;
}

.news-btn{
    margin-top:22px;
}

.badge{
    display:inline-block;
    padding:8px 12px;
    border-radius:999px;
    background:rgba(168,85,247,0.16);
    border:1px solid rgba(168,85,247,0.35);
    color:#e9d5ff;
    font-size:13px;
    margin-bottom:16px;
}

/* OŚ CZASU */

.timeline{
    position:relative;
    max-width:900px;
    margin:50px auto 0;
}

.timeline::before{
    content:"";
    position:absolute;
    left:22px;
    top:0;
    bottom:0;
    width:3px;
    background:linear-gradient(#a855f7,#7c3aed);
}

.timeline-item{
    position:relative;
    padding-left:70px;
    margin-bottom:35px;
}

.timeline-item::before{
    content:"";
    position:absolute;
    left:12px;
    top:8px;
    width:20px;
    height:20px;
    border-radius:50%;
    background:#a855f7;
    box-shadow:0 0 15px rgba(168,85,247,0.8);
}

.timeline-year{
    color:#d8b4fe;
    font-weight:bold;
    font-size:20px;
    margin-bottom:8px;
}

.timeline-content{
    padding:25px;
    border-radius:22px;
    background:rgba(255,255,255,0.04);
    border:1px solid rgba(255,255,255,0.07);
    backdrop-filter:blur(12px);
}

.timeline-content p{
    line-height:1.8;
    opacity:0.9;
}

/* POST */

.post-shell{
    max-width:1100px;
    margin:0 auto;
    padding:100px 8%;
}

.post-box{
    padding:40px;
    border-radius:32px;
    background:rgba(255,255,255,0.05);
    border:1px solid rgba(255,255,255,0.08);
    backdrop-filter:blur(22px);
    box-shadow:0 0 40px rgba(124,58,237,0.12);
}

.post-header{
    margin-bottom:25px;
}

.post-title{
    font-size:54px;
    line-height:1.05;
    margin-bottom:16px;
}

.post-meta{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    align-items:center;
    opacity:0.75;
    margin-bottom:20px;
}

.post-image{
    width:100%;
    max-height:520px;
    object-fit:cover;
    border-radius:26px;
    margin-bottom:28px;
    border:1px solid rgba(255,255,255,0.06);
}

.post-content{
    font-size:18px;
    line-height:1.9;
    opacity:0.95;
    white-space:pre-wrap;
}

.post-actions{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
    margin-top:30px;
}

/* FORMULARZE */

.form-shell{
    max-width:980px;
    margin:0 auto;
    padding:90px 8%;
}

.auth-shell{
    max-width:720px;
    margin:0 auto;
    padding:110px 8%;
}

.form-box{
    padding:38px;
    border-radius:32px;
    background:rgba(255,255,255,0.05);
    border:1px solid rgba(255,255,255,0.08);
    backdrop-filter:blur(18px);
    box-shadow:0 0 40px rgba(124,58,237,0.12);
}

.form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
}

.form-grid .full{
    grid-column:1 / -1;
}

.form-group{
    margin-bottom:18px;
}

.form-group label{
    display:block;
    margin-bottom:10px;
    color:#e9d5ff;
    font-weight:bold;
    font-size:15px;
}

.form-group input,
.form-group textarea{
    width:100%;
    padding:16px 18px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,0.1);
    background:rgba(255,255,255,0.05);
    color:white;
    outline:none;
    transition:0.25s;
}

.form-group input:focus,
.form-group textarea:focus{
    border-color:rgba(168,85,247,0.55);
    box-shadow:0 0 0 4px rgba(168,85,247,0.12);
}

.form-group textarea{
    min-height:240px;
    resize:vertical;
}

.form-help{
    margin-top:10px;
    opacity:0.65;
    font-size:13px;
    line-height:1.6;
}

.form-row{
    display:flex;
    gap:16px;
    flex-wrap:wrap;
    align-items:center;
}

.check{
    display:flex;
    gap:10px;
    align-items:center;
    margin:8px 0 18px;
    opacity:0.9;
}

.check input{
    width:auto;
}

.notice{
    padding:16px 18px;
    border-radius:18px;
    margin-bottom:22px;
    line-height:1.7;
}

.notice-success{
    background:rgba(34,197,94,0.12);
    border:1px solid rgba(34,197,94,0.25);
}

.notice-error{
    background:rgba(239,68,68,0.12);
    border:1px solid rgba(239,68,68,0.25);
}

.search-box{
    display:flex;
    gap:12px;
    justify-content:center;
    flex-wrap:wrap;
    margin-top:24px;
}

.search-box input{
    min-width:min(100%, 380px);
    padding:16px 18px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,0.1);
    background:rgba(255,255,255,0.05);
    color:white;
    outline:none;
}

/* ADMIN LISTA */

.admin-list{
    display:grid;
    gap:18px;
    margin-top:24px;
}

.admin-item{
    display:grid;
    grid-template-columns:130px 1fr auto;
    gap:16px;
    align-items:center;
    padding:18px;
    border-radius:24px;
    background:rgba(255,255,255,0.04);
    border:1px solid rgba(255,255,255,0.08);
}

.admin-thumb{
    width:130px;
    height:92px;
    border-radius:18px;
    object-fit:cover;
    background:rgba(255,255,255,0.04);
}

.admin-title{
    font-size:20px;
    color:#f0abfc;
    margin-bottom:6px;
}

.admin-meta{
    opacity:0.72;
    font-size:14px;
    margin-bottom:10px;
}

.admin-actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    justify-content:flex-end;
}

.muted{
    opacity:0.7;
}

hr.sep{
    border:none;
    border-top:1px solid rgba(255,255,255,0.08);
    margin:35px 0;
}

/* FOOTER */

footer{
    margin-top:70px;
    padding:30px;
    text-align:center;
    opacity:0.55;
    border-top:1px solid rgba(255,255,255,0.08);
}

/* RESPONSYWNOŚĆ */

@media(max-width:900px){
    .admin-item{
        grid-template-columns:1fr;
    }

    .admin-thumb{
        width:100%;
        height:220px;
    }

    .admin-actions{
        justify-content:flex-start;
    }

    .post-title{
        font-size:40px;
    }

    .hero h1{
        font-size:62px;
    }

    .form-grid{
        grid-template-columns:1fr;
    }
}

@media(max-width:768px){

    .hero h1{
        font-size:52px;
    }

    .hero-box{
        padding:40px;
    }

    .section-title{
        font-size:38px;
    }

    nav{
        display:none;
    }

    .post-shell,
    .form-shell,
    .auth-shell{
        padding-left:5%;
        padding-right:5%;
    }

    .post-box,
    .form-box,
    .hero-box{
        border-radius:26px;
    }
}
