/* ===== ZMIENNE KOLORYSTYCZNE BRANDU ===== */
:root {
    --color-bg: #252525;
    --color-primary: #bf6900;
    --color-primary-hover: #bf6900;
    --color-text: white;
    --color-text-muted: #b8b8b8;
    --color-card-bg: #333333;
    --btn-orange-start: #FF7F00;
    --btn-orange-end: #FFB347;
}

/* ===== MINECRAFT FONT Z FALLBACK DLA POLSKICH ZNAKÓW ===== */
* {
    font-family: 'Roboto', monospace, sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    image-rendering: pixelated;
}

/* Pixelowany styl dla nagłówków */
h1, h2, h3, h4, h5, h6 {
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Minecraft font dla określonych elementów */
.minecraft-text {
    font-family: 'Minecraft', 'Roboto', monospace, sans-serif !important;
    font-weight: normal !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

/* ===== BODY Z MINECRAFT GRADIENT ===== */
body {
    background: linear-gradient(180deg, #1a1a1a 0%, #252525 50%, #2d2d2d 100%);
    background-attachment: fixed;
}

/* ===== NAVBAR - SKALOWANIE I RESPONSYWNOŚĆ ===== */
.navbar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #000;
    border-bottom: 4px solid var(--color-primary);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

/* Skalowanie navbar przy scrollu */
.navbar-wrapper.scrolled {
    border-bottom-width: 3px;
}

.navbar-wrapper.scrolled .navbar {
    height: 56px;
    padding: 0 1rem;
}

.navbar-wrapper.scrolled .logo-utopiasmp {
    height: 18px;
}

.navbar-wrapper.scrolled .nav-brand-link {
    font-size: 1.3rem;
}

.navbar-wrapper.scrolled #btn-login {
    padding: 0.375rem 1rem;
    font-size: 0.8rem;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    height: 64px;
    max-width: 1280px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.nav-brand-link {
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 64px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.nav-brand-link:hover {
    color: var(--color-primary-hover);
    transform: translateY(-2px);
}

.nav-brand-link svg {
    width: 14px;
    height: 14px;
    stroke: var(--color-primary);
    transition: stroke 0.3s ease;
    flex-shrink: 0;
    margin-left: 1.8px;
    margin-top: 0.43px;
    filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.5));
}

.nav-brand-link:hover svg {
    stroke: var(--color-primary-hover);
}

.logo-utopiasmp {
    height: 22px;
    width: auto;
    display: block;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
    filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.5));
}

.nav-brand-link:hover .logo-utopiasmp {
    transform: scale(1.1);
}

/* ===== NAVIGATION LINKS Z MC FONTEM ===== */
.navbar ul li a {
    position: relative;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
    font-family: 'Minecraft', 'Roboto', monospace, sans-serif !important;
    font-weight: normal !important;
    letter-spacing: 1px;
}

.navbar ul li a:hover {
    transform: translateY(-2px);
}

/* ===== PRZYCISK LOGOWANIA - POPRAWIONY ===== */
#btn-login, #mobile-login {
    font-family: 'Minecraft', 'Roboto', monospace, sans-serif !important;
    font-weight: normal !important;
    letter-spacing: 1px;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* ===== DROPDOWN MENU W STYLU MINECRAFT ===== */
.dropdown-menu {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 130%;
    right: 0;
    background: #1a1a1a;
    border: 3px solid var(--color-primary);
    border-radius: 0;
    padding: 0.5rem;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.7);
    white-space: nowrap;
    z-index: 0;
    margin-top: 0.95rem;
    min-width: 180px;
    text-align: center;
}

.dropdown-menu a {
    color: var(--color-primary);
    text-decoration: none;
    padding: 0.75rem 1rem;
    font-weight: bold;
    display: block;
    transition: all 0.2s ease;
    border-radius: 0;
    cursor: pointer;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.dropdown-menu a:hover {
    color: var(--color-primary-hover);
    background: rgba(191, 105, 0, 0.2);
    transform: translateX(4px);
}

.dropdown-menu a span {
    font-size: 1.2rem;
    display: inline-block;
    line-height: 1;
}

/* ===== MINECRAFT BUTTON STYLE ===== */
.btn-minecraft {
    position: relative;
    border: 3px solid rgba(0, 0, 0, 0.5);
    box-shadow:
            inset 2px 2px 0 rgba(255, 255, 255, 0.3),
            inset -2px -2px 0 rgba(0, 0, 0, 0.3),
            3px 3px 0 rgba(0, 0, 0, 0.5);
    transition: all 0.1s ease;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    font-family: 'Minecraft', 'Roboto', monospace, sans-serif !important;
    font-weight: normal !important;
    letter-spacing: 1px;
}

.btn-minecraft:hover {
    transform: translateY(1px);
    box-shadow:
            inset 2px 2px 0 rgba(255, 255, 255, 0.3),
            inset -2px -2px 0 rgba(0, 0, 0, 0.3),
            2px 2px 0 rgba(0, 0, 0, 0.5);
}

.btn-minecraft:active {
    transform: translateY(3px);
    box-shadow:
            inset 2px 2px 0 rgba(255, 255, 255, 0.3),
            inset -2px -2px 0 rgba(0, 0, 0, 0.3);
}

/* ===== MINECRAFT BLOCK EFFECTS ===== */
.minecraft-block {
    background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(0, 0, 0, 0.1) 100%);
    border: 3px solid rgba(0, 0, 0, 0.5);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    position: relative;
}

.minecraft-block:hover {
    transform: translateY(-4px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.7);
}

/* ===== MINECRAFT TEXTURE OVERLAY ===== */
.minecraft-texture::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.05) 2px,
            rgba(0, 0, 0, 0.05) 4px
    );
    pointer-events: none;
    z-index: 1;
}

