@import url('https://fonts.googleapis.com/css2?family=Uncial+Antiqua&family=Cinzel:wght@400;600;700&family=Rajdhani:wght@400;500;600;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    --color-primary: #ffd782;
    --color-secondary: #e1ce87;
    --color-background: #f5f7fa;
    --color-dark: #1e1e1e;
    --color-light: #ffffff;
    --color-accent: #ff6b6b;
    --accent-bg-color: rgb(149 111 0 / 90%);
    --color-gray: gray;
    --bgc-color: rgb(48 44 76 / 90%);
    --bg-form-head: rgb(209 163 0 / 40%);
    --bg-form-table: rgb(48 46 37 / 90%);
    --bg-dark: #20232A;
    --font-accent-regular: TrajanSansPro-Regular;
    --font-accent-bold: TrajanSansPro-Semibold;
    --font-regular: Montserrat-Regular;
    --font-bold: Montserrat-SemiBold;
    --sidebar-width: 250px;
    --container-padding: 30px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body { margin: 0; height: 100%; }

body {
    font-family: 'Rajdhani', Arial, sans-serif;
    margin: 0;
    background: #0a080f;
    color: #d4c4a0;
    font-size: 16px;
}

#loading-bar {
    position: fixed;
    top: 0; left: 0;
    height: 4px;
    background: linear-gradient(90deg, #e1ce87, #ffd782, #e1ce87);
    background-size: 200% 100%;
    animation: gradientMove 2s linear infinite;
    z-index: 9999;
    width: 0%;
    transition: width 0.3s ease, opacity 0.5s ease;
}
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ===== TOPBAR ===== */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    background: rgba(10, 8, 15, 0.97);
    border-bottom: 1px solid #2a1f0a;
    gap: 16px;
    flex-wrap: wrap;
}

.topbar-logo {
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(180deg, #ffd700 0%, #c8860a 55%, #8b4a00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.logo-gem {
    width: 13px;
    height: 13px;
    background: radial-gradient(circle at 35% 35%, #ff6b6b, #8b0000);
    border-radius: 2px;
    transform: rotate(45deg);
    box-shadow: 0 0 10px #ff000088;
    flex-shrink: 0;
}

/* ===== HEADER ===== */
header {
    background: rgba(10, 8, 15, 0.97);
    border-bottom: 2px solid #2a1f0a;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    color: #e0d6c3;
    font-family: 'Cinzel', serif;
    position: relative;
    z-index: 100;
}

header a {
    color: #ffd700;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}
header a:hover { color: #fff5c4; }

/* ===== NAV ===== */
nav {
    background: rgba(12, 10, 20, 0.98);
    border-bottom: 2px solid #1a1228;
    padding: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li { margin: 0; }

nav ul li a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #c8a878;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    text-decoration: none;
    padding: 13px 22px;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    letter-spacing: 1px;
    white-space: nowrap;
    font-weight: 600;
}

nav ul li a:hover { color: #ffd700; background: transparent; }

nav ul li.active a {
    color: #ffd700;
    border-bottom-color: #ffd700;
    background: transparent;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    background: rgba(8, 6, 12, 0.98);
    border-top: 1px solid #2a1f0a;
    padding: 16px 24px;
    font-size: 13px;
    color: #6a5a30;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    position: relative;
    z-index: 10;
}

body.home-page footer {
    background: rgba(8, 6, 12, 0.98);
    color: #6a5a30;
    padding: 16px 24px;
    text-align: center;
    position: relative;
    z-index: 10;
}

/* ===== DIARY ===== */
#diary {
    padding: 0;
    position: relative;
    max-width: 1920px;
    margin: 0 auto;
}

#diary video {
    position: fixed;
    top: 0; left: 0;
    width: 100vw !important;
    height: 100vh !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    object-fit: cover !important;
    z-index: -1;
    background: #0a060f;
    pointer-events: none;
}

.diary_gradient {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    background:
        radial-gradient(50% 50% at 50% 50%, rgba(19,16,14,0.00) 0%, #0a060f 100%),
        linear-gradient(180deg, rgba(19,16,14,0.00) 63.5%, #0a060f 100%),
        linear-gradient(180deg, #0a060f 0%, rgba(19,16,14,0.00) 62.5%);
}

#diary .diary_gradient {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    background:
        radial-gradient(50% 50% at 50% 50%, rgba(19,16,14,0.00) 0%, #0a060f 100%),
        linear-gradient(180deg, rgba(19,16,14,0.00) 63.5%, #0a060f 100%),
        linear-gradient(180deg, #0a060f 0%, rgba(19,16,14,0.00) 62.5%);
}

.wrap {
    width: 1220px;
    margin-right: auto;
    margin-left: auto;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100vw;
}

.about_block { padding: 60px 0; }

#diary .about_block {
    width: 100%;
    position: relative;
    margin: 0 auto;
    text-align: center;
}

.block_title {
    font-family: 'Cinzel', 'Uncial Antiqua', serif;
    color: #ffd700;
    font-size: 38px;
    line-height: 1.25;
    text-shadow: 0 0 10px rgba(255,215,0,0.5);
    font-weight: 700;
}

#diary .block_title {
    text-align: center;
    margin: 0 auto;
    font-size: 3rem;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255,215,0,0.6), 0 2px 4px rgba(0,0,0,0.8);
    font-weight: 700;
    line-height: 1.25;
}

.title_center_block {
    text-align: center;
    line-height: 1.6;
    font-size: 22px;
    font-family: 'Cinzel', 'Uncial Antiqua', serif;
    color: #fff;
}

#diary .title_center_block {
    flex: 1;
    max-width: 80%;
    margin: 0 auto;
    text-align: center;
}

#diary .grand-opening {
    text-align: center;
    margin: 30px auto;
    color: #ffd700;
    font-size: 2.2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255,215,0,0.7);
    animation: blink 1.5s infinite;
    padding: 15px;
    background: rgba(0,0,0,0.5);
    border: 2px solid #ffd700;
    border-radius: 10px;
    display: inline-block;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

#diary .countdown-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 18px auto 0 auto;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 470px;
}

#diary .countdown-box {
    background: rgba(0,0,0,0.7);
    border: 2px solid #ffd700;
    border-radius: 10px;
    padding: 10px 7px;
    min-width: 58px;
    text-align: center;
    box-shadow: 0 0 8px rgba(255,215,0,0.25);
    flex: 1;
}

#diary .countdown-value {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 7px #fff;
    margin-bottom: 2px;
}

