/* Font loaded via HTML for performance */

:root {
    /* Minecraft Palette */
    --mc-dirt: #8b4513;
    /* Podzol/Dirt */
    --mc-grass-top: #7ec850;
    /* Lime grass */
    --mc-grass-side: #5b8731;
    --mc-stone: #7d7d7d;
    /* Stone GUI */
    --mc-stone-light: #c6c6c6;
    --mc-stone-dark: #373737;
    --mc-wood: #654321;
    --mc-wood-light: #8f5e2e;
    --mc-wood-shadow: #3e2712;
    --mc-text: #ffffff;
    --mc-text-shadow: #3f3f3f;
    --mc-link: #55aaff;
    --mc-btn-hover: #3a220f;

    /* Dimensions */
    --pixel-size: 2px;
    /* Scale variable for "pixel" look */
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Press Start 2P', cursive;
    background: url('../assets/images/tlo.png') no-repeat center center fixed;
    background-size: cover;
    background-attachment: fixed;
    color: #f0f0f0;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: var(--mc-text);
    transition: color 0.2s ease;
}

a:hover {
    color: #FFAA00;
    text-decoration: underline;
}

/* --- MINECRAFT GUI CONTAINER --- */
.mc-container {
    background-color: #c6c6c6;
    border: 4px solid #000;
    border-top-color: #fff;
    border-left-color: #fff;
    border-right-color: #555;
    border-bottom-color: #555;
    box-shadow: 4px 4px 0 #000, inset 2px 2px 0 #dfdfdf, inset -2px -2px 0 #8b8b8b;
    padding: 2px;
}

.mc-panel {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95), rgba(40, 40, 40, 0.9));
    border: 3px solid #000;
    border-top-color: #666;
    border-left-color: #666;
    border-right-color: #222;
    border-bottom-color: #222;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 2px 2px 0 rgba(255, 255, 255, 0.1), inset -2px -2px 0 rgba(0, 0, 0, 0.3);
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mc-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), inset 2px 2px 0 rgba(255, 255, 255, 0.15), inset -2px -2px 0 rgba(0, 0, 0, 0.4);
}

.news-item {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.9), rgba(50, 50, 50, 0.8));
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin: 15px auto;
    text-align: left;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.news-item strong {
    display: block;
    margin-bottom: 8px;
    color: #ffd700;
    font-size: 0.9rem;
    font-weight: 600;
}

.news-item em {
    display: block;
    margin-bottom: 12px;
    color: #bbb;
    font-size: 0.8rem;
    font-style: italic;
}

.news-item p {
    margin: 0;
    color: #e0e0e0;
    line-height: 1.7;
    font-size: 0.85rem;
}

@media (max-width: 767px) {
    header {
        padding: 15px;
        gap: 20px;
    }
    
    header img.logo {
        height: 40px;
    }
    
    nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .mc-btn {
        font-size: 8px;
        padding: 10px 8px;
        min-width: 100px;
    }
    
    main {
        padding: 0 15px;
        margin: 20px auto;
    }
    
    .mc-panel {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 12px;
        padding: 8px 16px;
        margin-bottom: 20px;
    }
    
    .news-item {
        padding: 15px;
        margin: 10px 0;
    }
    
    .news-item strong {
        font-size: 0.8rem;
    }
    
    .news-item p {
        font-size: 0.75rem;
    }
}

/* --- HEADER --- */
header {
    background: linear-gradient(to bottom,
            var(--mc-grass-top) 0px,
            var(--mc-grass-top) 12px,
            var(--mc-grass-side) 12px,
            var(--mc-grass-side) 24px,
            var(--mc-dirt) 24px,
            var(--mc-dirt) 100%);
    background-repeat: no-repeat;
    background-size: cover;
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    border-bottom: 6px solid #3e2712;
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

@media (min-width: 768px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
        padding: 20px;
    }
}

