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

body {
    font-family: 'Arial', sans-serif;
    background-color: #121212;
    color: #fff;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ----------------------
   Nagłówek
------------------------ */
.site-header {
    background-color: #1a1a1a;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff6600;
}

.site-header .auth-buttons a.btn {
    display: inline-block;
    margin-left: 10px;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

/* Przyciski nagłówka */
.btn-login { background-color: #28a745; }
.btn-login:hover { background-color: #218838; }

.btn-register { background-color: #1e90ff; }
.btn-register:hover { background-color: #187bcd; }

.btn-dashboard { background-color: #1e90ff; }
.btn-dashboard:hover { background-color: #187bcd; }

.btn-profile { background-color: #28a745; }
.btn-profile:hover { background-color: #218838; }

.btn-logout { background-color: #dc3545; }
.btn-logout:hover { background-color: #b02a37; }

/* ----------------------
   Hero / slider
------------------------ */
#hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18,18,18,0.5);
    z-index: 1;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

.hero-slider .slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.btn-discord {
    padding: 0.7rem 1.5rem;
    background-color: #7289da;
    color: #fff;
    border-radius: 10px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-discord:hover {
    background-color: #5b6eae;
}

/* ----------------------
   Sekcja przycisków / podstron
------------------------ */
#navigation {
    padding: 3rem 2rem;
    text-align: center;
}

#navigation h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.nav-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.nav-card {
    background-color: #1a1a1a;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    width: 180px;
    text-align: center;
    transition: transform 0.3s, background 0.3s;
}

.nav-card:hover {
    background-color: #272727;
    transform: translateY(-5px);
}

.nav-card .icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* ----------------------
   Footer
------------------------ */
footer {
    background-color: #1a1a1a;
    text-align: center;
    padding: 1.5rem 2rem;
    margin-top: 3rem;
}

.footer-links a {
    margin: 0 1rem;
    color: #ff6600;
    font-weight: bold;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ff4500;
}

/* ----------------------
   Formularze logowania / rejestracji
------------------------ */
.auth-form {
    max-width: 400px;
    margin: 3rem auto;
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.auth-form h2 {
    margin-bottom: 1rem;
}

.auth-form input {
    width: 100%;
    padding: 0.7rem;
    margin: 0.5rem 0;
    border-radius: 8px;
    border: none;
}

.auth-form .password-wrapper {
    position: relative;
}

.auth-form .show-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

.auth-form button {
    width: 100%;
    margin-top: 1rem;
    padding: 0.7rem;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    background-color: #1e90ff;
}

.auth-form button:hover { background-color: #187bcd; }

.error { color: #ff3c3c; margin-bottom:1rem; }
.success { color: #4CAF50; margin-bottom:1rem; }

/* ----------------------
   Profil użytkownika
------------------------ */
.profile-section {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem;
}

.profile-card {
    background: #1a1a1a;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.profile-card h3 {
    margin-bottom: 1rem;
}

.profile-edit {
    background: #1f1f1f;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.profile-edit h3 {
    margin-bottom: 1rem;
}

.profile-edit input {
    width: 100%;
    padding: 0.7rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: none;
}

.btn-profile-update {
    padding: 0.7rem 1rem;
    background-color: #1e90ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.btn-profile-update:hover {
    background-color: #187bcd;
}

/* ----------------------
   Responsywność
------------------------ */
@media (max-width: 768px){
    .nav-buttons {
        flex-direction: column;
        align-items: center;
    }

    .nav-card {
        width: 80%;
    }

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

    .hero-content p {
        font-size: 1rem;
    }
}