#diary .countdown-label {
    font-size: 0.9rem;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== SERVER STATUS ===== */
.server-status { text-align: center; padding: 15px; }
.online { color: #00ff00; }
.offline { color: #ff3333; }

/* ===== MUSIC PLAYER ===== */
#music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#music-toggle {
    background: rgba(0,0,0,0.7);
    border: 2px solid #ffd700;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}
#music-toggle:hover { background: rgba(0,0,0,0.9); transform: scale(1.1); }
#music-icon { transition: all 0.3s ease; }
#music-icon.paused { opacity: 0.6; }

/* ===== HOME SIDEBAR CARD TITLE (usado no download tb) ===== */
.home-sidebar-card-title {
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 12px;
    letter-spacing: 2px;
    color: #ffd700 !important;
    margin-bottom: 14px;
    text-transform: uppercase;
    border-left: 3px solid #c8860a;
    padding-left: 10px;
}

/* ===== MISC ===== */
.pulsar-img {
    display: block;
    margin: 10px auto;
    max-width: 300px;
    transition: transform 0.3s ease-in-out;
    animation: pulseGlow 3s infinite ease-in-out;
}
@keyframes pulseGlow {
    0%   { transform: scale(1);    filter: drop-shadow(0 0 8px rgba(255,255,255,0.5)); }
    50%  { transform: scale(1.05); filter: drop-shadow(0 0 18px rgba(255,215,0,0.3)); }
    100% { transform: scale(1);    filter: drop-shadow(0 0 8px rgba(255,255,255,0.5)); }
}
.pulsar-img:hover { transform: scale(1.08); filter: drop-shadow(0 0 20px rgba(255,215,0,1)); }

#other { padding: 30px 0; }
.subtitle { color: var(--color-primary); font-size: 26px; }

/* ===== RESPONSIVO ===== */
@media (max-width: 900px) {
    #diary video {
        width: 100vw !important; height: 100vh !important;
        min-width: 100vw !important; min-height: 100vh !important;
        max-width: 100vw !important; max-height: 100vh !important;
        left: 0 !important; top: 0 !important;
    }
    #diary .diary_gradient { min-height: 100vh; height: auto; padding-bottom: 0; }
}

@media (max-width: 768px) {
    #music-player { bottom: 15px; right: 15px; }
    #music-toggle { width: 35px; height: 35px; }
    nav { flex-direction: column; }
    nav ul { flex-wrap: wrap; justify-content: center; }
    nav ul li a { padding: 10px 14px; font-size: 13px; }
    #diary .block_title { font-size: 2rem; }
    #diary .grand-opening { font-size: 1.2rem; padding: 10px; }
    #diary .countdown-container { gap: 3px; max-width: 98vw; }
    #diary .countdown-box { min-width: 19vw; padding: 7px 2vw; }
    #diary .countdown-value { font-size: 1.2rem; }
}

@media (max-width: 700px) {
    .topbar { padding: 10px 16px; }
    .topbar-logo { font-size: 18px; }
}

@media (max-width: 480px) {
    #diary .block_title { font-size: 1.5rem; }
    #diary .countdown-container { gap: 2px; max-width: 98vw; }
    #diary .countdown-box { min-width: 18vw; padding: 6px 1vw; }
    #diary .countdown-value { font-size: 1rem; }
}