/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Press Start 2P', cursive;
    background: linear-gradient(135deg, #1a3d1a, #2d5a2d, #1e4a1e);
    background-attachment: fixed;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animowane tło w stylu Minecraft */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255,255,255,0.05) 2px,
            rgba(255,255,255,0.05) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255,255,255,0.05) 2px,
            rgba(255,255,255,0.05) 4px
        );
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header i logo */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
}

.logo {
    font-size: 4rem;
    color: #90EE90;
    text-shadow: 
        4px 4px 0px #228B22,
        8px 8px 0px #006400,
        12px 12px 20px rgba(0,0,0,0.7);
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.logo:hover {
    transform: scale(1.05);
    color: #98FB98;
}

.subtitle {
    font-size: 1rem;
    color: #B0C4B0;
    margin-top: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* Hero sekcja */
.hero {
    text-align: center;
    margin-bottom: 50px;
}

.hero-image {
    margin: 30px 0;
}

.hero-minecraft-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 15px;
    border: 4px solid #4CAF50;
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.5),
        0 0 50px rgba(76,175,80,0.3);
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
}
/* Przyciski */
.actions {
    margin-bottom: 50px;
}

.buttons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 15px 25px;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    text-decoration: none;
    text-align: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 0 rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 0 rgba(0,0,0,0.4);
}

.btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(0,0,0,0.4);
}