/* ===== GLOW EFFECT ===== */
.glow-orange {
    text-shadow:
            0 0 10px rgba(191, 105, 0, 0.8),
            0 0 20px rgba(191, 105, 0, 0.6),
            0 0 30px rgba(191, 105, 0, 0.4),
            2px 2px 0 rgba(0, 0, 0, 0.5);
}

.glow-green {
    text-shadow:
            0 0 10px rgba(0, 255, 136, 0.8),
            0 0 20px rgba(0, 255, 136, 0.6),
            0 0 30px rgba(0, 255, 136, 0.4),
            2px 2px 0 rgba(0, 0, 0, 0.5);
}

/* ===== FLOATING ANIMATION ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* ===== PULSE ANIMATION ===== */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ===== ANIMATED DESCRIPTION FADE ===== */
.animated-description {
    position: relative;
    height: 80px;
    overflow: hidden;
}

.description-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.description-item.active {
    opacity: 1;
}

/* ===== WELCOME SECTION ===== */
#welcome {
    position: relative;
    z-index: 1;
}

#welcome::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(
            circle at center,
            rgba(191, 105, 0, 0.1) 0%,
            transparent 70%
    );
    pointer-events: none;
    z-index: -1;
}

/* ===== IP BOX W STYLU MINECRAFT ===== */
.ip-box {
    background: #1a1a1a;
    border: 3px solid var(--color-primary);
    padding: 1rem 2rem;
    display: inline-block;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
    position: relative;
    margin-top: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ip-box:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.7);
}

.ip-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
            45deg,
            transparent,
            transparent 4px,
            rgba(191, 105, 0, 0.05) 4px,
            rgba(191, 105, 0, 0.05) 8px
    );
    pointer-events: none;
}

/* ===== MODAL MINECRAFT STYLE ===== */
.modal-content {
    border: 4px solid var(--color-primary);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.7);
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.1) 2px,
            rgba(0, 0, 0, 0.1) 4px
    );
    pointer-events: none;
    border-radius: 0.75rem;
}

/* ===== INPUT MINECRAFT STYLE ===== */
input {
    border: 3px solid #3a3a3a !important;
    box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.5) !important;
    transition: all 0.2s ease;
}

input:focus {
    border-color: var(--color-primary) !important;
    box-shadow:
            inset 2px 2px 0 rgba(0, 0, 0, 0.5),
            0 0 10px rgba(191, 105, 0, 0.3) !important;
}

/* ===== FOOTER MINECRAFT STYLE ===== */
footer {
    border-top: 3px solid var(--color-primary);
    box-shadow: 0 -4px 0 rgba(0, 0, 0, 0.5);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
            90deg,
            transparent,
            transparent 20px,
            rgba(191, 105, 0, 0.03) 20px,
            rgba(191, 105, 0, 0.03) 40px
    );
    pointer-events: none;
}

/* ===== MOBILE MENU ===== */
#mobile-menu {
    border-top: 3px solid var(--color-primary);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.5);
    background: #000;
}

#mobile-menu li a {
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
    padding-left: 1rem;
    border-left: 3px solid transparent;
    font-family: 'Minecraft', 'Roboto', monospace, sans-serif !important;
    font-weight: normal !important;
    letter-spacing: 1px;
}

#mobile-menu li a:hover {
    border-left-color: var(--color-primary);
    background: rgba(191, 105, 0, 0.1);
}

/* ===== FEATURE CARDS ===== */
.feature-card {
    background: #1a1a1a;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: #222;
}

/* ===== STATS SECTION ===== */
.stat-item {
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    border: 2px solid var(--color-primary);
    padding: 1.5rem;
    text-align: center;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.7);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-primary-hover);
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

/* ===== MECHANICS GRID ===== */
.mechanics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* ===== DOWNLOAD SECTION ===== */
.download-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    border: 3px solid var(--color-primary);
    padding: 2rem;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.download-card:hover {
    transform: translateY(-4px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.7);
}

/* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 768px) {
    .navbar-wrapper {
        border-bottom-width: 3px;
    }

    .navbar {
        height: 56px;
        padding: 0 1rem;
    }

    .nav-brand-link {
        font-size: 1.1rem;
        line-height: 56px;
    }

    .logo-utopiasmp {
        height: 16px;
    }

    #btn-login {
        padding: 0.375rem 0.875rem;
        font-size: 0.75rem;
    }

    .navbar ul li a {
        font-size: 0.9rem;
    }

    .ip-box {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .floating img {
        height: 60px !important;
    }

    .stat-number {
        font-size: 2rem;
    }

    .mechanics-grid {
        grid-template-columns: 1fr;
    }

    .animated-description {
        height: 100px;
    }

    .minecraft-text {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }

    /* Skalowanie scrolled navbar na mobile */
    .navbar-wrapper.scrolled .navbar {
        height: 50px;
    }

    .navbar-wrapper.scrolled .nav-brand-link {
        font-size: 1rem;
    }

    .navbar-wrapper.scrolled .logo-utopiasmp {
        height: 14px;
    }

    .navbar-wrapper.scrolled #btn-login {
        padding: 0.25rem 0.75rem;
        font-size: 0.7rem;
    }
}

/* ===== SMOOTH SCROLL ===== */
html {
    scroll-behavior: smooth;
}

/* ===== SELECTION COLOR ===== */
::selection {
    background: var(--color-primary);
    color: #000;
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
    height: 4px;
    background: linear-gradient(90deg,
    transparent 0%,
    var(--color-primary) 50%,
    transparent 100%);
    margin: 3rem 0;
}

/* ===== COPY NOTIFICATION ===== */
.copy-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--color-primary-hover);
    color: #000;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: bold;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.copy-notification.show {
    opacity: 1;
    transform: translateX(0);
}