header img.logo {
    height: 50px;
    width: auto;
    image-rendering: pixelated;
    filter: drop-shadow(4px 4px 0 #000);
    transition: transform 0.2s;
}

@media (min-width: 768px) {
    header img.logo {
        height: 64px;
    }
}

header img.logo:hover {
    transform: scale(1.1) rotate(-5deg);
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    max-width: none;
    justify-content: flex-start;
}

@media (min-width: 768px) {
    nav {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        flex: 1;
        justify-content: flex-end;
    }

    nav .mc-btn {
        flex: 0 1 auto;
        min-width: 100px;
        max-width: none;
        font-size: 11px;
        padding: 8px 12px;
        text-transform: none;
    }
}

@media (min-width: 1024px) {
    nav .mc-btn {
        font-size: 12px;
        padding: 10px 16px;
    }
}

/* --- MC BUTTONS --- */
.mc-btn {
    position: relative;
    display: inline-block;
    background-color: #7d7d7d;
    padding: 8px 14px;
    font-size: 9px;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 2px 2px #333;
    border: 2px solid #000;
    box-shadow: inset 3px 3px 0 rgba(255, 255, 255, 0.4), inset -3px -3px 0 rgba(0, 0, 0, 0.4), 3px 3px 0 #000;
    cursor: pointer;
    transition: all 0.1s;
    white-space: nowrap;
    text-align: center;
    min-width: 120px;
}

@media (min-width: 768px) {
    .mc-btn {
        padding: 12px 24px;
        font-size: 12px;
        border: 3px solid #000;
    }
}

@media (min-width: 1024px) {
    .mc-btn {
        font-size: 13px;
        padding: 14px 28px;
    }
}

.mc-btn:active {
    transform: translate(0, 2px);
    box-shadow: inset 3px 3px 0 rgba(0, 0, 0, 0.6), inset -3px -3px 0 rgba(255, 255, 255, 0.2);
    border-color: #555;
}

.mc-btn:hover {
    background-color: #999;
    filter: brightness(1.2);
}

.mc-btn.purple {
    background-color: #a020f0;
}

.mc-btn.gold {
    background-color: #FFAA00;
    color: #3e2712;
    text-shadow: none;
}

.mc-btn.red {
    background-color: #aa0000;
}

.mc-btn.green {
    background-color: #00aa00;
}

/* --- HERO BANNER --- */
.hero {
    position: relative;
    height: 280px;
    background: #000;
    border-bottom: 6px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero {
        height: 400px;
    }
}

@media (min-width: 1024px) {
    .hero {
        height: 500px;
    }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('mapa.png') center/cover no-repeat;
    opacity: 0.8;
    transition: transform 10s linear;
}

.hero:hover .hero-bg {
    transform: scale(1.05);
}

.hero-title-box {
    position: relative;
    background: rgba(0, 0, 0, 0.85);
    padding: 30px;
    border: 4px solid #fff;
    text-align: center;
    box-shadow: 0 0 20px #000, inset 0 0 50px rgba(0, 0, 0, 0.8);
}

.hero h1 {
    font-size: 18px;
    color: #FFAA00;
    margin: 0;
    text-shadow: 3px 3px 0 #3e2712;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 28px;
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 36px;
    }
}

/* --- SECTIONS --- */
main {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
    width: 100%;
}

@media (min-width: 768px) {
    main {
        margin: 40px auto;
        padding: 0 30px;
        max-width: 1400px;
    }
}

section {
    position: relative;
    margin-bottom: 40px;
    animation: slideUp 0.6s ease-out;
}

@media (min-width: 768px) {
    section {
        margin-bottom: 50px;
    }
}

@media (min-width: 1024px) {
    section {
        margin-bottom: 60px;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 768px) {
    section {
        margin-bottom: 40px;
    }
}

.section-title {
    text-align: center;
    margin-bottom: 25px;
    color: #fff;
    font-size: 14px;
    background: #444;
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #000;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
    transform: skew(-10deg);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 18px;
        padding: 12px 25px;
        border: 3px solid #000;
    }
}

