/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Minecraft', sans-serif;
}

body {
    background-color: #0f0f0f;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    background-image: url('../images/background.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

body.menu-open {
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Animowane tło */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

/* Przyciski */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    margin: 5px;
}

.btn-primary {
    background-color: #FFB300;
    color: white;
    border: 2px solid #FFB300;
}

.btn-primary:hover {
    background-color: transparent;
    color: #FFB300;
}

.btn-secondary {
    background-color: transparent;
    color: #FFB300;
    border: 2px solid #FFB300;
}

.btn-secondary:hover {
    background-color: rgba(255, 179, 0, 0.2);
    color: #FFB300;
}

.btn-vote {
    background-color: #FFA500;
    color: white;
    border: 2px solid #FFA500;
}

.btn-vote:hover {
    background-color: rgba(255, 179, 0, 0.2);
    color: #FFA500;
}

.btn-discord {
    background-color: #7289DA;
    color: white;
    border: 2px solid #7289DA;
}

.btn-discord:hover {
    background-color: transparent;
    color: #7289DA;
}

/* Nagłówki sekcji */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: #FFB300;
    position: relative;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: #FFB300;
    margin: 15px auto;
}

/* Sekcja Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 0;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 120px;
}

.server-logo {
    max-width: 250px;
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.server-status {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.status-indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-right: 10px;
}

.status-indicator.online {
    background-color: #FFB300;
    box-shadow: 0 0 10px #FFB300;
}

.status-indicator.offline {
    background-color: #f44336;
    box-shadow: 0 0 10px #f44336;
}

.status-text {
    font-weight: bold;
    margin-right: 20px;
}

.players-online {
    font-weight: bold;
}

.hero-buttons {
    margin-top: 30px;
}

/* Sekcje */
section {
    padding: 30px 0;
}

/* Sekcja O serwerze */

.about-section {
    padding: 110px 0 30px 0; /* Zmienione z 80px 0 */
    margin-top: -30px; /* Nowa właściwość - "podciąga" sekcję do góry */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-box {
    background: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #FFB300;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.feature-box img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.feature-box h3 {
    margin-bottom: 15px;
    color: #FFB300;
}

/* Sekcja Jak dołączyć */
.join-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.step {
    background: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    border: 1px solid #FFB300;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: #FFB300;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Sekcja Głosowanie */
.vote-sites {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.vote-site {
    background: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #FFA500;
}

.vote-site img {
    max-width: 150px;
    margin-bottom: 20px;
}

.vote-site h3 {
    margin-bottom: 15px;
    color: #FFA500;
}

.vote-site small {
    display: block;
    margin-top: 10px;
    font-size: 0.8rem;
    color: #aaa;
}

/* Sekcja Regulamin */
.rules-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.rule-category {
    background: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #FFB300;
}

.rule-category h3 {
    color: #FFB300;
    margin-bottom: 20px;
    text-align: center;
}

.rule-category ol {
    padding-left: 20px;
}

.rule-category li {
    margin-bottom: 10px;
}

/* Sekcja Team */
.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.team-member {
    background: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #FFB300;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Dla responsywności */
@media (max-width: 768px) {
    .team-member {
        padding: 20px;
    }
    .team-member:hover {
        transform: translateY(-5px); /* Mniejszy efekt na mobile */
    }
}

.team-member img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid #FFB300;
}

.team-member h3 {
    margin-bottom: 10px;
}

.rank {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
}


.rank.admin {
    background-color: #CA0000;
    color: white;
}

.rank.moderator {
    background-color: #10A500;
    color: white;
}

.rank.helper {
    background-color: #006AF5;
    color: white;
}

.rank.chatmod {
    background-color: #00F5F5;
    color: white;
}

/* Sekcja Discord */
.discord-section {
    background: rgba(0, 0, 0, 0.7);
}

.discord-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.discord-info {
    flex: 1;
    min-width: 300px;
    padding-right: 30px;
}

.discord-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #7289DA;
}

.discord-info p {
    margin-bottom: 30px;
}

.discord-widget {
    flex: 1;
    min-width: 300px;
}

/* Stopka */
.footer {
    background: rgba(0, 0, 0, 0.9);
    padding: 50px 0 20px;
    color: #aaa;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section {
    margin-bottom: 20px;
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 20px;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    margin-right: 15px;
    color: #aaa;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #FFB300;
}

.footer-section h3 {
    color: #FFB300;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #FFB300;
}

.online-text {
    color: #FFB300;
    font-weight: bold;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.footer-bottom p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* Nawigacja */
.navbar {
    background: rgba(0, 0, 0, 0.8);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    transition: all 0.3s ease;
}

.navbar.scrolled .logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #FFB300;
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #FFB300;
}

.nav-item.active .nav-link {
    color: #FFB300;
}

.nav-item.active .nav-link::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
    padding: 10px;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background: white;
    transition: all 0.3s ease;
}

/* Przycisk powrotu na górę */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #FFB300;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: none; /* Początkowo ukryty */
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 999;
    transition: all 0.3s;
}

