:root {
    --mc-dirt: #7A5B42;
    --mc-grass: #5C914B;
    --mc-stone: #7D7D7D;
    --mc-stone-light: #9E9E9E;
    --mc-stone-dark: #3C3C3C;
    --mc-wood: #86592d;
    --mc-wood-dark: #4d3319;
    --mc-text: #F0F0F0;
    --mc-text-shadow: 2px 2px 0px #000;
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'VT323', monospace;
    color: var(--mc-text);
    font-size: 1.2rem;
    line-height: 1.5;
    position: relative;
    min-height: 100vh;
}

.main-header {
    text-align: center;
    padding: 4rem 2rem;
    background: transparent;
    border-bottom: none;
    text-shadow: var(--mc-text-shadow);
    margin-bottom: 0;
    position: relative;
    z-index: 10; /* keeps header text above tree and clouds */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.mc-navbar {
    background: transparent;
    padding: 0.5rem 2rem;
    margin-bottom: 2rem;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Para el centrado absoluto de nav-center */
    z-index: 20;
}

/* Minecraft Chunk Background System — canvas rendered */
.chunk-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    pointer-events: none;
    overflow: hidden;
}

.chunk-background canvas {
    display: block;
    image-rendering: pixelated;
}

/* Ore Veins Decoration */
.ore-vein {
    position: absolute;
    width: 64px;
    height: 64px;
    image-rendering: pixelated;
    background-size: 32px 32px;
    background-repeat: repeat;
}

.ore-coal-1, .ore-coal-2 {
    background-image: url('/assets/gui/coal_ore.png');
}

.ore-iron-1, .ore-iron-2, .ore-iron-3 {
    background-image: url('/assets/gui/iron_ore.png');
}

.ore-diamond-1, .ore-diamond-2 {
    background-image: url('/assets/gui/diamond_ore.png');
    width: 32px;
    height: 32px;
}

/* Sky Decorations */
.pixel-cloud {
    position: absolute;
    background: #FFFFFF;
    box-shadow: 0 8px 0 rgba(0,0,0,0.12);
    opacity: 0.85;
    border-radius: 2px;
}

.cloud-1 {
    top: 40px;
    left: 8%;
    width: 160px;
    height: 32px;
}

.cloud-2 {
    top: 75px;
    right: 15%;
    width: 224px;
    height: 32px;
}

/* Pixel Art Tree - Classic Oak Tree with authentic Minecraft green tint */
.pixel-tree {
    position: absolute;
    bottom: 0;
    right: 12%;
    width: 96px;
    height: 160px;
    z-index: 5;
}

.tree-trunk {
    position: absolute;
    bottom: 0;
    left: 32px; /* Centrado respecto a las hojas de 96px */
    width: 32px;
    height: 96px;
    background-image: url('/assets/gui/oak_log.png');
    background-size: 32px 32px;
    background-repeat: repeat-y;
    image-rendering: pixelated;
    box-shadow: inset -4px 0 0 rgba(0,0,0,0.2);
}

/* Oak leaves get a classic Minecraft biome green tint via CSS filter */
.tree-leaves-main,
.tree-leaves-top,
.tree-leaves-left,
.tree-leaves-right {
    background-image: url('/assets/gui/oak_leaves.png');
    background-size: 32px 32px;
    background-repeat: repeat;
    image-rendering: pixelated;
    position: absolute;
    /* Minecraft grass-green tint: sepia → hue-rotate to green */
    filter: sepia(1) saturate(3) hue-rotate(75deg) brightness(0.85);
}

.tree-leaves-main {
    bottom: 56px;
    left: 0;
    width: 96px;
    height: 80px;
}

.tree-leaves-top {
    bottom: 120px;
    left: 16px;
    width: 64px;
    height: 48px;
}

.tree-leaves-left {
    bottom: 72px;
    left: -16px;
    width: 32px;
    height: 48px;
}

.tree-leaves-right {
    bottom: 72px;
    right: -16px;
    width: 32px;
    height: 48px;
}

/* Flowers and Short Grass on surface */
.pixel-flower {
    position: absolute;
    bottom: 0;
    width: 32px;
    height: 32px;
    background-repeat: no-repeat;
    background-size: contain;
    image-rendering: pixelated;
    z-index: 6;
}

.flower-poppy-1, .flower-poppy-2, .flower-poppy-3 {
    background-image: url('/assets/gui/poppy.png');
}

.flower-dandelion-1, .flower-dandelion-2, .flower-dandelion-3 {
    background-image: url('/assets/gui/dandelion.png');
}

.flower-grass-1, .flower-grass-2, .flower-grass-3, .flower-grass-4,
.flower-grass-5, .flower-grass-6, .flower-grass-7, .flower-grass-8 {
    background-image: url('/assets/gui/short_grass.png');
    width: 32px;
    height: 32px;
    /* Match the same Minecraft biome green tint as oak leaves */
    filter: sepia(1) saturate(3) hue-rotate(75deg) brightness(0.9);
}

/* Transition blocks for natural chunk generation blend */
.transition-block {
    position: absolute;
    width: 32px;
    height: 32px;
    background-size: 32px 32px;
    image-rendering: pixelated;
    z-index: 4;
}

.trans-stone {
    background-image: url('/assets/gui/stone.png');
}

.trans-dirt {
    background-image: url('/assets/gui/dirt.png');
}