.section-title span {
    display: block;
    transform: skew(10deg);
    /* Counter skew */
}

/* --- SERVER IP BOX --- */
.ip-box {
    background: linear-gradient(135deg, #000, #111);
    color: #55ff55;
    font-family: monospace;
    padding: 18px;
    border: 2px dashed #55ff55;
    text-align: center;
    margin: 20px 0;
    cursor: pointer;
    position: relative;
    word-break: break-all;
    transition: all 0.3s ease;
    font-size: 11px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(85, 255, 85, 0.1);
}

@media (min-width: 768px) {
    .ip-box {
        font-size: 12px;
    }
}

.ip-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(85, 255, 85, 0.2);
    border-color: #66ff66;
    background: linear-gradient(135deg, #111, #222);
}

.ip-box:hover::after {
    content: "KLIKNIJ ABY SKOPIOWAĆ";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 255, 0, 0.9);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* --- FOOTER --- */
footer {
    background: #1a1a1a;
    border-top: 4px solid #555;
    padding: 25px 15px;
    text-align: center;
    color: #888;
    font-size: 8px;
}

@media (min-width: 768px) {
    footer {
        padding: 40px;
        font-size: 10px;
    }
}

/* --- UTILS --- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    align-items: stretch;
}

.grid-2 > div:first-child {
    padding: 20px;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.8), rgba(50, 50, 50, 0.6));
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.grid-2 > div:last-child {
    background: linear-gradient(135deg, #000, #111);
    border: 2px solid #555;
    border-radius: 8px;
    min-height: 200px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.grid-2 > div:last-child:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: #666;
}

.grid-2 > div:last-child::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(85, 255, 85, 0.05));
    pointer-events: none;
}

.grid-2 > div:last-child .mc-btn {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    border: 2px solid #16a34a;
    color: #fff;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.3);
    transition: all 0.3s ease;
}

.grid-2 > div:last-child .mc-btn:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(74, 222, 128, 0.4);
}

/* --- MODS NOTICE SECTION --- */
#mods-notice .mc-panel {
    background: linear-gradient(135deg, #1a472a, #0a1f0f);
    border: 2px solid #4ade80;
    text-align: center;
    padding: 25px;
    position: relative;
    overflow: hidden;
}

#mods-notice .mc-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(74, 222, 128, 0.1));
    pointer-events: none;
}

#mods-notice .mc-panel h2 {
    color: #4ade80;
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 1;
}

#mods-notice .mc-panel p {
    color: #ddd;
    font-size: 11px;
    margin-bottom: 20px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

#mods-notice .mc-panel .mc-btn {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    border: 2px solid #16a34a;
    color: #000;
    font-size: 12px;
    padding: 12px 24px;
    margin: 0 auto;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

#mods-notice .mc-panel .mc-btn:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 222, 128, 0.4);
}

/* --- BANK NOTICE SECTION --- */
#bank-notice .mc-panel {
    background: linear-gradient(135deg, #2c3e50, #1a1a2e);
    border: 2px solid #f1c40f;
    text-align: center;
    padding: 25px;
    position: relative;
    overflow: hidden;
}

#bank-notice .mc-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(241, 196, 15, 0.1));
    pointer-events: none;
}

#bank-notice .mc-panel h2 {
    color: #f1c40f;
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 1;
}

#bank-notice .mc-panel p {
    color: #ddd;
    font-size: 11px;
    margin-bottom: 20px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

#bank-notice .mc-panel .mc-btn.gold {
    background: linear-gradient(135deg, #f1c40f, #d4a017);
    border: 2px solid #b8860b;
    color: #3e2712;
    font-size: 12px;
    padding: 12px 24px;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(241, 196, 15, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

#bank-notice .mc-panel .mc-btn.gold:hover {
    background: linear-gradient(135deg, #d4a017, #b8860b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(241, 196, 15, 0.4);
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        align-items: stretch;
    }
}

@media (min-width: 1024px) {
    .grid-2 {
        gap: 35px;
    }
}

