:root { --fundo-preto: #121212; --fundo-cinza: #1e1e1e; --cinza-texto: #b3b3b3; --branco-fosco: #e0e0e0; --vermelho-sangue: #8b1e1e; --vermelho-tint: rgba(139, 30, 30, 0.6); --amarelo-ocre: #cda434; }
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Courier New', Courier, monospace; user-select: none; }
body { background-color: var(--fundo-preto); color: var(--branco-fosco); overflow: hidden; }

/* LOADING & MENU */
#splash-screen { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 9999; background-image: linear-gradient(var(--vermelho-tint), var(--vermelho-tint)), url('luta.jpeg'); background-size: cover; background-position: center; filter: grayscale(100%) blur(10px) contrast(130%); display: flex; justify-content: center; align-items: center; transition: opacity 1s ease-out; }
.splash-content { text-align: center; position: relative; z-index: 10000; }
.splash-text { color: var(--branco-fosco); letter-spacing: 4px; font-size: 2.2rem; text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9); margin-bottom: 20px; }
.loader-bar { width: 200px; height: 4px; background-color: rgba(255, 255, 255, 0.2); margin: 0 auto; position: relative; overflow: hidden; }
.loader-bar::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background-color: var(--vermelho-sangue); animation: loadingBar 2s infinite ease-in-out; }
@keyframes loadingBar { 0% { left: -100%; } 50% { left: 0%; } 100% { left: 100%; } }