.trans-deepslate {
    background-image: url('/assets/gui/deepslate.png');
}


.nav-left, .nav-center, .nav-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-icon {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    object-fit: contain;
}


.nav-container {
    display: flex;
    gap: 15px;
    max-width: 800px;
    width: 100%;
    padding: 0 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-icon-only {
    width: 46px;
    height: 46px;
    padding: 0;
    min-width: 46px;
}

.nav-btn i {
    font-size: 1.2rem;
}

/* Custom Cursors */
#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    pointer-events: none;
    z-index: 9999;
    background-size: contain;
    background-repeat: no-repeat;
    /* Invertir horizontalmente para que apunte a la izquierda */
    transform: translate(-2px, -2px) scaleX(-1);
    display: none;
    image-rendering: pixelated;
}

body.custom-cursor-active {
    cursor: none !important;
}

body.custom-cursor-active * {
    cursor: none !important;
}

.cursor-settings {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 15px;
}

.cursor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 10px;
    width: 100%;
    background-color: rgba(0,0,0,0.3);
    padding: 15px;
    border: 3px solid #555;
}

.cursor-btn {
    width: 50px;
    height: 50px;
    background-color: var(--mc-stone);
    border: 3px solid #FFF;
    border-right-color: #000;
    border-bottom-color: #000;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.1s;
}

.cursor-btn:hover {
    background-color: var(--mc-stone-light);
}

.cursor-btn.active {
    background-color: var(--mc-grass);
    border-color: #FFF;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.cursor-btn img {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    /* En los botones los mostramos normales (sin flip) */
}

.cursor-btn i {
    font-size: 1.5rem;
    color: #FFF;
}

.theme-settings {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 15px;
}

.theme-grid {
    display: flex;
    gap: 15px;
    width: 100%;
    background-color: rgba(0,0,0,0.3);
    padding: 15px;
    border: 3px solid #555;
}

.theme-btn {
    padding: 8px 16px;
    background-color: var(--mc-stone);
    border: 3px solid #FFF;
    border-right-color: #000;
    border-bottom-color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'VT323', monospace;
    font-size: 1.4rem;
    color: #FFF;
    text-shadow: var(--mc-text-shadow);
    transition: all 0.1s;
}

.theme-btn:hover {
    background-color: var(--mc-stone-light);
}

.theme-btn.active {
    background-color: var(--mc-grass);
    border-color: #FFF;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.theme-btn svg {
    width: 24px;
    height: 24px;
}

/* Vistas y Navegación */
.view {
    display: none;
    position: relative;
}

.view.active {
    display: block;
}

/* Bloqueo Auth */
.generator-panel {
    position: relative;
}

.auth-lock {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #FFF;
    padding: 2rem;
}

.auth-lock .lock-icon {
    width: 96px;
    height: 96px;
    image-rendering: pixelated;
    margin-bottom: 1rem;
}

/* Auth Forms */
.auth-tabs {
    display: flex;
    margin-bottom: 1rem;
    gap: 5px;
}

.auth-tab {
    flex: 1;
    padding: 10px;
    background-color: #444;
    color: #AAA;
    border: none;
    cursor: pointer;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
}

.auth-tab.active {
    background-color: var(--mc-stone);
    color: #FFF;
    border: 2px solid #FFF;
    border-bottom: none;
}

/* Listas (Historial y Novedades) */
.list-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.book-wrapper, .map-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 600px;
    width: 100%;
    max-width: 650px; /* Evita que se estiren demasiado horizontalmente */
    margin: 0 auto; /* Centrado */
    box-sizing: border-box;
    image-rendering: pixelated;
}

.book-wrapper {
    background: url('/assets/gui/book.png') no-repeat center;
    background-size: 100% 100%;
    padding: 5rem 5rem 5rem 7.5rem;
    aspect-ratio: 1 / 1.3; /* Forma de libro/hoja vertical */
}

.map-wrapper {
    background: url('/assets/gui/Map_Background_Rectangle.png') no-repeat center;
    background-size: 100% 100%;
    padding: 6rem;
    aspect-ratio: 1.4 / 1; /* El mapa suele ser más apaisado */
    max-width: 800px;
}

.history-card, .news-card {
    background: none !important;
    border: none !important;
    border-bottom: 1px solid rgba(0,0,0,0.1) !important;
    padding: 20px 0 !important;
    min-height: auto !important;
    color: #333 !important;
    box-shadow: none !important;
}

.history-card:last-child, .news-card:last-child {
    border-bottom: none !important;
}

.news-card {
    color: #222 !important;
}

.history-card .card-header, .news-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(0,0,0,0.1);
    padding-bottom: 0.5rem;
}

.history-card h4, .news-card h4 {
    color: #000;
    font-size: 1.6rem;
    text-shadow: none;
}

.history-card p, .news-card p, .history-card strong, .news-card strong {
    color: #444;
    text-shadow: none;
}

.card-desc {
    font-style: italic;
    color: #555;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 1rem;
}

.pagination-controls .mc-button {
    width: auto;
    padding: 5px 15px;
    font-size: 1.2rem;
}

.page-info {
    font-size: 1.4rem;
    color: #FFF;
    text-shadow: var(--mc-text-shadow);
}

.card-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