.btn-primary {
    grid-column: 1 / -1; /* rozciąga się na wszystkie kolumny */
    grid-row: 1;
    background: linear-gradient(45deg, #228B22, #32CD32);
    color: white;
    border: 2px solid #006400;
    font-size: 1rem; /* większy font dla głównego przycisku */
    padding: 20px 30px; /* większy padding */
}

.server-address-row {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 0;
    background: rgba(0,0,0,0.18);
    border-radius: 10px;
    border: 2px solid #32CD32;
    box-shadow: 0 4px 0 rgba(0,0,0,0.15);
}

.server-address-label {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.75rem;
    color: #90EE90;
    letter-spacing: 1px;
}

.server-address-input {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.85rem;
    background: #181f18;
    color: #32CD32;
    border: 2px solid #32CD32;
    border-radius: 7px;
    padding: 8px 14px;
    width: 380px;
    text-align: center;
    outline: none;
    transition: border 0.2s;
}

.server-address-input:focus {
    border-color: #00FF7F;
}

.btn-link-copy {
    padding: 8px 18px;
    font-size: 0.8rem;
    background: linear-gradient(45deg, #32CD32, #00FF7F);
    color: #fff;
    border: 2px solid #228B22;
    border-radius: 7px;
    cursor: pointer;
    font-family: 'Press Start 2P', cursive;
    transition: background 0.2s, border 0.2s;
    box-shadow: 0 4px 0 rgba(0,0,0,0.3);
}

.btn-link-copy:hover {
    background: linear-gradient(45deg, #00FF7F, #32CD32);
    border-color: #00FF7F;
}

.btn-secondary {
    grid-column: 1;
    grid-row: 3;
    background: linear-gradient(45deg, #4682B4, #5F9EA0);
    color: white;
    border: 2px solid #2F4F4F;
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #5F9EA0, #87CEEB);
}

.btn-discord {
    grid-column: 2;
    grid-row: 3;
    background: linear-gradient(45deg, #7289DA, #5865F2);
    color: white;
    border: 2px solid #4C5F99;
}

.btn-discord:hover {
    background: linear-gradient(45deg, #8FA1E3, #6B7AFF);
}

.btn-donate {
    grid-column: 3;
    grid-row: 3;
    background: linear-gradient(45deg, #DAA520, #FFD700);
    color: #2F4F2F;
    border: 2px solid #B8860B;
    font-weight: bold;
}

.btn-donate:hover {
    background: linear-gradient(45deg, #FFD700, #FFFF99);
}

/* Informacje o serwerze */
.server-info {
    text-align: center;
    margin-bottom: 40px;
}

.info-card {
    background: rgba(0,0,0,0.4);
    border: 2px solid #228B22;
    border-radius: 10px;
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #90EE90;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.info-card ul {
    list-style: none;
    text-align: left;
}

.info-card li {
    padding: 8px 0;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(144,238,144,0.2);
    color: #E0E0E0;
}

.info-card li:last-child {
    border-bottom: none;
}

/* PopUp */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-overlay.active {
    display: flex;
}

.popup {
    background: linear-gradient(135deg, #1a3d1a, #2d5a2d);
    border: 3px solid #90EE90;
    border-radius: 15px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.7);
}

.popup-header {
    background: rgba(0,0,0,0.4);
    padding: 20px;
    border-bottom: 2px solid #228B22;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h3 {
    color: #90EE90;
    font-size: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.popup-close {
    background: #DC143C;
    color: white;
    border: 2px solid #8B0000;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    font-family: 'Press Start 2P', cursive;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: #FF6347;
    transform: scale(1.1);
}

.popup-content {
    padding: 30px;
    background: rgba(0,0,0,0.2);
}

/* Zakładki instrukcji */
.instruction-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 2px solid #228B22;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: rgba(0,0,0,0.3);
    color: #B0C4B0;
    border: none;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background: rgba(144,238,144,0.1);
    color: #90EE90;
}

.tab-btn.active {
    background: rgba(144,238,144,0.2);
    color: #90EE90;
    border-bottom-color: #90EE90;
}

/* Zawartość zakładek */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h4 {
    color: #90EE90;
    font-size: 0.8rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.tab-content ol {
    margin-left: 20px;
    font-size: 0.7rem;
    color: #E0E0E0;
    line-height: 1.6;
}

.tab-content li {
    margin-bottom: 15px;
    padding-left: 10px;
}

.tab-content strong {
    color: #90EE90;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* Stopka instrukcji */
.instruction-footer {
    margin-top: 30px;
    padding: 20px;
    background: rgba(144,238,144,0.1);
    border: 1px solid #228B22;
    border-radius: 8px;
}

.instruction-footer p {
    font-size: 0.6rem;
    color: #B0C4B0;
    line-height: 1.5;
    text-align: center;
}

.instruction-footer strong {
    color: #90EE90;
}

/* Responsywność */
@media (max-width: 768px) {
    .logo {
        font-size: 2.5rem;
    }
    
    .buttons-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        font-size: 0.7rem;
        padding: 12px 20px;
    }
    
    .container {
        padding: 15px;
    }
    
    .popup {
        width: 95%;
        margin: 10px;
    }
    
    .popup-content {
        padding: 20px;
    }
    
    .instruction-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        border-bottom: 1px solid #228B22;
        border-right: none;
    }
    
    .tab-btn.active {
        border-bottom-color: #90EE90;
    }
    
    .tab-content ol {
        margin-left: 15px;
    }
    
    .tab-content li {
        font-size: 0.65rem;
    }
}

/* Animacje */
@keyframes glow {
    0%, 100% { 
        text-shadow: 4px 4px 0px #228B22, 8px 8px 0px #006400, 12px 12px 20px rgba(0,0,0,0.7); 
    }
    50% { 
        text-shadow: 4px 4px 0px #228B22, 8px 8px 0px #006400, 12px 12px 30px rgba(144,238,144,0.5); 
    }
}

.logo.animate {
    animation: glow 2s ease-in-out infinite;
}

@keyframes pixelShake {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-2px, -2px); }
    50% { transform: translate(2px, -2px); }
    75% { transform: translate(-2px, 2px); }
}

.logo.shake {
    animation: pixelShake 0.5s ease-in-out;
}

/* Dodatkowe efekty dla ciemnozielonego motywu */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(144,238,144,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* Efekt świecenia dla kart */
.info-card:hover {
    border-color: #32CD32;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3), 0 0 20px rgba(144,238,144,0.2);
}

.hero-minecraft-image:hover {
    transform: scale(1.02);
    border-color: #66BB6A;
    box-shadow: 
        0 15px 40px rgba(0,0,0,0.6),
        0 0 60px rgba(76,175,80,0.4);
}

/* Animacja przełączania zakładek */
.tab-content {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
