/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Press Start 2P', monospace;
    background:
        radial-gradient(circle at 15% 0%, rgba(248, 113, 181, 0.4), transparent 55%),
        radial-gradient(circle at 85% 100%, rgba(244, 63, 94, 0.35), transparent 55%),
        linear-gradient(145deg, rgba(15, 23, 42, 0.95), #020617 60%, #020617 100%),
        url('assets/bg-minecraft-pink.png');
    background-size:
        auto,
        auto,
        cover,
        cover;
    background-attachment: fixed, fixed, fixed, fixed;
    background-position: center center;
    color: #e0d6f0;
    overflow-x: hidden;
    line-height: 1.8;
}

/* ===== CANVAS PARTICLES BG ===== */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f0f14;
}

::-webkit-scrollbar-thumb {
    background: #ff4fd8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff77e9;
}

/* ===== UTILITIES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    font-size: clamp(1.2rem, 4vw, 2rem);
    color: #ff4fd8;
    margin-bottom: 60px;
    text-shadow: 0 0 20px #ff4fd880, 0 0 40px #ff4fd840;
    letter-spacing: 2px;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===== NAVIGATION ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(15, 15, 20, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid #ff4fd830;
    padding: 14px 0;
}

nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.1rem;
    color: #ff4fd8;
    text-shadow: 0 0 12px #ff4fd880;
    text-decoration: none;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: #c0b0e0;
    text-decoration: none;
    font-size: 0.55rem;
    transition: all 0.3s;
    letter-spacing: 1px;
    padding: 8px 12px;
    border-radius: 6px;
}

.nav-links a:hover {
    color: #ff77e9;
    text-shadow: 0 0 10px #ff4fd880;
    background: rgba(255, 79, 216, 0.05);
}

.nav-links a.nav-active {
    color: #ff4fd8;
    background: rgba(255, 79, 216, 0.1);
    box-shadow: inset 0 0 10px rgba(255, 79, 216, 0.2);
}

.nav-discord {
    border: 1px solid #7289da40;
    color: #7289da !important;
}

.nav-discord:hover {
    background: #7289da15 !important;
    border-color: #7289da !important;
    box-shadow: 0 0 15px #7289da40;
}

.nav-sklep {
    border: 1px solid #ff4fd840;
    color: #ff4fd8 !important;
}

.nav-sklep:hover {
    background: #ff4fd815 !important;
    border-color: #ff4fd8 !important;
    box-shadow: 0 0 15px #ff4fd840;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.nav-hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: #ff4fd8;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* ===== HERO ===== */
#hero,
.admin-page-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
}

.admin-page-hero {
    min-height: 50vh;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2rem, 8vw, 4.5rem);
    color: #fff;
    text-shadow:
        0 0 20px #ff4fd8,
        0 0 40px #ff4fd880,
        0 0 80px #ff4fd850,
        0 0 120px #ff4fd830;
    margin-bottom: 20px;
    animation: heroGlow 3s ease-in-out infinite alternate, heroSlideIn 1s ease-out;
}

@keyframes heroGlow {
    0% {
        text-shadow: 0 0 20px #ff4fd8, 0 0 40px #ff4fd880, 0 0 80px #ff4fd850;
    }

    100% {
        text-shadow: 0 0 30px #ff77e9, 0 0 60px #ff77e9a0, 0 0 100px #ff77e970, 0 0 140px #ff4fd840;
    }
}

