/* RESET ET GÉNÉRAL */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    font-family: 'Minecraft', 'Courier New', monospace;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
    color: #fff;
}

/* PANORAMA D'ARRIÈRE-PLAN */
.panorama-bg {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: 
        radial-gradient(circle, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%),
        repeating-linear-gradient(45deg, #2b1d0c 0, #2b1d0c 20px, #3d2813 20px, #3d2813 40px);
    background-size: cover;
    animation: panMove 25s infinite linear;
    z-index: 1;
    filter: blur(4px);
}

@keyframes panMove {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.1) translate(-2%, -2%); }
    100% { transform: scale(1) translate(0, 0); }
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

/* MENU PRINCIPAL MINECRAFT */
.minecraft-menu {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 40px 20px;
}

.logo-container {
    text-align: center;
    position: relative;
    margin-top: 20px;
}

.mc-title {
    font-size: 3.5rem;
    color: #DDD;
    text-shadow: 
        4px 4px 0px #000,
        -2px -2px 0px #333,
        2px -2px 0px #333,
        -2px 2px 0px #333;
    letter-spacing: 4px;
    font-weight: bold;
}

.mc-subtitle {
    display: block;
    font-size: 1.2rem;
    color: #AAAAAA;
    text-shadow: 2px 2px 0 #000;
    margin-top: -5px;
}

/* SPLASH TEXT JAUNE */
.splash-text {
    position: absolute;
    top: 100px;
    right: 20%;
    color: #FFFF55;
    font-size: 1.3rem;
    text-shadow: 2px 2px 0px #3F3F00;
    transform: rotate(-15deg);
    animation: splashBounce 0.6s infinite alternate ease-in-out;
    z-index: 12;
    white-space: nowrap;
}

@keyframes splashBounce {
    0% { transform: rotate(-15deg) scale(1); }
    100% { transform: rotate(-15deg) scale(1.1); }
}

/* BOUTONS D'INTERFACE MINECRAFT */
.button-group {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.button-row {
    display: flex;
    gap: 10px;
    width: 100%;
}

.mc-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 48px;
    background: #707070;
    border: none;
    box-shadow: 
        inset -2px -4px 0px #373737,
        inset 2px 2px 0px #FFF,
        inset -4px -4px 0px #555555,
        inset 4px 4px 0px #AAAAAA,
        2px 2px 5px rgba(0,0,0,0.5);
    color: #E0E0E0;
    text-shadow: 2px 2px 0px #000;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.05s;
    position: relative;
}

.mc-button.half {
    width: 50%;
}

.mc-button:hover {
    background: #5267a8;
    color: #FFAA00;
    box-shadow: 
        inset -2px -4px 0px #2a3459,
        inset 2px 2px 0px #8099e6,
        inset -4px -4px 0px #3d4d7a,
        inset 4px 4px 0px #6b82cc,
        2px 2px 5px rgba(0,0,0,0.5);
}

.mc-button:active {
    box-shadow: 
        inset 2px 2px 0px #000,
        inset -2px -2px 0px #555;
    transform: translateY(2px);
}

.btn-text {
    pointer-events: none;
}

.footer-info {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #AAA;
    text-shadow: 1px 1px 0 #000;
}

/* MODALES */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 100;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #C6C6C6;
    border: 4px solid #000;
    box-shadow: 
        inset 4px 4px 0px #FFF,
        inset -4px -4px 0px #555;
    width: 90%;
    max-width: 550px;
    padding: 24px;
    color: #202020;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-title {
    text-align: center;
    color: #3F3F3F;
    text-shadow: 2px 2px 0px #FFF;
    font-size: 1.5rem;
    border-bottom: 2px solid #555;
    padding-bottom: 10px;
}

.modal-body {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 5px;
}

.mc-text {
    font-size: 1rem;
    line-height: 1.4;
    color: #111;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.inventory-slot {
    background: #8B8B8B;
    border: 2px solid #373737;
    box-shadow: inset 2px 2px 0 #373737, inset -2px -2px 0 #FFF;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.skill-bar-container {
    margin-bottom: 15px;
}

.skill-label {
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: #222;
}

.skill-progress-bg {
    height: 16px;
    background: #313131;
    border: 2px solid #000;
}

.skill-progress-fill {
    height: 100%;
    background: #55FF55;
    box-shadow: inset 0 2px 0 #AAFFAA, inset 0 -2px 0 #00AA00;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.server-item {
    background: rgba(0, 0, 0, 0.1);
    border: 2px solid #8B8B8B;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.server-icon {
    font-size: 1.8rem;
    background: #3C3C3C;
    padding: 5px;
    border: 2px solid #000;
}

.server-details {
    flex-grow: 1;
}

.server-name {
    font-weight: bold;
    color: #0000AA;
    font-size: 1rem;
}

.server-desc {
    font-size: 0.85rem;
    color: #444;
}

.mini-btn {
    width: auto;
    padding: 0 15px;
    height: 36px;
    font-size: 0.85rem;
}

.form-group {
    margin-bottom: 12px;
}

.mc-label {
    display: block;
    margin-bottom: 4px;
    color: #333;
    font-size: 0.9rem;
}

.mc-input {
    width: 100%;
    background: #A0A0A0;
    border: 2px solid #373737;
    box-shadow: inset 2px 2px 0 #000, inset -2px -2px 0 #FFF;
    padding: 8px;
    color: #FFF;
    outline: none;
    font-size: 0.95rem;
}

.mc-input:focus {
    background: #B0B0B0;
    border-color: #000;
}

.modal-close {
    margin-top: 10px;
}

@media (max-width: 600px) {
    .mc-title { font-size: 2.2rem; }
    .splash-text { font-size: 0.9rem; right: 10%; top: 80px; }
    .inventory-grid { grid-template-columns: 1fr; }
}