/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    background: rgba(15, 15, 19, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--text-main);
}

.btn-small {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white !important;
    transition: 0.3s;
}

.btn-small:hover {
    background: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('background.png') center/cover no-repeat;
    z-index: -1;
    opacity: 0.35;
    -webkit-mask-image: linear-gradient(#000 55%, transparent);
    mask-image: linear-gradient(#000 55%, transparent);
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.server-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--secondary);
}

/* IP Box Implementation */
.ip-box {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 16px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    position: relative;
    user-select: none;
}

.ip-box:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
    border-color: var(--primary);
}

.ip-box i {
    color: var(--text-muted);
}

.tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px;
    border-style: solid;
    border-color: var(--primary) transparent transparent transparent;
}

.ip-box:active .tooltip {
    opacity: 1;
    visibility: visible;
    top: -45px;
}

/* About & Features */
.about {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(139, 92, 246, 0.1));
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* Rules */
.rules {
    padding: 100px 0;
    background: rgba(5, 5, 10, 0.35);
}

.rules-list {
    max-width: 800px;
    margin: 0 auto;
}

.rule-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    margin-bottom: 1rem;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: 0.3s;
}

.rule-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.08);
}

.rule-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.5;
}

/* Staff */
.staff {
    padding: 100px 0;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.staff-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.staff-card:hover {
    border-color: var(--secondary);
}

.staff-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.role {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.role.admin {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.role.mod {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.role.helper {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

/* Footer */
footer {
    padding: 3rem 0;
    background: rgba(5, 5, 7, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
}

.socials {
    display: flex;
    gap: 1.5rem;
}

.socials a:hover {
    color: var(--primary);
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
}

/* Hero w dwóch kolumnach + status na żywo */
.hero {
    height: auto;
    min-height: 100vh;
    padding: 110px 0 60px;
    text-align: left;
}

.hero .container {
    width: 100%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text p {
    margin-left: 0;
}

.status-panel {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.75rem;
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.status-panel:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
}

.status-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.2rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    color: var(--text-muted);
}

.status-row strong {
    color: var(--text-main);
}

.dot.idle {
    background: var(--text-muted);
    box-shadow: none;
}

.dot.off {
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}

.ip-box:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 860px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        background: rgba(15, 15, 19, 0.97);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 12px 0;
    }

    .nav-links .btn-small {
        display: inline-block;
        padding: 8px 24px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
}
/* Rekrutacja */
.apply { padding: 150px 0 100px; }

.apply-lead {
    text-align: center;
    color: var(--text-muted);
    max-width: 640px;
    margin: -1.5rem auto 3rem;
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto 4rem;
}

.role-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.role-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(139, 92, 246, 0.1));
}

.role-card .role { align-self: flex-start; margin-top: 0; }
.role-card h3 { font-size: 1.5rem; }
.role-card ul { flex-grow: 1; }

.role-card li {
    display: flex;
    gap: 12px;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
}

.role-card li i { color: var(--secondary); margin-top: 6px; font-size: 0.85rem; }
.role-card .btn { text-align: center; }

.apply-form {
    max-width: 760px;
    margin: 0 auto;
    padding: 2.5rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    scroll-margin-top: 100px;
}

.apply-form h2 { font-size: 1.75rem; scroll-margin-top: 120px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.apply-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.apply-form input:not([type="checkbox"]),
.apply-form select,
.apply-form textarea {
    font: inherit;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 12px 14px;
    transition: 0.2s;
}

.apply-form select option { color: #111; }
.apply-form textarea { resize: vertical; }

.apply-form input:focus,
.apply-form select:focus,
.apply-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

.apply-form .check {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
}

.apply-form .check input { margin-top: 5px; accent-color: var(--primary); }
.apply-form .btn { align-self: flex-start; }
.apply-form .btn:disabled { opacity: 0.6; cursor: wait; transform: none; box-shadow: none; }
.hp { position: absolute; left: -9999px; }

.form-msg { min-height: 1.5em; font-weight: 600; }
.form-msg.ok { color: var(--secondary); }
.form-msg.err { color: #ef4444; }

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
    .apply-form { padding: 1.5rem; }
}