/* Perfil */
.profile-header {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.profile-pic-container {
    position: relative;
    width: 120px;
    height: 120px;
    border: 4px solid var(--mc-stone-dark);
    background-color: #000;
    image-rendering: pixelated;
}

.profile-pic-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.upload-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--mc-grass);
    padding: 5px 8px;
    border: 2px solid #FFF;
    cursor: pointer;
    font-size: 1rem;
}

/* Tienda / Marketplace */
.store-header {
    background-color: var(--mc-dirt);
    padding: 1.5rem;
    border: 4px solid #FFF;
    border-right-color: var(--mc-wood-dark);
    border-bottom-color: var(--mc-wood-dark);
    margin-bottom: 2rem;
}

.store-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.filter-group {
    display: flex;
    gap: 10px;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.plugin-card {
    background-color: #C6C6C6;
    border: 4px solid #FFF;
    border-right-color: #555;
    border-bottom-color: #555;
    padding: 10px;
    color: #333;
    display: flex;
    flex-direction: column;
}

.plugin-thumb {
    width: 100%;
    height: 140px;
    background-color: #000;
    margin-bottom: 10px;
    border: 3px solid #555;
    object-fit: cover;
    image-rendering: pixelated;
}

.plugin-card h4 {
    margin: 5px 0;
    font-size: 1.4rem;
    color: #000;
}

.plugin-author {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 10px;
}

.plugin-stats {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    margin-top: auto;
    padding-top: 10px;
    border-top: 2px solid #A0A0A0;
}

.rating-stars {
    color: #FFD700;
}

/* Ajustes */
.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #555;
}

.setting-item label {
    margin-bottom: 0;
}

.main-header h1 {
    font-size: 4rem;
    color: #FFF;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    text-shadow: none;
}

