/* 
   Estilo Premium KSMC Minecraft.net - Storefront
   Com altíssima fidelidade estética baseada nos ativos do site oficial.
*/

/* 1. Importação dos Webfonts do Site Oficial */
@layer reset {
    @import url("css/clientlib-site.min.1087120260506113461700081022731778151702850.css");
}

:root {
    --mc-green: #3c8527;
    --mc-green-hover: #52a535;
    --mc-green-active: #2d5f1b;
    --mc-gray: #181818;
    --mc-panel-bg: #212121;
    --mc-border-dark: #121212;
    --mc-border-light: #3e3e3e;
    
    --font-logo: 'MinecraftTen', 'MinecraftTenv2', Arial, sans-serif;
    --font-pixel: 'MinecraftSeven', 'MinecraftSeven-v2', monospace;
    --font-body: 'Gellix', 'Noto Sans', sans-serif;
}

/* 2. Reset & Estrutura Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0c0c0c;
    color: #f0f0f0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* 3. Utilitários de Tipografia */
.font-logo {
    font-family: var(--font-logo) !important;
    font-weight: normal;
    letter-spacing: 1px;
}

.font-pixel {
    font-family: var(--font-pixel) !important;
    font-size: 14px;
}

.font-body {
    font-family: var(--font-body) !important;
}

.text-center {
    text-align: center;
}

.mc-brand-logo {
    font-family: var(--font-logo);
    font-size: 30px;
    color: #ffffff;
    text-shadow: 2px 2px 0px #000;
    text-decoration: none;
    letter-spacing: 2px;
}

/* 4. Botões Pixelados Autênticos (Minecraft UI) */
.mc-btn {
    background-color: #5c8e32;
    border: 2px solid #000000;
    box-shadow: inset -2px -4px 0px 0px #2a4c17, inset 2px 2px 0px 0px #8cd843;
    color: #ffffff;
    text-shadow: 2px 2px 0px #000000;
    padding: 14px 28px;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    transition: none; /* Instantâneo como o jogo original! */
    font-size: 14px;
    letter-spacing: 0.5px;
}

.mc-btn:hover {
    background-color: #6da23b;
    box-shadow: inset -2px -4px 0px 0px #31581b, inset 2px 2px 0px 0px #9ee94f;
    color: #ffffff;
}

.mc-btn:active {
    background-color: #4a7526;
    box-shadow: inset 2px 2px 0px 0px #1d330f, inset -2px -2px 0px 0px #619a35;
    text-shadow: 1px 1px 0px #000000;
}

.mc-btn-gray {
    background-color: #4a4a4a;
    border: 2px solid #000000;
    box-shadow: inset -2px -4px 0px 0px #2a2a2a, inset 2px 2px 0px 0px #707070;
    color: #ffffff;
    text-shadow: 2px 2px 0px #000000;
    padding: 14px 28px;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    transition: none;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.mc-btn-gray:hover {
    background-color: #5a5a5a;
    box-shadow: inset -2px -4px 0px 0px #3c3c3c, inset 2px 2px 0px 0px #858585;
    color: #ffffff;
}

.mc-btn-gray:active {
    background-color: #383838;
    box-shadow: inset 2px 2px 0px 0px #1e1e1e, inset -2px -2px 0px 0px #5c5c5c;
    text-shadow: 1px 1px 0px #000000;
}

.btn-block {
    display: block;
    width: 100%;
}

/* 5. Painéis GUI do Minecraft (Bevels de 4px) */
.mc-gui-panel {
    background-color: var(--mc-panel-bg);
    border: 4px solid #000000;
    box-shadow: inset -4px -4px 0px 0px var(--mc-border-dark), inset 4px 4px 0px 0px var(--mc-border-light);
    padding: 24px;
    position: relative;
}

.mc-gui-panel-dark {
    background-color: #121212;
    border: 4px solid #000000;
    box-shadow: inset -4px -4px 0px 0px #080808, inset 4px 4px 0px 0px #222222;
    padding: 32px;
    position: relative;
}

/* 6. Cabeçalho (Header) Oficial Minecraft.net */
.mc-header {
    background-color: var(--mc-gray);
    border-bottom: 4px solid #080808;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 0;
}

.mc-header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.mc-logo-svg {
    height: 38px;
    image-rendering: pixelated;
    display: block;
}

.mc-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: bold;
    text-shadow: 1px 1px 0 #000;
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
}

.nav-link:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

.nav-btn {
    padding: 8px 16px;
    font-size: 12px;
}

/* 7. Hero Section Estilo Realms */
.mc-hero {
    position: relative;
    background-image: url('images/open-realm-bg-desktop.jpg');
    background-size: cover;
    background-position: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
    border-bottom: 8px solid #000000;
}