#back-to-top.show {
    display: flex; /* Pokazuje przycisk */
}

#back-to-top:hover {
    background: #e6a100;
    transform: translateY(-3px);
}

#back-to-top:active {
    transform: scale(0.95);
}

/* Styl kopiowalnego IP */
.copyable-ip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #FFB300;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 179, 0, 0.1);
    transition: all 0.3s ease;
    font-family: 'Minecraft', sans-serif;
}

.copyable-ip:hover {
    background: rgba(255, 179, 0, 0.2);
    transform: translateY(-1px);
}

.copyable-ip:active {
    transform: translateY(0);
}

.copyable-ip i {
    font-size: 14px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.copyable-ip:hover i {
    opacity: 1;
}

/* Powiadomienie o kopiowaniu */
.copy-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #FFB300;
    padding: 10px 20px;
    border-radius: 50px;
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    border: 1px solid #FFB300;
}

.copy-notification i {
    font-size: 16px;
}

/* Animacja powiadomienia */
@keyframes fadeInOut {
    0% { opacity: 0; bottom: 10px; }
    20% { opacity: 1; bottom: 30px; }
    80% { opacity: 1; bottom: 30px; }
    100% { opacity: 0; bottom: 50px; }
}

/* Pasek ładowania */
.loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: #FFB300;
    z-index: 1001;
    width: 0;
    transition: width 0.3s ease;
}

/* Responsywność - Menu mobilne */
@media (max-width: 768px) {
    /* Zmniejszenie głównych odstępów między sekcjami */
    section {
        padding: 50px 0 !important;  /* Zmniejszone z 40-80px */
    }

    /* Mniejsze marginesy nagłówków sekcji */
    .section-title {
        margin-bottom: 20px !important;
    }

    /* Mniejsze odstępy w gridach */
    .features-grid,
    .join-steps,
    .vote-sites,
    .rules-list,
    .team-members {
        margin-top: 20px !important;
        gap: 10px !important;
    }

    /* Mniejsze paddingi wewnątrz boxów */
    .feature-box,
    .step,
    .vote-site,
    .rule-category,
    .team-member {
        padding: 15px !important;
    }

    /* Mniejszy hero na mobile */
    .hero {
        padding: 60px 0 30px 0 !important;
        height: auto !important;
    }

    .hero-content {
        padding-top: 40px !important;
    }

    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        transition: left 0.5s ease;
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 20px 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        padding: 15px;
        display: block;
        font-size: 1.2rem;
    }
    
    /* Animacja hamburgera */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .discord-content {
        flex-direction: column;
    }
    
    .discord-info {
        padding-right: 0;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .hero-content {
        padding-top: 60px;
    }
}

/* Dodatkowe style dla responsywności */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .server-logo {
        max-width: 200px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* kolor i pulsowanie dla linku Sklep */
.shop-link {
    color: #FFB300; 
    animation: pulse-orange 1s infinite;
}

/* Definicja animacji pulsowania */
@keyframes pulse-orange {
    0%, 100% {
        color: #FFB300;
        text-shadow: 0 0 5px #FFB300;
    }
    50% {
        color: #FFB300;
        text-shadow: 0 0 20px #FFB300;
    }
}


.about-section2 .rule-section {
  margin-bottom: 2em;
}
.about-section2 h3 {
  color: #f5c518; /* np. żółty akcent */
  margin-bottom: 0.5em;
}
.about-section2 p, .about-section2 ul {
  text-align: left;
  color: #eee;
  line-height: 1.5;
}
.about-section2 ul {
  list-style-type: disc;
  margin-left: 1.5em;
}

.about-section2 {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px 30px;
    border-radius: 8px;
    margin: 40px auto 20px; /* top 80px, auto sides, 20px bottom */
    max-width: 960px;
    box-sizing: border-box;
    color: #eee;
}

.about-section3 {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px 30px;
    border-radius: 8px;
    margin: 100px auto 20px; /* top 80px, auto sides, 20px bottom */
    max-width: 960px;
    box-sizing: border-box;
    color: #eee;
}