.main-logo {
    max-width: 480px;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(3px 3px 0px rgba(0, 0, 0, 0.7));
    user-select: none;
    -webkit-user-drag: none;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.generator-panel, .info-panel {
    background-color: #C6C6C6; /* Color UI Minecraft */
    border: 4px solid #FFF;
    border-right-color: #555;
    border-bottom-color: #555;
    padding: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

.info-panel {
    font-size: 1.1rem;
    background-color: #8C8C8C;
    color: #FFF;
    text-shadow: 1px 1px 0px #000;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-size: 1.3rem;
}

input[type="text"], select, textarea {
    width: 100%;
    padding: 0.8rem;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    background-color: #000;
    color: #FFF;
    border: 3px solid #555;
    border-right-color: #FFF;
    border-bottom-color: #FFF;
    outline: none;
}

input[type="text"]:focus, select:focus, textarea:focus {
    border-color: #A0A0A0;
}

.mc-button, .nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 4px 12px; /* Reducido padding para evitar aplastamiento vertical */
    font-family: 'VT323', monospace;
    font-size: 1.4rem;
    color: #FFF;
    background-color: #666;
    border: 3px solid;
    border-image: url('/assets/gui/Button_Square.png') 3 3 3 3 fill repeat;
    cursor: pointer;
    text-shadow: var(--mc-text-shadow);
    transition: all 0.1s;
    image-rendering: pixelated;
    min-height: 40px;
    box-sizing: border-box;
}

.mc-button:hover, .nav-btn:hover {
    border-image: url('/assets/gui/Button_Square_Highlighted.png') 4 fill repeat;
}

.mc-button:active, .nav-btn:active, .nav-btn.active {
    border-image: url('/assets/gui/Button_Square_Highlighted.png') 4 fill repeat;
    filter: brightness(0.8);
    transform: translateY(1px);
}

.mc-button:disabled {
    border-image: url('/assets/gui/Button_Square_Disabled.png') 4 fill repeat;
    color: #888;
    cursor: not-allowed;
    text-shadow: none;
}

.error-msg {
    background-color: #AA0000;
    color: #FFF;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid #550000;
    text-shadow: 1px 1px 0px #000;
}

/* Loading Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loading-container {
    text-align: center;
    color: #FFF;
    text-shadow: var(--mc-text-shadow);
}

.cube-spinner {
    width: 64px;
    height: 64px;
    background-color: var(--mc-grass);
    border-bottom: 32px solid var(--mc-dirt);
    margin: 0 auto 2rem auto;
    animation: spin 2s infinite linear;
    image-rendering: pixelated;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.highlight {
    color: #FFEA00;
    text-shadow: 2px 2px 0px #000;
    margin-left: 10px;
}

.mc-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 15px;
    background: #000;
    outline: none;
    border: 3px solid #555;
    border-right-color: #FFF;
    border-bottom-color: #FFF;
    margin: 15px 0;
}

.mc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 35px;
    background: var(--mc-stone);
    border: 3px solid #FFF;
    border-right-color: #000;
    border-bottom-color: #000;
    cursor: pointer;
}

.mc-slider::-moz-range-thumb {
    width: 25px;
    height: 35px;
    background: var(--mc-stone);
    border: 3px solid #FFF;
    border-right-color: #000;
    border-bottom-color: #000;
    cursor: pointer;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer Styles */
.main-footer {
    text-align: center;
    padding: 0.5rem 2rem;
    margin-top: 3rem;
    background-color: #1a1a1a;
    border-top: 4px solid var(--mc-stone-dark);
    color: #FFF;
    text-shadow: 2px 2px 0px #000;
    min-height: 64px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-footer p {
    margin: 0;
    padding: 0;
}

.footer-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
}

.social-links {
    margin: 0 !important;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a, .social-link {
    display: inline-block;
    padding: 2px 10px !important;
    font-family: 'VT323', monospace;
    font-size: 1.1rem !important;
    color: #FFF;
    text-decoration: none;
    background-color: #666;
    border: 3px solid;
    border-image: url('/assets/gui/Button_Square.png') 3 fill repeat;
    cursor: pointer;
    text-shadow: var(--mc-text-shadow);
    image-rendering: pixelated;
}

.social-links a:hover, .social-link:hover {
    border-image: url('/assets/gui/Button_Square_Highlighted.png') 4 fill repeat;
}


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

.modal-content {
    background-color: #C6C6C6;
    border: 4px solid #FFF;
    border-right-color: #555;
    border-bottom-color: #555;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    background-color: var(--mc-grass);
    padding: 10px 20px;
    border-bottom: 4px solid var(--mc-dirt);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #FFF;
    text-shadow: var(--mc-text-shadow);
}

.close-modal {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal img {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    transition: transform 0.1s;
}

.close-modal:hover img {
    transform: scale(1.1);
    content: url('/assets/gui/Cross_Button_Highlighted.png');
}

.modal-body {
    padding: 20px;
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: #333;
    color: #FFF;
    padding: 15px 25px;
    border: 3px solid #FFF;
    border-right-color: #000;
    border-bottom-color: #000;
    font-size: 1.2rem;
    animation: toastSlide 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.success { background-color: var(--mc-grass); }
.toast.error { background-color: #AA0000; }

@keyframes toastSlide {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Store Card Badges */
.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    background-color: rgba(0,0,0,0.7);
    color: #FFEA00;
    font-size: 0.8rem;
    border: 1px solid #FFEA00;
}

.plugin-card {
    position: relative;
}

/* Plugin Detail View */
.plugin-detail {
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: #333;
}

.detail-header {
    display: flex;
    gap: 20px;
    background-color: rgba(0,0,0,0.05);
    padding: 15px;
    border: 2px solid #888;
}

.detail-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.detail-info p {
    font-size: 1.2rem;
    margin: 0;
}

.detail-desc h4, .reviews-section h4 {
    margin-bottom: 10px;
    border-bottom: 2px solid var(--mc-dirt);
    display: inline-block;
    color: #000;
}

.add-review {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    background-color: #A0A0A0;
    border: 3px solid #FFF;
    border-right-color: #555;
    border-bottom-color: #555;
}

.add-review select, .add-review textarea {
    background-color: #FFF;
    color: #333;
    border: 2px solid #555;
    padding: 10px;
    font-family: 'VT323', monospace;
}

.reviews-section {
    margin-top: 10px;
}

/* Carousel */
.carousel-container {
    position: relative;
    width: 100%;
    height: 250px;
    background-color: #000;
    overflow: hidden;
    border: 3px solid #555;
}

.carousel-slides {
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slide.active {
    opacity: 1;
}

.carousel-nav {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    pointer-events: none;
}

.carousel-nav button {
    pointer-events: auto;
    background-color: rgba(0,0,0,0.7);
    color: #FFF;
    border: 2px solid #FFF;
    padding: 5px 15px;
    cursor: pointer;
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
}

.carousel-nav button:hover {
    background-color: var(--mc-grass);
}

/* My Publications Section */
.my-plugins-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: rgba(0,0,0,0.4);
    border: 3px solid #555;
    text-shadow: var(--mc-text-shadow);
}

.my-plugins-section h3 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: var(--mc-grass);
    text-shadow: var(--mc-text-shadow);
}

/* File Input Styling */
.mc-file-input {
    background-color: #000;
    color: #FFF;
    border: 3px solid #555;
    border-right-color: #FFF;
    border-bottom-color: #FFF;
    padding: 10px;
    width: 100%;
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
}

.mc-file-input:hover {
    background-color: #111;
}

/* Improved Typography & Colors */
h1, h2, h3, h4 {
    image-rendering: pixelated;
}

.empty-msg {
    text-align: center;
    color: #AAA;
    font-style: italic;
    padding: 2rem;
}
/* Reviews Section */
.reviews-container {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    padding-right: 10px;
}

.review-item {
    background-color: rgba(0,0,0,0.3);
    border: 2px solid #555;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

.review-text {
    font-size: 1.1rem;
    color: #EEE;
    margin-bottom: 5px;
}

.rating-stars {
    color: #FFD700;
    text-shadow: 1px 1px 0px #000;
}

/* Scrollbar Style */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #222;
}
::-webkit-scrollbar-thumb {
    background: var(--mc-stone);
    border: 2px solid #222;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--mc-stone-light);
}

/* ==========================================================================
   PROJECTS WORKSPACE STYLES
   ========================================================================== */

/* Projects List Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 1.5rem;
}

.project-card {
    background-color: #C6C6C6;
    border: 4px solid #FFF;
    border-right-color: #555;
    border-bottom-color: #555;
    padding: 15px;
    color: #333;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    cursor: pointer;
    transition: transform 0.1s, filter 0.1s;
}

.project-card:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.project-card h4 {
    font-size: 1.6rem;
    color: #000;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    color: #555;
}

/* Badges */
.status-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    padding: 4px 10px;
    font-size: 1rem;
    color: #FFF;
    border: 2px solid #FFF;
    text-shadow: 1px 1px 0 #000;
    transform: rotate(5deg);
    z-index: 2;
}

.status-badge.draft { background-color: var(--mc-stone); }
.status-badge.published { background-color: var(--mc-grass); border-color: #FFF; }
.status-badge.expired { background-color: #AA0000; animation: pulse 2s infinite; }

@keyframes pulse {
    0% { transform: rotate(5deg) scale(1); }
    50% { transform: rotate(5deg) scale(1.1); }
    100% { transform: rotate(5deg) scale(1); }
}

.version-badge {
    display: inline-block;
    background-color: #000;
    color: #FFEA00;
    padding: 2px 6px;
    font-size: 0.9rem;
    border: 2px solid #555;
}

/* ═══════════════════════════════════════════
   WORKSPACE LAYOUT — Premium Redesign
   ═══════════════════════════════════════════ */
.project-workspace {
    display: flex;
    flex-direction: column;
    height: 82vh;
    min-height: 600px;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 3px solid #444;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
    overflow: hidden;
}

/* Workspace Header */
.workspace-header {
    background: linear-gradient(180deg, #4a3728 0%, #3a2a1e 100%);
    padding: 12px 20px;
    border-bottom: 3px solid #2a1a0e;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #FFF;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.header-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-title h2 {
    margin: 0;
    font-size: 1.7rem;
    text-shadow: 2px 2px 0 #000;
    letter-spacing: 1px;
}

.header-actions {
    display: flex;
    gap: 8px;
}

.header-actions .mc-button {
    transition: transform 0.1s, box-shadow 0.1s;
}
.header-actions .mc-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
}

/* Expire Warning */
.expire-warning {
    background: linear-gradient(90deg, #8b0000, #aa0000, #8b0000);
    color: #FFF;
    padding: 10px 15px;
    text-align: center;
    border-bottom: 2px solid #550000;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    animation: pulse-warning 2s infinite;
}
@keyframes pulse-warning {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* Main Content Area */
.workspace-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ── Left Panel: Files ─────────────────── */
.file-panel {
    flex: 0 0 38%;
    max-width: 480px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    border-right: 3px solid #333;
    background: #252525;
}

.file-tree {
    flex: 0 0 auto;
    max-height: 35%;
    background: #1e1e1e;
    border: 2px solid #333;
    border-radius: 2px;
    margin: 10px;
    padding: 8px;
    overflow-y: auto;
}

.file-tree::-webkit-scrollbar { width: 6px; }
.file-tree::-webkit-scrollbar-track { background: #1a1a1a; }
.file-tree::-webkit-scrollbar-thumb { background: #555; border-radius: 3px; }

.file-tree-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    cursor: pointer;
    color: #ccc;
    font-size: 1.1rem;
    border-radius: 2px;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
}

.file-tree-item:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.file-tree-item.active {
    background: rgba(85, 170, 85, 0.15);
    color: #5f5;
    border-left-color: #5f5;
    font-weight: bold;
}

.file-tree-item i {
    width: 18px;
    text-align: center;
    font-size: 1rem;
}

.file-tree-item.type-java i { color: #f89820; }
.file-tree-item.type-yml i { color: #e44d4d; }
.file-tree-item.type-json i { color: #56b6c2; }

.file-preview {
    flex: 1;
    background: #0d0d0d;
    color: #55FF55;
    border: 2px solid #333;
    border-radius: 2px;
    margin: 0 10px 10px 10px;
    padding: 16px;
    overflow-y: auto;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-all;
    text-shadow: 0 0 6px rgba(85, 255, 85, 0.15);
}

.file-preview::-webkit-scrollbar { width: 6px; }
.file-preview::-webkit-scrollbar-track { background: #0a0a0a; }
.file-preview::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; }

/* ── Right Panel: Chat ─────────────────── */
.chat-panel {
    flex: 1;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    background: #141414;
    position: relative;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-track { background: #111; }
.chat-messages::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; }

/* ── Chat Messages ─────────────────────── */
.chat-msg {
    max-width: 90%;
    padding: 12px 16px;
    font-size: 1.05rem;
    line-height: 1.5;
    word-wrap: break-word;
    border-radius: 4px;
    animation: msg-fade-in 0.3s ease;
    position: relative;
}

@keyframes msg-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-msg-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.chat-msg-avatar {
    font-size: 1.1rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-msg-label {
    font-weight: bold;
    color: #aaa;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.chat-msg-time {
    color: #555;
    font-size: 0.75rem;
    margin-left: auto;
}

.chat-msg-body {
    color: #e0e0e0;
    line-height: 1.6;
}

/* User messages */
.chat-msg.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #2d5a2d 0%, #1e4d1e 100%);
    border: 1px solid #3a7a3a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.chat-msg.user .chat-msg-label { color: #7ddf7d; }
.chat-msg.user .chat-msg-body { color: #e8f5e8; }

/* AI messages */
.chat-msg.ai {
    align-self: flex-start;
    background: linear-gradient(135deg, #2a2a2a 0%, #222 100%);
    border: 1px solid #3a3a3a;
    border-left: 3px solid #FFEA00;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.chat-msg.ai .chat-msg-label { color: #FFEA00; }
.chat-msg.ai .chat-msg-body { color: #ddd; }

/* File pills */
.chat-msg-files {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.85rem;
    color: #888;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.chat-msg-files i {
    color: #FFEA00;
    margin-right: 2px;
}

.chat-msg-file-pill {
    display: inline-block;
    background: rgba(255,234,0,0.1);
    border: 1px solid rgba(255,234,0,0.25);
    color: #FFEA00;
    padding: 2px 8px;
    border-radius: 2px;
    font-family: 'Consolas', monospace;
    font-size: 0.8rem;
    transition: background 0.15s;
}

.chat-msg-file-pill:hover {
    background: rgba(255,234,0,0.2);
}

/* Chat Input Bar */
.chat-input-bar {
    padding: 12px 14px;
    background: #1e1e1e;
    border-top: 2px solid #333;
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.chat-input-bar textarea {
    flex: 1;
    height: 52px;
    resize: none;
    background: #0d0d0d;
    color: #e0e0e0;
    border: 2px solid #333;
    border-radius: 3px;
    padding: 10px 12px;
    font-family: 'VT323', monospace;
    font-size: 1.15rem;
    transition: border-color 0.2s;
    line-height: 1.4;
}

.chat-input-bar textarea:focus {
    border-color: #FFEA00;
    outline: none;
    box-shadow: 0 0 0 1px rgba(255,234,0,0.2);
}

.chat-input-bar textarea::placeholder {
    color: #555;
}

.chat-input-bar .mc-button {
    height: 52px;
    padding: 0 18px;
    font-size: 1.1rem;
    white-space: nowrap;
}

/* ── Version History ───────────────────── */
.version-history {
    background: #1e1e1e;
    border-top: 3px solid #333;
    padding: 10px 15px;
}

.version-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: #aaa;
    padding: 4px 0;
    transition: color 0.15s;
}

.version-history-header:hover {
    color: #fff;
}

.version-history-list {
    margin-top: 10px;
    display: none;
    flex-direction: column;
    gap: 4px;
    max-height: 150px;
    overflow-y: auto;
    background: #151515;
    border: 2px solid #333;
    border-radius: 2px;
    padding: 10px;
}

.version-history-list.open {
    display: flex;
}

.history-item {
    padding: 8px 10px;
    border-bottom: 1px solid #2a2a2a;
    color: #bbb;
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    transition: background 0.15s;
}

.history-item:hover {
    background: rgba(255,255,255,0.03);
}

.history-item:last-child {
    border-bottom: none;
}

/* ── Responsive ────────────────────────── */
@media (max-width: 900px) {
    .workspace-content {
        flex-direction: column;
    }
    .file-panel {
        flex: 0 0 auto;
        max-width: 100%;
        border-right: none;
        border-bottom: 3px solid #333;
        max-height: 40vh;
    }
    .chat-panel {
        min-width: unset;
    }
}

/* --- ENERGY BOX SLIDES & STYLES --- */
.energy-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.45);
    border: 3px solid;
    border-image: url('/assets/gui/Button_Square_Disabled.png') 4 fill repeat;
    padding: 4px 12px;
    height: 46px; /* Matches navbar button height */
    font-family: 'VT323', monospace;
    font-size: 1.4rem;
    color: #FFF;
    text-shadow: var(--mc-text-shadow);
    gap: 8px;
    image-rendering: pixelated;
    box-sizing: border-box;
}

.energy-icon {
    color: #FFEA00;
    font-size: 1.4rem;
    display: inline-block;
}

/* --- WORKSPACE PANELS --- */
.workspace-content {
    transition: all 0.3s ease;
}
.file-panel, .chat-panel {
    transition: all 0.3s ease;
    overflow: hidden;
}
.file-panel.collapsed {
    flex: 0 0 0 !important;
    min-width: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    border: none !important;
    opacity: 0;
}
.chat-panel.collapsed {
    flex: 0 0 0 !important;
    min-width: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    border: none !important;
    opacity: 0;
}
.panel-toggle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 48px;
    background-color: var(--mc-surface);
    border: 2px solid var(--mc-border);
    color: white;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.panel-toggle:hover {
    background-color: var(--mc-button-hover);
}
.toggle-left {
    left: 0;
    border-left: none;
    border-radius: 0 4px 4px 0;
}
.toggle-right {
    right: 0;
    border-right: none;
    border-radius: 4px 0 0 4px;
}

/* --- CONTRAST IMPROVEMENTS --- */
.info-panel {
    background-color: rgba(20, 20, 20, 0.85);
    border: 2px solid var(--mc-stone);
    color: #FFF;
}
.info-panel h3 {
    color: #FFEA00;
    text-shadow: 2px 2px 0 #000;
}
.info-panel p {
    color: #E0E0E0;
    line-height: 1.5;
    text-shadow: 1px 1px 0 #000;
}
.empty-msg {
    color: #FFEA00;
    text-shadow: 2px 2px 0 #000;
    font-size: 1.3rem;
    text-align: center;
    background-color: rgba(0,0,0,0.5);
    padding: 10px;
    border: 2px dashed var(--mc-stone);
}

/* --- CHAT LOADING / PENSANDO --- */
.chat-msg.ai .loading-dots {
    display: inline-block;
}
.chat-msg.ai.loading {
    opacity: 0.75;
}
.chat-msg.ai.loading .chat-msg-body {
    color: #aaa;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 8px;
}
.chat-msg.ai.loading .chat-msg-body .fa-cog {
    color: #FFEA00;
    font-size: 1.1rem;
}
@keyframes dot-pulse {
    0%, 80%, 100% { opacity: 0; }
    40% { opacity: 1; }
}
.loading-dots::after {
    content: '';
    display: inline-block;
    animation: dot-pulse 1.4s infinite ease-in-out both;
}

/* --- FULL RESPONSIVE --- */
@media (max-width: 768px) {
    /* Navbar ajustada */
    .mc-navbar {
        flex-direction: column;
        padding: 5px;
        height: auto;
    }
    .nav-left, .nav-center, .nav-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        margin-bottom: 5px;
        gap: 8px;
    }
    .nav-center {
        position: static !important;
        transform: none !important;
        left: auto !important;
    }
    .nav-btn {
        padding: 6px 10px;
        font-size: 1rem;
        height: 38px;
    }
    .nav-icon-only {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }
    .nav-icon-only img.nav-icon {
        width: 20px;
        height: 20px;
    }
    .energy-box {
        height: 38px;
        font-size: 1.1rem;
        padding: 4px 8px;
    }
    #btn-buy-energy {
        height: 38px !important;
        font-size: 1.2rem !important;
    }

    /* Fondos de libro y mapa: adaptarse al contenido */
    .book-wrapper, .map-wrapper {
        aspect-ratio: auto;
        min-height: auto;
        height: auto;
        background-size: 100% 100%;
        padding: 3rem 1.5rem;
        overflow: visible;
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    /* Desactivar cursor custom en móviles */
    #custom-cursor {
        display: none !important;
    }
    .cursor-settings {
        display: none !important; /* Ocultar en ajustes */
    }

    /* Workspace */
    .workspace-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .header-title {
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
    }
    .header-title h2 {
        font-size: 1.4rem;
    }
    .header-actions {
        width: 100%;
        flex-wrap: wrap;
        gap: 6px;
    }
    .header-actions .mc-button {
        flex: 1 1 auto;
        font-size: 0.9rem !important;
        padding: 4px 8px;
        min-height: 36px;
    }
    .workspace-content {
        flex-direction: column;
    }
    .file-panel, .chat-panel {
        width: 100% !important;
        flex: 1 1 50%;
        border-right: none;
        border-bottom: 4px solid var(--mc-stone-dark);
    }
    
    /* Botones de panel toggle en móvil */
    .panel-toggle {
        display: none !important; /* En móvil apilamos, mejor no colapsar para simplificar, o si colapsamos es vertical */
    }

    /* Modales */
    .modal-content {
        width: 95%;
        margin-top: 10vh;
        padding: 15px;
    }
    
    /* Botones generales y paginación en móviles */
    .mc-button {
        font-size: 1.2rem;
        min-height: 36px;
        padding: 4px 10px;
    }
    .card-footer {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px !important;
    }
    .card-footer .mc-button {
        flex: 1 1 auto;
        min-width: 100px;
    }

    /* Ajuste de fuentes para el Historial y Novedades en móvil */
    .history-card h4, .news-card h4 {
        font-size: 1.3rem !important;
    }
    .history-card p, .news-card p {
        font-size: 1.1rem !important;
    }
    
    /* Textos y títulos */
    .main-logo {
        max-width: 280px;
    }
    .main-header p {
        font-size: 1.2rem;
    }
    
    /* Grid de Tienda */
    .store-grid, .grid-proyectos {
        grid-template-columns: 1fr;
    }
}

/* --- DARK THEME OVERRIDES --- */
.dark-theme {
    background-color: #121212 !important;
}

.dark-theme .generator-panel, 
.dark-theme .info-panel, 
.dark-theme .plugin-card, 
.dark-theme .store-header, 
.dark-theme .modal-content {
    background-color: #2c2c2c !important;
    border-color: #555 !important;
    border-right-color: #1e1e1e !important;
    border-bottom-color: #1e1e1e !important;
    color: #e0e0e0 !important;
}

.dark-theme .info-panel {
    background-color: #1e1e1e !important;
}

.dark-theme label, 
.dark-theme h2, 
.dark-theme h3, 
.dark-theme h4, 
.dark-theme p, 
.dark-theme span, 
.dark-theme strong {
    color: #e0e0e0 !important;
}

.dark-theme .highlight {
    color: #FFEA00 !important;
}

.dark-theme input[type="text"], 
.dark-theme select, 
.dark-theme textarea {
    background-color: #1e1e1e !important;
    color: #fff !important;
    border-color: #444 !important;
    border-right-color: #888 !important;
    border-bottom-color: #888 !important;
}

.dark-theme .plugin-author {
    color: #aaa !important;
}

.dark-theme .plugin-stats {
    border-top-color: #444 !important;
}

.dark-theme .book-wrapper, 
.dark-theme .map-wrapper {
    filter: brightness(0.7) contrast(1.1);
}

.dark-theme .history-card, 
.dark-theme .news-card {
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

.dark-theme .history-card h4, 
.dark-theme .news-card h4, 
.dark-theme .history-card p, 
.dark-theme .news-card p, 
.dark-theme .history-card strong, 
.dark-theme .news-card strong {
    color: #fff !important;
}

/* --- NUEVO MENÚ DE CREACIÓN DE PROYECTO --- */
.np-wizard-step {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}
.np-wizard-step.active {
    display: block;
}

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

.np-card-grid {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.np-card {
    flex: 1;
    background-color: var(--mc-stone);
    border: 4px solid #fff;
    border-right-color: #555;
    border-bottom-color: #555;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.np-card:hover {
    background-color: var(--mc-stone-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.np-card.active {
    background-color: var(--mc-grass);
    border-color: #fff;
    box-shadow: 0 0 15px rgba(92, 145, 75, 0.6);
}

.np-card img {
    width: 64px;
    height: 64px;
    image-rendering: pixelated;
}

.np-card h4 {
    font-size: 1.6rem;
    color: #fff;
    text-shadow: var(--mc-text-shadow);
}

.np-card p {
    font-size: 1.1rem;
    color: #ddd;
    text-shadow: 1px 1px 0 #000;
}

.np-software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.np-soft-card {
    background-color: rgba(0,0,0,0.4);
    border: 3px solid #555;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.np-soft-card:hover {
    background-color: rgba(0,0,0,0.6);
    border-color: #aaa;
}

.np-soft-card.active {
    background-color: var(--mc-dirt);
    border-color: #fff;
}

.np-soft-card h5 {
    font-size: 1.4rem;
    color: #fff;
    text-shadow: 1px 1px 0 #000;
}

.np-version-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.np-version-pill {
    padding: 5px 15px;
    background-color: #444;
    border: 2px solid #222;
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.1s;
}

.np-version-pill:hover {
    background-color: #666;
}

.np-version-pill.active {
    background-color: var(--mc-grass);
    border-color: #fff;
}

.np-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    border-top: 2px solid rgba(255,255,255,0.1);
    padding-top: 15px;
}

.np-input-card {
    background: rgba(0,0,0,0.3);
    border: 2px solid #444;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.np-input-card label {
    display: block;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 1px 1px 0 #000;
}

.np-fancy-input {
    width: 100%;
    padding: 10px;
    background: #111 !important;
    border: 2px solid #555 !important;
    color: #fff !important;
    font-size: 1.1rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.np-fancy-input:focus {
    border-color: var(--mc-grass) !important;
    outline: none;
}

/* AdSense & Readability improvements: Use Inter font for paragraphs, tutorial bodies and forms */
.hero-desc, 
.features-grid p,
.about-section p,
.contact-section p,
.tutorial-body,
.contact-form input,
.contact-form textarea,
.info-panel p,
.generator-panel p {
    font-family: 'Inter', sans-serif !important;
    font-size: 1.05rem;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

/* Titles on Home Page */
#view-home h2,
#view-home h3,
#view-home h4,
#view-home .mc-button {
    font-family: 'VT323', monospace !important;
}

#view-home h2 {
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 15px;
    text-align: center;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 1rem;
    border-radius: 4px;
    background: #C6C6C6;
}

.hero-badge {
    display: inline-block;
    background-color: var(--mc-wood-dark);
    color: #FFEA00;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    padding: 2px 10px;
    border: 2px solid #000;
    margin-bottom: 15px;
    text-shadow: 1px 1px 0px #000;
}

.hero-desc {
    max-width: 650px;
    margin: 0 auto;
    color: #333;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.feature-card {
    text-align: center;
    padding: 1.5rem !important;
    margin-bottom: 0 !important;
}

.feature-card h4 {
    font-size: 1.6rem;
    margin: 15px 0 10px 0;
    color: #111;
}

.feature-card p {
    color: #444;
    font-size: 0.95rem;
}

.feature-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 64px;
}

/* Interactive Preview Code Mockup */
.demo-layout {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.demo-prompt {
    background: #8C8C8C;
    border: 3px solid #555;
    padding: 12px;
    color: #fff;
    border-radius: 2px;
}

.prompt-label {
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    display: block;
    color: #FFEA00;
    text-shadow: 1px 1px 0px #000;
    margin-bottom: 5px;
}

.prompt-box {
    font-family: 'Inter', sans-serif;
    font-style: italic;
    font-size: 1.05rem;
}

.code-label {
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    display: block;
    color: #111;
    margin-bottom: 5px;
}

.code-mockup {
    background: #1e1e1e;
    border: 3px solid #555;
    padding: 15px;
    color: #d4d4d4;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    border-radius: 2px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

/* Syntax Highlighting for Mockup */
.code-mockup .keyword { color: #569cd6; }
.code-mockup .class-name { color: #4ec9b0; }
.code-mockup .method-name { color: #dcdcaa; }
.code-mockup .annotation { color: #569cd6; }
.code-mockup .string { color: #ce9178; }
.code-mockup .number { color: #b5cea8; }

/* Tutorials Section */
.tutorials-section h4 {
    font-size: 1.7rem;
    color: #111;
    margin-top: 5px;
}

.tutorial-category {
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    color: var(--mc-grass);
    font-weight: bold;
    text-shadow: none;
}

.tutorial-body {
    color: #333;
    margin-top: 15px;
}

.tutorial-body p {
    margin-bottom: 12px;
}

.tutorial-body p:last-child {
    margin-bottom: 0;
}

.code-box {
    background: #222;
    border: 3px solid #555;
    padding: 12px;
    margin: 15px 0;
    border-radius: 2px;
    overflow-x: auto;
}

.code-box code {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.9rem;
    color: #a9b7c6;
}

/* Contact form inputs styled in Minecraft theme but with Inter font */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 10px;
    background: #111 !important;
    border: 3px solid #555 !important;
    color: #fff !important;
    box-sizing: border-box;
    border-radius: 0;
    font-size: 1rem;
    transition: border-color 0.1s;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: var(--mc-grass) !important;
    outline: none;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    #view-home h2 {
        font-size: 2.2rem;
    }
}