.mc-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.85) 100%);
    z-index: 1;
}

.mc-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
}

.mc-hero-badge {
    color: #8cd843;
    letter-spacing: 2px;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 2px 2px 0px #000000;
    margin-bottom: 18px;
}

.mc-hero-title {
    font-size: 64px;
    color: #ffffff;
    text-shadow: 4px 4px 0px #000000;
    margin-bottom: 24px;
    line-height: 1.1;
}

.mc-hero-subtitle {
    font-size: 18px;
    color: #d8d8d8;
    margin-bottom: 40px;
    text-shadow: 1px 1px 0px #000;
    font-weight: 300;
}

.mc-hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 8. Seção de Planos de Hospedagem */
.plans-section {
    background-color: #1a1a1a;
    background-image: url('images/bg-wool-dark.jpg');
    background-repeat: repeat;
    padding: 90px 0;
    border-bottom: 8px solid #000000;
    position: relative;
}

.plans-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(12, 12, 12, 0.7);
    z-index: 1;
}

.plans-section .container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
}

.section-title {
    font-size: 38px;
    color: #ffffff;
    text-shadow: 3px 3px 0px #000000;
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    color: #bababa;
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: start;
}

@media (max-width: 1300px) {
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Plan Cards */
.plan-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s;
}

.plan-card:hover {
    transform: translateY(-4px);
}

.plan-card.featured {
    border-color: #3c8527;
    --mc-border-light: #52a535;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.featured-badge {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #3c8527;
    border: 2px solid #000000;
    box-shadow: inset -1px -2px 0px 0px #1a3a10, inset 1px 1px 0px 0px #76b043;
    padding: 6px 16px;
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    text-shadow: 1px 1px 0 #000;
    z-index: 5;
}

.plan-icon-tag {
    display: inline-block;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: bold;
    border: 2px solid #000000;
    text-shadow: 1px 1px 0 #000;
    margin-bottom: 15px;
}

.coal-tag {
    background-color: #434343;
    box-shadow: inset -1px -2px 0px 0px #212121, inset 1px 1px 0px 0px #616161;
}

.iron-tag {
    background-color: #929292;
    box-shadow: inset -1px -2px 0px 0px #5c5c5c, inset 1px 1px 0px 0px #c0c0c0;
}

.diamond-tag {
    background-color: #279e9e;
    box-shadow: inset -1px -2px 0px 0px #155757, inset 1px 1px 0px 0px #4be0e0;
}

.netherite-tag {
    background-color: #383030;
    box-shadow: inset -1px -2px 0px 0px #1a1515, inset 1px 1px 0px 0px #584c4c;
    color: #ffaa00;
}

.plan-name {
    font-size: 26px;
    color: #ffffff;
    text-shadow: 2px 2px 0px #000000;
    margin-bottom: 8px;
}

.plan-price {
    font-size: 32px;
    color: #8cd843;
    text-shadow: 2px 2px 0px #000000;
    margin-bottom: 20px;
}

.plan-period {
    font-size: 14px;
    color: #bababa;
}

.plan-separator {
    height: 4px;
    background-color: #121212;
    border-bottom: 2px solid #3c3c3c;
    margin-bottom: 20px;
}

.plan-features {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.plan-features li {
    padding: 10px 0;
    font-size: 13px;
    color: #cfcfcf;
    display: flex;
    align-items: center;
    gap: 12px;
}

.bullet-check {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #8cd843;
    border: 1px solid #000000;
    box-shadow: inset -1px -1px 0 #4a7526;
}

.plan-btn {
    margin-top: auto;
}

/* 9. Seção de Vantagens (Recursos) */
.features-section {
    background-color: #0c0c0c;
    padding: 90px 0;
    border-bottom: 8px solid #000000;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-box {
    text-align: center;
}

.feature-icon-wrapper {
    margin-bottom: 20px;
    border: 4px solid #000000;
    box-shadow: inset -2px -2px 0px #000, 0 8px 16px rgba(0,0,0,0.4);
    overflow: hidden;
    height: 160px;
}

.feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: auto;
    transition: transform 0.3s;
}

.feature-box:hover .feature-img {
    transform: scale(1.05);
}

.feature-title {
    font-size: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 0px #000000;
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 14px;
    color: #bababa;
    line-height: 1.6;
}

/* 10. Modais Estilo GUI do Minecraft (Menu Pausa) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    background-image: url('images/bg-wool-dark.jpg');
    background-repeat: repeat;
    background-blend-mode: multiply;
    z-index: 1000;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.modal.active {
    display: flex;
}

.modal-dialog {
    width: 100%;
    max-width: 680px; /* Aumentado para acomodar o construtor de rede */
    padding: 24px;
}

