/* === CONFIGURAÇÕES GERAIS E TEMA === */
:root {
    --cor-principal: #ff0000;
    --cor-laranja: #ff7300;
    --cor-fundo: #000;
    --cor-texto: #fff;
    --cor-neutra: #222;
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    color: var(--cor-texto);
    overflow-x: hidden;
    background: linear-gradient(-45deg, #000000, #1a0000, #000000, #2b0000);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

/* === CABEÇALHO ANIMADO === */
.main-header {
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn 1s ease-in-out;
}

.site-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    color: var(--cor-principal);
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 0 0 5px var(--cor-principal), 0 0 15px rgba(255, 0, 0, 0.5);
    animation: pulseGlow 2s infinite alternate;
}

.site-description {
    font-size: 1rem;
    color: #ccc;
    max-width: 600px;
    margin: 10px auto 0 auto;
    line-height: 1.5;
}

/* === SPINNER DE CARREGAMENTO ANIMADO === */
.spinner-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-left-color: var(--cor-principal);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}


/* === ESTILOS DA INDEX (CATEGORIAS E STORIES) === */
#categories-wrapper {
    padding: 15px 0;
}

.category-section {
    margin-bottom: 20px;
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
}

.category-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    font-weight: normal;
    color: var(--cor-principal);
    margin-left: 15px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.status-header {
    padding: 0 15px; 
}

.status-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    /* --- AQUI ESTÁ A CORREÇÃO --- */
    justify-content: center; /* Alinha os itens ao centro */
}

.profile-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    gap: 5px;
    transition: transform 0.2s ease-in-out;
}

.profile-circle:hover {
    transform: translateY(-5px);
}

.profile-circle img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.2s ease-in-out;
    padding: 3px;
    border: 3px solid transparent;
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    background-image: linear-gradient(var(--cor-fundo), var(--cor-fundo)), linear-gradient(45deg, var(--cor-laranja), var(--cor-principal), var(--cor-laranja));
    background-size: 100% 100%, 200% 200%;
    animation: borderAnimation 3s ease infinite;
}

.profile-circle:hover img {
    transform: scale(1.1);
}

.profile-circle span {
    font-size: 12px;
}

/* === TELA DE VISUALIZAÇÃO DE STATUS (OVERLAY) === */
.viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.viewer-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-bars, .profile-info, .close-viewer, #viewer-image {
    animation: fadeIn 0.3s ease-in-out;
}

.progress-bars { display: flex; gap: 4px; width: 100%; }
.progress-bar-background { flex-grow: 1; height: 3px; background-color: rgba(255, 255, 255, 0.3); border-radius: 3px; }
.progress-bar-fill { height: 100%; background-color: var(--cor-principal); border-radius: 3px; width: 0%; }
.profile-info { margin-top: 10px; font-size: 14px; }
.profile-info a {
    color: var(--cor-texto);
    text-decoration: underline; /* Adiciona sublinhado para deixar claro que é um link */
    text-decoration-color: rgba(255, 255, 255, 0.5); /* Deixa o sublinhado um pouco mais sutil */
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    transition: color 0.2s, text-decoration-color 0.2s;
}
#viewer-image { max-width: 100%; max-height: 90vh; width: auto; height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.viewer-btn{position:absolute;z-index:1003;background:rgba(30,30,30,.5);border:1px solid rgba(255,255,255,.2);color:#fff;cursor:pointer;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:background-color .2s ease,transform .2s ease}.viewer-btn:hover{background:rgba(0,0,0,.8);transform:scale(1.1)}.viewer-close-btn{top:15px;right:15px;width:40px;height:40px}.viewer-nav-btn{top:50%;transform:translateY(-50%);width:44px;height:44px}.viewer-nav-btn.prev{left:15px}.viewer-nav-btn.next{right:15px}
.profile-info a:hover {
    color: var(--cor-principal); /* Fica vermelho ao passar o mouse */
    text-decoration-color: var(--cor-principal); /* O sublinhado também fica vermelho */
}