@keyframes heroSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-40px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-subtitle {
    font-size: clamp(0.5rem, 2vw, 0.9rem);
    color: #c8b8e8;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.3s both;
    letter-spacing: 2px;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== BUTTONS ===== */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn-primary {
    display: inline-block;
    padding: 18px 40px;
    background: linear-gradient(135deg, #ff4fd8, #c026d3);
    color: #fff;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid #ff77e9;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    animation: btnPulse 2.5s ease-in-out infinite;
}

@keyframes btnPulse {

    0%,
    100% {
        box-shadow: 0 0 20px #ff4fd860, 0 0 40px #ff4fd830;
    }

    50% {
        box-shadow: 0 0 30px #ff77e980, 0 0 60px #ff4fd850, 0 0 90px #ff4fd830;
    }
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 0 40px #ff4fd8a0, 0 0 80px #ff4fd860, 0 8px 30px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #ff77e9, #d946ef);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 30px;
    background: transparent;
    color: #ff77e9;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    border-radius: 8px;
    border: 2px solid #ff4fd860;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-secondary:hover {
    border-color: #ff77e9;
    box-shadow: 0 0 25px #ff4fd860, 0 0 50px #ff4fd830;
    transform: translateY(-3px);
    background: #ff4fd810;
}

/* ===== IP BOX ===== */
.hero-ip {
    animation: fadeInUp 1s ease-out 0.9s both;
}

.hero-ip-box {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 79, 216, 0.08);
    border: 1px solid #ff4fd840;
    border-radius: 10px;
    padding: 14px 28px;
    transition: all 0.3s;
}

.hero-ip-box:hover {
    border-color: #ff77e9;
    box-shadow: 0 0 20px #ff4fd840;
}

.hero-ip-text {
    font-size: clamp(0.6rem, 2vw, 0.85rem);
    color: #ff77e9;
    letter-spacing: 3px;
}

.copy-btn {
    background: #ff4fd830;
    border: 1px solid #ff4fd860;
    color: #ff77e9;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.45rem;
    transition: all 0.3s;
}

.copy-btn:hover {
    background: #ff4fd860;
    box-shadow: 0 0 15px #ff4fd860;
}

.copy-tooltip {
    position: absolute;
    background: #ff4fd8;
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.4rem;
    bottom: 100%;
    margin-bottom: 10px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s;
    white-space: nowrap;
}

.copy-tooltip.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== ABOUT CARDS ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.card {
    background: linear-gradient(145deg, #1a1a24, #14141e);
    border: 2px solid #ff4fd835;
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    border-color: #ff4fd8;
    box-shadow: 0 0 30px #ff4fd840, 0 15px 40px rgba(0, 0, 0, 0.5);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
    filter: drop-shadow(0 0 10px #ff4fd860);
}

.card h3 {
    font-size: 0.75rem;
    color: #ff77e9;
    margin-bottom: 16px;
    text-shadow: 0 0 10px #ff4fd850;
}

.card p {
    font-size: 0.5rem;
    color: #a090c0;
    line-height: 2;
}

/* ===== STAFF / ADMIN STYLES ===== */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 30px;
}

.admin-grid-center {
    justify-content: center;
}

.admin-card {
    background: linear-gradient(145deg, #1a1a24, #14141e);
    border: 2px solid #ff4fd830;
    border-radius: 16px;
    padding: 36px 24px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

.admin-card:hover {
    transform: translateY(-8px);
    border-color: #ff77e9;
    box-shadow: 0 0 30px #ff4fd850;
}

.admin-avatar {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    margin: 0 auto 20px;
    display: block;
    border: 3px solid #ff4fd850;
    image-rendering: pixelated;
    transition: all 0.4s;
    box-shadow: 0 0 15px #ff4fd830;
}

.admin-card:hover .admin-avatar {
    border-color: #ff77e9;
    transform: scale(1.1);
}

.admin-nick {
    font-size: 0.7rem;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 0 8px #ff4fd850;
}

.admin-rank {
    font-size: 0.45rem;
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    letter-spacing: 1px;
}

/* TABLE LIST FOR STAFF */
.staff-table {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.staff-row {
    background: linear-gradient(90deg, #1a1a24, #14141e);
    border: 1px solid #ff4fd820;
    border-radius: 12px;
    padding: 15px 30px;
    display: grid;
    grid-template-columns: 80px 1fr 200px;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.staff-row:hover {
    border-color: #ff4fd860;
    transform: translateX(10px);
    box-shadow: -10px 0 20px rgba(255, 79, 216, 0.1);
}

.staff-row .admin-avatar {
    width: 50px;
    height: 50px;
    margin: 0;
}

.staff-row .admin-nick {
    margin: 0;
    text-align: left;
    padding-left: 20px;
}

.staff-row .admin-rank {
    width: 100%;
    text-align: center;
}

/* RANK COLORS */
.rank-owner {
    background: #ff4fd820;
    color: #ff77e9;
    border: 1px solid #ff4fd860;
}

.rank-headadmin {
    background: #ff000020;
    color: #ff4d4d;
    border: 1px solid #ff000060;
}

.rank-admin {
    background: #a855f720;
    color: #c4b5fd;
    border: 1px solid #a855f760;
}

.rank-jradmin {
    background: #ec489920;
    color: #f9a8d4;
    border: 1px solid #ec489960;
}

.rank-moderator {
    background: #3b82f620;
    color: #93c5fd;
    border: 1px solid #3b82f660;
}

.rank-jrmod {
    background: #60a5fa20;
    color: #bfdbfe;
    border: 1px solid #60a5fa60;
}

.rank-helper {
    background: #10b98120;
    color: #6ee7b7;
    border: 1px solid #10b98160;
}

/* ===== FOOTER ===== */
footer {
    position: relative;
    z-index: 2;
    border-top: 1px solid #ff4fd825;
    padding: 60px 0 30px;
    background: rgba(10, 10, 16, 0.8);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-col h4 {
    font-size: 0.6rem;
    color: #ff77e9;
    margin-bottom: 20px;
}

.footer-col p,
.footer-col a {
    font-size: 0.45rem;
    color: #8070a0;
    text-decoration: none;
    display: block;
    line-height: 2.4;
}

.footer-col a:hover {
    color: #ff77e9;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #ff4fd815;
    margin-top: 30px;
}

.footer-bottom p {
    font-size: 0.4rem;
    color: #5a4d7a;
}

/* STAGGER DELAYS */
.delay-1 {
    transition-delay: 0.1s !important;
}

.delay-2 {
    transition-delay: 0.2s !important;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 15, 20, 0.98);
        flex-direction: column;
        padding: 30px;
        border-bottom: 1px solid #ff4fd830;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-hamburger {
        display: flex;
    }

    .staff-row {
        grid-template-columns: 60px 1fr;
        gap: 10px;
        padding: 15px;
    }

    .staff-row .admin-rank {
        grid-column: 1 / span 2;
        margin-top: 10px;
    }
}