#main-content { display: flex; height: 100vh; }
.hidden { display: none !important; }
.sidebar { width: 250px; background-color: var(--fundo-cinza); padding: 20px; display: flex; flex-direction: column; border-right: 2px solid #333; overflow-y: auto; z-index: 50;}
.logo { color: var(--vermelho-sangue); font-size: 26px; text-align: center; margin-bottom: 40px; font-weight: bold; }
.logo-ufc { color: var(--amarelo-ocre); }
.sidebar ul { list-style: none; }
.sidebar li { margin-bottom: 12px; }
.menu-item { text-decoration: none; color: var(--cinza-texto); font-size: 15px; font-weight: bold; display: block; padding: 10px; transition: all 0.3s ease; }
.menu-item:hover { color: var(--fundo-preto); background-color: var(--branco-fosco); transform: translateX(10px); }
.ufc-highlight { color: var(--amarelo-ocre); }
.admin-link { color: var(--vermelho-sangue); margin-top: 20px; border-top: 1px solid #333; }
.submenu { list-style: none; padding-left: 15px; margin-top: 5px; }
.sub-item { text-decoration: none; color: var(--cinza-texto); font-size: 13px; display: block; padding: 8px; transition: all 0.3s; }
.sub-item:hover { color: var(--amarelo-ocre); transform: translateX(5px); }

/* CENTRO E GERAIS */
.news-feed { flex: 1; padding: 30px; overflow-y: auto; background-image: linear-gradient(rgba(18, 18, 18, 0.85), rgba(18, 18, 18, 0.85)), url('fundo.jpeg'); background-size: cover; background-position: center; background-attachment: fixed; transition: background-image 0.5s ease; position: relative;}
.section-title { color: var(--branco-fosco); font-size: 24px; margin-bottom: 25px; border-bottom: 2px solid var(--vermelho-sangue); padding-bottom: 10px; }
.noticia-card { display: flex; background-color: rgba(30,30,30,0.9); border: 1px solid #444; border-left: 4px solid var(--vermelho-sangue); border-radius: 6px; margin-bottom: 20px; overflow: hidden; max-width: 800px;}
.noticia-img { width: 250px; height: 180px; object-fit: cover; }
.noticia-conteudo { padding: 20px; display: flex; flex-direction: column; justify-content: center;}
.noticia-titulo { font-size: 20px; color: var(--amarelo-ocre); margin-bottom: 10px;}
.noticia-texto { color: var(--branco-fosco); font-size: 14px; line-height: 1.5; margin-bottom: 10px; }
.noticia-data { color: #777; font-size: 12px; }

.ranking-unico-container { display: flex; justify-content: center; width: 100%; }
.coluna-ranking { width: 70%; background-color: rgba(18, 18, 18, 0.95); border: 2px solid #333; padding: 20px; border-radius: 8px; box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.7); }
.tres-colunas { display: flex; gap: 15px; width: 100%; }
.coluna-flex { flex: 1; background-color: rgba(18, 18, 18, 0.95); border: 2px solid #333; padding: 20px; border-radius: 8px; box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.7); }
.fed-nome { text-align: center; color: var(--vermelho-sangue); margin-bottom: 15px; letter-spacing: 2px; font-size: 16px;}
.lutador-card { display: flex; align-items: center; background-color: var(--fundo-cinza); margin-bottom: 8px; padding: 12px; border-left: 3px solid #555; font-size: 14px; }
.lutador-card .posicao { font-weight: bold; color: var(--cinza-texto); width: 35px; }
.lutador-card .nome { color: var(--branco-fosco); font-weight: bold; }
.lutador-card .cartel { margin-left: auto; color: #777; font-size: 12px; }
.campeao { border-left: 3px solid var(--amarelo-ocre); background-color: rgba(205, 164, 52, 0.1); }
.campeao .posicao, .campeao .nome { color: var(--amarelo-ocre); }

.matchup-card { background-color: rgba(30, 30, 30, 0.9); border: 1px solid #444; border-left: 5px solid var(--vermelho-sangue); border-radius: 6px; padding: 20px; margin-bottom: 20px; text-align: center; max-width: 800px; margin-left:auto; margin-right:auto; }
.evento-info { color: var(--amarelo-ocre); font-size: 14px; margin-bottom: 15px; letter-spacing: 1px; }
.fighters-row { display: flex; justify-content: space-around; align-items: center; }
.fighter-name { font-size: 18px; font-weight: bold; color: var(--branco-fosco); display: flex; flex-direction: column; }
.vs { font-size: 24px; color: var(--vermelho-sangue); font-weight: bold; font-style: italic; }
.loja-painel-publico { background-color: rgba(18, 18, 18, 0.95); border: 2px solid #444; padding: 25px; border-radius: 8px; max-width: 800px; margin: 0 auto;}
.loja-texto-display { color: #4CAF50; font-size: 16px; line-height: 1.6; white-space: pre-wrap; }

/* ======== CSS MINIGAMES PVP ======== */
.minigame-container { max-width: 700px; padding: 20px; border-top: 5px solid #00e5ff; }
.retro-tv { background: #000; border: 10px solid #222; border-radius: 15px; padding: 20px; color: #0f0; text-align: center; font-size: 20px; text-shadow: 0 0 5px #0f0; margin-bottom: 20px; box-shadow: inset 0 0 20px rgba(0,255,0,0.2);}
.player-panel { width: 40%; text-align: center; }
.hp-bar { display: flex; justify-content: center; gap: 5px; margin: 10px 0; }
.hp-block { width: 30px; height: 15px; background: #f44336; border: 1px solid #fff; }
.hp-empty { background: #333; border: 1px solid #555; }
.stam-bar-bg { width: 100%; height: 20px; background: #333; border: 2px solid #555; border-radius: 10px; overflow: hidden; }
.stam-bar-fill { height: 100%; background: #2196F3; transition: width 0.3s; }

.j3-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; width: 100%; max-width: 400px; margin: 0 auto; background: #222; padding: 10px; border-radius: 8px;}
.j3-cell { aspect-ratio: 1; background: #444; cursor: pointer; border-radius: 3px; display:flex; justify-content:center; align-items:center; font-size:20px; transition: 0.2s;}
.j3-cell:hover { opacity: 0.8; }
.bg-red { background: #f44336 !important; }
.bg-blue { background: #2196F3 !important; }

/* ======== ADMIN ======== */
.admin-container { background-color: rgba(30, 30, 30, 0.9); padding: 30px; border-radius: 8px; border-left: 5px solid var(--vermelho-sangue); max-width: 800px; margin: 0 auto;}
.admin-section { margin-bottom: 20px; }
.admin-divisor { border: 0; height: 1px; background-color: #444; margin: 40px 0; }
.admin-subtitle { color: var(--amarelo-ocre); margin-bottom: 20px; font-size: 18px; }
.form-group { margin-bottom: 15px; }
.form-group-row { display: flex; gap: 15px; margin-bottom: 15px; align-items: center;}
.half-width { flex: 1; }
.admin-input { width: 100%; padding: 12px; background-color: var(--fundo-preto); border: 1px solid #555; color: var(--branco-fosco); border-radius: 4px; font-size: 15px; user-select: auto;}
.textarea-pequena { height: 80px; resize: vertical; }
.textarea-loja { height: 180px; resize: vertical; }
.btn-admin { background-color: var(--vermelho-sangue); color: var(--branco-fosco); border: none; padding: 12px; font-size: 15px; font-weight: bold; cursor: pointer; border-radius: 4px; transition: 0.3s; }
.admin-lista-gerenciamento { margin-top: 15px; max-height: 200px; overflow-y: auto; border: 1px solid #333; padding: 5px; background: #111;}
.admin-list-item { display: flex; justify-content: space-between; background-color: #1a1a1a; padding: 10px; border-bottom: 1px solid #333; font-size: 13px;}
.btn-remover { background-color: #ff3333; color: white; border: none; padding: 5px 10px; cursor: pointer; border-radius: 3px; font-weight: bold; font-size: 12px;}

/* ======== RESPONSIVIDADE E MENU MOBILE ======== */
#btn-mobile-menu { display: none; background-color: var(--vermelho-sangue); color: var(--branco-fosco); border: none; padding: 12px; font-size: 16px; font-weight: bold; border-radius: 5px; cursor: pointer; margin-bottom: 20px; width: 100%; box-shadow: 0 4px 6px rgba(0,0,0,0.5); text-align: center; }

@media (max-width: 768px) {
    #btn-mobile-menu { display: block; }
    .sidebar { position: fixed; left: -300px; height: 100vh; z-index: 10000; transition: left 0.3s ease; box-shadow: 5px 0 15px rgba(0,0,0,0.9); }
    .sidebar.aberto { left: 0; }
    .news-feed { padding: 15px; }
    .tres-colunas { flex-direction: column; } 
    .coluna-ranking { width: 100%; }
    .noticia-card { flex-direction: column; }
    .noticia-img { width: 100%; }
    .flex-celular { flex-direction: column; }
}