.modal-content {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #ababab;
    text-shadow: 1px 1px 0 #000;
    transition: color 0.1s;
    user-select: none;
}

.close-btn:hover {
    color: #ffffff;
}

.modal-title {
    font-size: 28px;
    color: #ffffff;
    text-shadow: 2px 2px 0 #000;
    margin-bottom: 6px;
}

.modal-subtitle {
    color: #8cd843;
    text-shadow: 1px 1px 0 #000;
    margin-bottom: 28px;
}

.checkout-section {
    margin-top: 24px;
    border-top: 2px solid #202020;
    padding-top: 20px;
}

.checkout-section-title {
    font-size: 15px;
    color: #ffffff;
    text-shadow: 1px 1px 0 #000;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

.network-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.btn-add-server {
    padding: 6px 12px !important;
    font-size: 11px !important;
    height: auto !important;
}

/* Formulários */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

label {
    display: block;
    font-size: 12px;
    font-weight: bold;
    color: #e0e0e0;
    text-shadow: 1px 1px 0 #000;
    margin-bottom: 8px;
}

input, select {
    width: 100%;
    background-color: #0c0c0c;
    border: 2px solid #000000;
    box-shadow: inset -2px -2px 0px 0px #303030, inset 2px 2px 0px 0px #030303;
    padding: 12px 14px;
    color: #ffffff;
    font-size: 13px;
    transition: box-shadow 0.1s;
}

input:focus, select:focus {
    outline: none;
    box-shadow: inset -2px -2px 0px 0px #303030, inset 2px 2px 0px 0px #030303, 0 0 0 2px #5c8e32;
}

/* 11. Construtor de Rede (Múltiplas Linhas de Servidor) */
.network-servers-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 6px;
    margin-bottom: 20px;
}

/* Scrollbar do Construtor */
.network-servers-container::-webkit-scrollbar {
    width: 8px;
}
.network-servers-container::-webkit-scrollbar-track {
    background: #0c0c0c;
    border: 2px solid #000;
}
.network-servers-container::-webkit-scrollbar-thumb {
    background: #5a5a5a;
    border: 1px solid #000;
}

.server-split-card {
    background-color: #1a1a1a;
    border: 2px solid #000000;
    box-shadow: inset -2px -2px 0px #101010, inset 2px 2px 0px #323232;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.server-split-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.server-index-label {
    font-size: 12px;
    color: #8cd843;
    text-shadow: 1px 1px 0 #000;
}

.btn-remove-server {
    background-color: #a82e2e;
    box-shadow: inset -1px -2px 0px #5c1818, inset 1px 1px 0px #d45959;
    border: 2px solid #000000;
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
    padding: 4px 8px;
    cursor: pointer;
    text-shadow: 1px 1px 0 #000;
}

.btn-remove-server:hover {
    background-color: #c43838;
}

.server-inputs-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 12px;
}

.subdomain-input-group {
    display: flex;
    align-items: center;
}

.subdomain-suffix {
    background-color: #0c0c0c;
    border: 2px solid #000000;
    border-left: none;
    box-shadow: inset -2px -2px 0px 0px #303030, inset 0px 2px 0px 0px #030303;
    padding: 12px 10px;
    color: #888888;
    font-size: 11px;
    height: 100%;
    display: flex;
    align-items: center;
}

.subdomain-input-group input {
    border-right: none;
    box-shadow: inset 0px -2px 0px 0px #303030, inset 2px 2px 0px 0px #030303;
}

/* 12. Painel de Recursos Acumulados */
.resource-summary-panel {
    background-color: #151515 !important;
    margin-bottom: 24px !important;
}

.resource-summary-title {
    font-size: 14px;
    color: #ffffff;
    text-shadow: 1px 1px 0 #000;
    margin-bottom: 15px;
}

.resource-bar-row {
    margin-bottom: 14px;
}

.resource-bar-row:last-child {
    margin-bottom: 0;
}

.resource-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: bold;
    text-shadow: 1px 1px 0 #000;
    margin-bottom: 4px;
}

.resource-progress-bg {
    background-color: #0c0c0c;
    border: 2px solid #000000;
    height: 16px;
    position: relative;
    overflow: hidden;
}

.resource-progress-fill {
    height: 100%;
    transition: width 0.2s ease-out;
}

.resource-progress-fill.green {
    background-color: #5c8e32;
    box-shadow: inset -1px -2px 0px #2a4c17, inset 1px 1px 0px #8cd843;
}

