/* ===============================================
   Revival AO - Estilos Profesionales y Elegantes
   =============================================== */

/* ----------- Variables ----------- */
:root {
    --main-bg: #181A1B;
    --header-bg: #1e1e2f;
    --content-bg: #23272b;
    --accent: #dc3545;
    --accent-gradient: linear-gradient(45deg, #dc3545, #6f111b);
    --accent-gold: #ffc107;
    --accent-gold-dark: #d79b06;
    --accent-blue: #007bff;
    --accent-blue-dark: #0056b3;
    --accent-green: #28a745;
    --accent-green-dark: #218838;
    --neutral-light: #f0f0f0;
    --neutral-dark: #222326;
    --text-muted: #adb5bd;
    --shadow-main: 0 4px 18px 2px rgba(220,53,69,0.08), 0 1.5px 6px #181A1B;
    --radius-main: 0.5rem;
    --radius-sm: 0.3rem;
    --radius-xl: 1.1rem;
    --shadow-hover: 0 8px 32px 8px rgba(255,193,7,0.08), 0 2px 8px #6f111b;
}

/* ----------- General ----------- */
body {
    background: var(--main-bg);
    color: var(--neutral-light);
    font-family: 'Roboto', Arial, sans-serif;
    min-height: 100vh;
}
a { transition: color 0.2s, text-shadow 0.2s; }

/* ----------- Header ----------- */
header {
    background: url('images/banner.jpg') no-repeat center center, var(--header-bg);
    background-size: cover;
    min-height: 200px;
    text-shadow: 2px 2px 7px #b30000, 0 0 2px #dc3545;
    color: #fff;
    box-shadow: 0 8px 24px 2px #181A1B, 0 2px 10px #23272b;
}
header .container h1 img {
    margin-bottom: 0.5rem;
}
.text-shadow-red {
    text-shadow: 2px 2px 7px #6f111b, 0 0 2px #dc3545;
}

/* ----------- Navbar ----------- */
.navbar-nav .nav-link {
    padding: 0.55rem 1.1rem;
    color: #bebebe;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: background 0.3s, color 0.25s;
}
.navbar-nav .nav-link:hover {
    background-color: #33344a;
    color: #fff;
}
.navbar-nav .nav-link.active {
    background: var(--accent-gradient);
    color: #fff !important;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 12px rgba(220,53,69,0.08);
}
.navbar-nav .nav-link.active:hover {
    background: linear-gradient(45deg, #ff6b6b, #dc3545);
}

/* Dropdown del Usuario */
.navbar-nav .dropdown-menu {
    background-color: #2c2c3e;
    border-radius: var(--radius-sm);
    border: none;
    margin-top: 0.1rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.navbar-nav .dropdown-item {
    color: #ccc;
    transition: background 0.3s, color 0.3s;
    border-radius: var(--radius-sm);
}
.navbar-nav .dropdown-item:hover {
    background-color: #444;
    color: #fff;
}

/* ----------- Botones ----------- */
.btn-danger, .btn-danger:focus {
    background: var(--accent-gradient);
    border: none;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.13);
    transition: background 0.2s, box-shadow 0.2s;
}
.btn-danger:hover {
    background: linear-gradient(to right, #dc3545, #ff6b6b);
}
.btn-primary, .btn-primary:focus {
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-blue-dark));
    border: none;
    color: #fff;
    font-weight: bold;
}
.btn-primary:hover {
    background: linear-gradient(45deg, #339af0, #0056b3);
}
.btn-success, .btn-success:focus {
    background: linear-gradient(45deg, var(--accent-green), var(--accent-green-dark));
    border: none;
    color: #fff;
}
.btn-success:hover {
    background: linear-gradient(45deg, #4cff7f, #218838);
}
.btn-warning, .btn-warning:focus {
    background: linear-gradient(45deg, var(--accent-gold), var(--accent-gold-dark));
    border: none;
    color: #222;
}
.btn-warning:hover {
    background: linear-gradient(45deg, #ffe57f, #ffa000);
    color: #222;
}
.btn-outline-light.btn-sm.active,
.btn-outline-light.btn-sm:active {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
}
.btn-outline-light.btn-sm {
    border: 1.5px solid #dc3545;
    color: #dc3545;
    margin-bottom: 4px;
    margin-right: 2px;
}
.btn-outline-light.btn-sm:hover {
    background: #dc3545;
    color: #fff;
    border: 1.5px solid #dc3545;
}
.btn-sm {
    font-size: 0.8rem;
    padding: 0.3rem 0.7rem;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
}
.btn-sm:hover {
    transform: translateY(-2px) scale(1.03);
    background-color: #0056b3 !important;
    box-shadow: 0 2px 10px rgba(255,193,7,0.12);
}

/* ----------- Servidores ----------- */
.server-status {
    border-radius: var(--radius-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--neutral-dark);
    box-shadow: 0 2px 10px rgba(220,53,69,0.09);
    transition: transform 0.3s, box-shadow 0.3s;
}
.server-status:hover {
    transform: translateY(-5px) scale(1.018);
    box-shadow: 0 4px 20px rgba(255,0,0,0.21);
}
.server-icon-small {
    width: 24px;
    height: 24px;
}
.server-status h5 {
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
}

/* ----------- Estado de castillos ----------- */
.castle-block {
    border-radius: var(--radius-main);
    display: flex;
    align-items: center;
    background: var(--content-bg);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 1.1rem;
    box-shadow: 0 1px 8px rgba(255,193,7,0.03);
}
.castle-block:hover {
    transform: translateY(-5px) scale(1.018);
    box-shadow: 0 4px 20px rgba(255,193,7,0.16);
}
.castle-icon {
    width: 48px;
    height: 48px;
    margin-right: 15px;
    flex-shrink: 0;
}

/* ----------- Footer ----------- */
footer {
    background: #181A1B;
    border-top: 1.5px solid #23272b;
}
footer .social-icon {
    width: 32px;
    height: 32px;
    margin: 0 7px;
    opacity: 0.84;
    transition: transform 0.25s, opacity 0.2s;
}
footer .social-icon:hover {
    transform: scale(1.18) rotate(-3deg);
    opacity: 1;
}
footer p {
    font-size: 0.95rem;
    color: #bebebe;
}
footer a.text-decoration-none {
    color: #f9d423;
    transition: color 0.3s;
}
footer a.text-decoration-none:hover {
    color: #ff4e50;
    text-decoration: underline;
}

/* ----------- Noticias & Listado ----------- */
.titulo-noticia {
    background: linear-gradient(45deg, #ff4e50, #f9d423);
    color: #fff !important;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    border-radius: 7px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.32);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.1rem;
    padding: 0.6rem;
    display: inline-block;
    transition: transform 0.3s, box-shadow 0.3s;
}
.titulo-noticia a {
    color: #fff;
    text-decoration: none;
}
.titulo-noticia a:hover {
    text-decoration: underline;
}
.titulo-noticia:hover {
    transform: scale(1.045);
    box-shadow: 0 6px 24px rgba(255, 78, 80, 0.36);
}
.contenido-noticia {
    margin-bottom: 1rem;
    font-size: 1.09rem;
    line-height: 1.7;
    color: #f8f0f3;
    background: linear-gradient(90deg,rgba(220,53,69,0.09) 0%,rgba(255,193,7,0.07) 100%);
    border-left: 3px solid #ffc107;
    padding: 1.1rem;
    border-radius: 0.2rem;
    box-shadow: 0 2px 12px rgba(255,193,7,0.04);
}
.noticia-meta {
    background: linear-gradient(90deg, #343a40 70%, #dc3545 110%);
    padding: 0.7rem 0.8rem 0.6rem 0.8rem;
    border-radius: 0 0 0.3rem 0.3rem;
    margin-top: 1.2rem;
    margin-bottom: -0.6rem;
    box-shadow: 0 1px 8px rgba(220,53,69,0.06);
    display: inline-block;
    color: #ffc107;
    font-size: 0.97em;
}

/* Listado de noticias en noticias.php */
.list-group-item {
    background-color: #2c2c3e;
    border: none;
    border-radius: 0.3rem !important;
    margin-bottom: 6px;
    transition: background 0.3s, box-shadow 0.2s;
}
.list-group-item:hover {
    background: #44446a;
    box-shadow: 0 2px 7px #dc354533;
}
.titulo-lista {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    transition: color 0.3s;
}
.titulo-lista:hover {
    color: #f9d423;
    text-decoration: underline;
}
.fecha-publicacion {
    font-size: 0.9rem;
    color: #ffc107;
    background: rgba(255, 255, 255, 0.12);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.23);
    margin-left: 8px;
}

/* ----------- Changelog ----------- */
.list-group-item.bg-secondary {
    background: linear-gradient(120deg, #23272b 90%, #181A1B 100%);
    border-left: 4px solid #dc3545;
    border-radius: 0.4rem;
    box-shadow: 0 2px 12px rgba(220,53,69,0.04);
    margin-bottom: 1rem;
    border: none;
    padding: 1.1rem 1.5rem;
}
.list-group-item.bg-secondary strong {
    color: #ffc107;
}
.list-group-item.bg-secondary .btn-warning {
    margin-left: 10px;
}
.titulo-changelog {
    font-family: 'Playfair Display', serif;
    font-size: 1.17rem;
    color: #ffc107;
    font-weight: 700;
}

/* ----------- Chat ----------- */
.chat-message {
    margin-bottom: 10px;
    padding: 5px 10px;
    border-bottom: 1px solid #333;
}
.chat-message:last-child {
    border-bottom: none;
}
.chat-message-username {
    font-weight: bold;
    margin-right: 5px;
    color: #20c997;
}
.chat-username-premium {
    color: #ffc107 !important;
    text-shadow: 0 0 4px #d79b06, 0 0 1px #fff;
}
.chat-message-time {
    font-size: 0.8em;
    color: #aaa;
    margin-left: 5px;
}
.chat-widget {
    margin-top: 20px;
}
.chat-container {
    height: 300px;
    overflow-y: auto;
    background: #212529;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 10px #23272b;
}
.open-chat-icon {
    width: 32px;
    height: 32px;
    filter: invert(20%) sepia(90%) saturate(500%) hue-rotate(80deg) brightness(100%) contrast(100%);
    transition: transform 0.3s, box-shadow 0.3s;
}
.open-chat-icon:hover {
    transform: scale(1.2) rotate(-4deg);
    box-shadow: 0 0 10px rgba(0,255,0,0.7);
}

/* ----------- Miniaturas Galería ----------- */
.miniatura-container {
    background: #23272b;
    padding: 14px;
    border-radius: 0.5rem;
    box-shadow: 0 1px 8px rgba(255,193,7,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.miniatura img {
    border-radius: 0.4rem;
    box-shadow: 0 2px 14px rgba(255,193,7,0.10);
    transition: transform 0.23s, opacity 0.23s, box-shadow 0.23s;
}
.miniatura:hover img {
    transform: scale(1.048);
    opacity: 0.94;
    box-shadow: 0 6px 24px rgba(255,193,7,0.18);
}
.miniatura-title {
    margin-top: 10px;
    font-weight: bold;
    color: #ffc107;
    letter-spacing: 0.01em;
    font-size: 1.07rem;
    text-align: center;
}

/* ----------- Responsive Fixes ----------- */
@media (max-width: 992px) {
    .castle-icon { width: 36px; height: 36px; }
    header .container h1 img { width: 260px; height: auto; }
    .miniatura-container { padding: 7px; }
}
@media (max-width: 576px) {
    .castle-icon { width: 28px; height: 28px; }
    header .container h1 { font-size: 1.4rem; }
    .miniaturas { margin-top: 25px; }
    .miniatura-container { padding: 2px; }
}