/* === ESTILOS DO PAINEL DE ADMIN (sem alterações) === */
.admin-container { max-width: 600px; margin: 40px auto; padding: 20px; }
.admin-container h1 { color: var(--cor-principal); text-align: center; margin-bottom: 40px; }
.admin-section { background-color: #111; border: 1px solid #333; border-radius: 8px; padding: 20px; margin-bottom: 30px; }
.admin-section h2 { margin-top: 0; border-bottom: 2px solid var(--cor-principal); padding-bottom: 10px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; }
.form-group input, .form-group select { width: 100%; padding: 10px; background-color: var(--cor-neutra); border: 1px solid #444; border-radius: 4px; color: var(--cor-texto); box-sizing: border-box; }
.form-group input[type="file"] { padding: 5px; }
button[type="submit"] { width: 100%; padding: 12px; background-color: var(--cor-principal); border: none; border-radius: 4px; color: var(--cor-texto); font-size: 16px; font-weight: bold; cursor: pointer; transition: background-color 0.2s; }
button[type="submit"]:hover { background-color: #cc0000; }
.management-block { margin-top: 30px; border-top: 1px solid #444; padding-top: 20px; }
.management-list { list-style: none; padding: 0; }
.management-list li { display: flex; justify-content: space-between; align-items: center; background-color: #222; padding: 10px 15px; border-radius: 4px; margin-bottom: 8px; }
.delete-btn { background-color: #8B0000; color: white; border: none; padding: 8px 12px; border-radius: 4px; cursor: pointer; transition: background-color 0.2s; }
.delete-btn:hover { background-color: #B22222; }
.small-btn { padding: 9px 12px; margin-left: 10px; }
.profile-manage-control { display: flex; align-items: center; }
.profile-manage-control select { flex-grow: 1; }
.status-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 15px; margin-top: 20px; }
.status-item { position: relative; }
.status-item img { width: 100%; height: 100px; object-fit: cover; border-radius: 4px; border: 2px solid #333; }
.status-item .delete-btn { position: absolute; top: 5px; right: 5px; padding: 4px 8px; font-size: 12px; }


/* === KEYFRAMES PARA AS ANIMAÇÕES === */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulseGlow { from { text-shadow: 0 0 5px var(--cor-principal), 0 0 15px rgba(255, 0, 0, 0.5); } to { text-shadow: 0 0 10px var(--cor-principal), 0 0 25px rgba(255, 0, 0, 0.8); } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes borderAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* === ESTILOS DO RODAPÉ === */
.main-footer {
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid var(--cor-neutra);
    margin-top: 40px;
    font-size: 14px;
    color: #888;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--cor-principal);
}

.footer-links span {
    color: #555;
}
/* === ESTILOS PARA OS BOTÕES DO VIEWER === */
.viewer-btn {
    position: absolute;
    z-index: 1003;
    background: rgba(30, 30, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.viewer-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.viewer-close-btn {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
}

.viewer-nav-btn {
    top: 50%;
    transform: translateY(- 60%);
    width: 44px;
    height: 44px;
}

.viewer-nav-btn.prev {
    left: 15px;
}

.viewer-nav-btn.next {
    right: 15px;
}

/* Estilos para os botões de navegação visíveis */
.nav-btn {
  /* Tira o botão do fluxo normal da página */
  position: absolute;
  
  /* Centraliza verticalmente */
  top: 50%;
  transform: translateY(-50%);
  
  /* Estilo visual */
  background: rgba(30, 30, 30, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1003; /* Garante que fiquem na frente da imagem */
  
  /* Efeito suave ao passar o mouse */
  transition: background-color 0.2s ease;
}

.nav-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Posiciona o botão de voltar na esquerda */
.prev-btn {
  left: 15px;
}

/* Posiciona o botão de avançar na direita */
.next-btn {
  right: 15px;
}


/* === ESTILOS DO AVISO DE IDADE === */
#age-gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999; /* Fica na frente de tudo */
    display: none; /* Começa escondido */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

#age-gate-modal {
    background-color: var(--cor-neutra);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    border: 1px solid #444;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

#age-gate-modal h2 {
    font-family: 'Bebas Neue', sans-serif;
    color: var(--cor-principal);
    font-size: 2.2rem;
    margin-top: 0;
    margin-bottom: 15px;
}

#age-gate-modal p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 30px;
}

.age-gate-buttons {
    display: flex;
    justify-content: space-around;
    gap: 15px;
}

.age-gate-btn {
    flex-grow: 1;
    border: none;
    padding: 15px 20px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.age-gate-btn:hover {
    transform: scale(1.05);
}

.age-gate-btn.no {
    background-color: #555;
    color: var(--cor-texto);
}

.age-gate-btn.yes {
    background-color: var(--cor-principal);
    color: var(--cor-texto);
}