.resource-progress-fill.red {
    background-color: #b82a2a;
    box-shadow: inset -1px -2px 0px #631515, inset 1px 1px 0px #e64545;
}

.resource-error-msg {
    background-color: rgba(184, 42, 42, 0.15);
    border: 2px solid #b82a2a;
    color: #ff5555;
    padding: 12px;
    text-align: center;
    text-shadow: 1px 1px 0 #000;
    font-size: 12px;
    margin-bottom: 20px;
}

/* 13. Terminal de logs realistas de Minecraft */
.terminal {
    margin-top: 15px;
    border-radius: 0;
    padding: 0 !important;
    overflow: hidden;
}

.terminal-header {
    background-color: #1a1a1a;
    padding: 10px 16px;
    border-bottom: 4px solid #080808;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ababab;
    text-shadow: 1px 1px 0 #000;
    font-size: 12px;
}

.terminal-dot {
    width: 8px;
    height: 8px;
    border: 1px solid #000;
}
.terminal-dot.red { background-color: #ff3b30; }
.terminal-dot.yellow { background-color: #ffcc00; }
.terminal-dot.green { background-color: #34c759; }

.terminal-title {
    margin-left: 6px;
}

.terminal-body {
    background-color: #050508;
    box-shadow: inset 4px 4px 10px rgba(0,0,0,0.8);
    height: 300px;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #ffffff;
    text-shadow: 1px 1px 0px #000;
    font-size: 12px;
    border: 2px solid #000;
}

.log-line {
    word-break: break-all;
    line-height: 1.4;
}

.log-line.system {
    color: #8cd843; /* Minecraft Green */
}

.log-line.error {
    color: #ff3b30; /* Minecraft Red alert */
}

.log-line.info {
    color: #ffffff; /* Minecraft logs white */
}

.log-line.cyan {
    color: #4be0e0; /* Diamante Cyan info */
}

/* 14. Tela de Sucesso */
.success-container {
    text-align: center;
    padding: 10px 0;
}

.success-chest-img {
    height: 72px;
    image-rendering: pixelated;
    margin-bottom: 20px;
}

.success-servers-list-container {
    text-align: left;
    margin-bottom: 24px;
}

.success-list-title {
    font-size: 13px;
    color: #ffffff;
    text-shadow: 1px 1px 0 #000;
    margin-bottom: 12px;
}

.success-servers-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.success-server-item {
    background-color: #1a1a1a;
    border: 2px solid #000000;
    box-shadow: inset -1px -2px 0 #101010, inset 1px 1px 0 #3c3c3c;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.success-server-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.success-server-name {
    font-size: 14px;
    color: #ffffff;
    text-shadow: 1px 1px 0 #000;
}

.success-server-egg {
    font-size: 10px;
    color: #ababab;
    text-shadow: 1px 1px 0 #000;
}

.success-server-conn {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.success-server-sub {
    font-size: 14px;
    color: #8cd843;
    text-shadow: 1px 1px 0 #000;
    font-weight: bold;
}

.success-server-ip {
    font-size: 11px;
    color: #888888;
    text-shadow: 1px 1px 0 #000;
}

.info-card {
    text-align: left;
    margin-bottom: 24px;
    background-color: #181818;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 2px solid #101010;
    align-items: center;
    font-size: 13px;
}

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

.info-label {
    color: #cfcfcf;
    text-shadow: 1px 1px 0 #000;
    font-weight: bold;
}

.info-value {
    font-weight: bold;
    text-shadow: 1px 1px 0 #000;
}

.info-value.highlight {
    color: #8cd843;
}

.mc-panel-link {
    color: #4be0e0;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.mc-panel-link:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

.explanation-row {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 14px;
}

.instruction-text {
    color: #ababab !important;
    text-shadow: 1px 1px 0 #000;
    font-size: 11px !important;
    line-height: 1.5;
    font-weight: normal !important;
}

/* 15. Rodapé (Footer) com Mojang & Microsoft */
.mc-footer {
    background-color: #0c0c0c;
    border-top: 8px solid #121212;
    padding: 60px 0;
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-logo {
    height: 24px;
    opacity: 0.65;
    transition: opacity 0.2s;
    display: block;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-divider {
    height: 2px;
    background-color: #181818;
    margin: 30px 0;
}

.footer-legal {
    color: #6c6c6c;
    font-size: 13px;
    margin-bottom: 8px;
}

.footer-disclaimer {
    color: #4c4c4c;
    font-size: 11px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

/* 16. Responsividade */
@media (max-width: 768px) {
    .mc-header-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .mc-nav {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .nav-btn {
        width: 100%;
    }

    .mc-hero-title {
        font-size: 44px;
    }
    
    .mc-hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .server-inputs-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}
