/* ==========================================================================
   ETHERNAL RO — v2 (modernização visual)
   Mantém as mesmas classes que main/index.php, main/navbar.php, footer.php
   e account/create_.php, account/view.php já usam - só o visual mudou.
   ========================================================================== */

:root {
    --primary-color: #19a6e0;      /* mantido - é a cor de marca do servidor */
    --primary-light: #6cd4ff;
    --secondary-color: #f5a623;    /* âmbar refinado (era #ff9900) */
    --ink-950: #060a13;
    --ink-900: #0c1220;
    --ink-800: #131b2e;
    --ink-700: #1b2740;
    --panel-border: rgba(255, 255, 255, 0.08);
    --light-text: #eef3fb;
    --muted-text: #9fb0c9;

    --font-display: 'Sora', 'Raleway', sans-serif;
    --font-body: 'Inter', 'Open Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

body {
    background-image: url('../img/prontera.jpg');
    background-color: var(--ink-950);
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    color: var(--light-text);
    font-family: var(--font-body);
    padding-top: 50px !important;
}

.sections-container:before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(6,10,19,.55) 0%, rgba(6,10,19,.85) 100%);
    z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -0.01em;
}

a { color: var(--primary-color); transition: color .2s ease; }
a:hover { color: var(--primary-light); text-decoration: none; }

.text-primary { color: var(--primary-color) !important; }
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-family: var(--font-display);
    font-weight: 600;
    border-radius: 6px;
    transition: transform .15s ease, background-color .15s ease;
}
.btn-primary:hover {
    background-color: #1489ba;
    border-color: #1489ba;
    transform: translateY(-1px);
}

.card, .splash-box, .feature-card, .job-info-panel, .job-select-card, .form-box {
    position: relative;
}
.card::before, .splash-box::before, .feature-card::before, .job-info-panel::before {
    content: "";
    position: absolute;
    top: 0; left: 16px; right: 16px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent 70%);
    opacity: .8;
}

/* =================================== */
/* 1. NAVEGAÇÃO SUPERIOR (NAVBAR)      */
/* =================================== */
.navbar {
    transition: background-color .25s ease, backdrop-filter .25s ease;
    padding-top: 14px;
    padding-bottom: 14px;
    z-index: 1060;
    background-color: rgba(9, 13, 22, 0.55) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--panel-border);
}

#main-nav { flex-grow: 1; }
#main-nav .navbar-nav {
    margin-left: auto !important;
    margin-right: auto !important;
}

#main-nav .nav-link {
    color: #f0f4fa !important;
    font-family: var(--font-display);
    font-size: .92rem;
    padding: 10px 15px;
    font-weight: 600;
    text-shadow: none;
    transition: color .2s ease;
    display: flex;
    align-items: center;
}
#main-nav .nav-link:hover,
#main-nav .nav-item.actives .nav-link {
    color: var(--primary-light) !important;
}

.menu-icon-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    margin-right: 6px;
    opacity: .9;
}

#main-nav .navbar-nav li { position: relative; }

#nav-sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    padding: 6px 0;
    margin: 0;
    min-width: 210px;
    background-color: var(--ink-900);
    border: 1px solid var(--panel-border);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 12px 24px rgba(0,0,0,.4);
    z-index: 1050;
    display: none;
}
#main-nav .navbar-nav li:hover > #nav-sub-menu { display: block; }

#nav-sub-menu li a {
    padding: 9px 16px;
    color: #dce6f5;
    display: block;
    white-space: nowrap;
    font-size: .88rem;
}
#nav-sub-menu li a:hover {
    background-color: rgba(25, 166, 224, .15);
    color: #ffffff;
}
#nav-sub-menu li a i.fas { color: var(--muted-text); }

.az-nav-cta {
    background-color: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
    color: #ffffff !important;
    font-family: var(--font-display);
    font-weight: 600;
    border-radius: 6px;
}
.az-nav-cta:hover { background-color: #1489ba !important; }
.az-nav-cta-ghost {
    background: transparent !important;
    border: 1px solid var(--panel-border) !important;
    color: #eef3fb !important;
    margin-bottom: 6px;
    border-radius: 6px;
}
.az-nav-cta-ghost:hover { border-color: var(--primary-color) !important; color: var(--primary-light) !important; }
.az-nav-welcome p { color: #eef3fb; margin-bottom: 12px; }
.az-nav-register { padding-top: 12px; color: var(--muted-text); text-align: center; font-size: .85rem; }
.az-nav-register-link { color: var(--primary-color); font-weight: 600; }

/* =================================== */
/* 2. SEÇÃO HOME                       */
/* =================================== */
.section-home {
    min-height: 100vh;
    padding-top: 80px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}
.section-home > .container-fluid.h-100,
.section-home > .container-fluid > .row {
    height: auto !important;
    min-height: calc(100vh - 80px);
    align-items: center;
}

.splash-box {
    background-color: rgba(12, 18, 32, 0.72);
    backdrop-filter: blur(6px);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    padding: 30px !important;
}

.online-display-label {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--light-text);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--panel-border);
}
.online-dot { color: #35d07f; }

/* =================================== */
/* 3. FEATURES                         */
/* =================================== */
.section-features { background: transparent !important; }

.feature-card {
    background-color: rgba(12, 18, 32, 0.65) !important;
    border: 1px solid var(--panel-border);
    box-shadow: 0 10px 24px rgba(0,0,0,.25);
    transition: transform .2s ease, border-color .2s ease;
    border-radius: 10px;
    padding: 1.25rem !important;
}
.feature-card:hover {
    background-color: rgba(19, 27, 46, 0.8) !important;
    border-color: rgba(25, 166, 224, .5);
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0,0,0,.35);
}
.feature-icon-box { margin-bottom: 18px; text-align: center; }
.feature-icon-box img { max-width: 96px; height: auto; }

/* =================================== */
/* 4. JOBS                             */
/* =================================== */
.job-card-grid { padding-right: 15px; }

.job-select-card {
    background-color: rgba(255,255,255,.04);
    border: 1px solid transparent;
    transition: all .18s ease;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
}
.job-select-card:hover {
    background-color: rgba(25,166,224,.12);
    transform: translateY(-2px);
}
.job-select-card.active-job-card {
    border-color: var(--primary-color);
    background-color: rgba(25,166,224,.18);
}
.job-select-card.active-job-card .job-card-name { color: var(--light-text); }

.job-info-panel {
    background-color: rgba(12, 18, 32, 0.72) !important;
    border: 1px solid var(--panel-border);
    border-radius: 10px;
}
.job-main-image-preview { max-height: 340px; object-fit: contain; }

/* =================================== */
/* 5. GALERIA                          */
/* =================================== */
.section-gallery { background-color: var(--ink-900) !important; }

.gallery-horizontal-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.gallery-horizontal-scroll::-webkit-scrollbar { height: 6px; }
.gallery-horizontal-scroll::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.15);
    border-radius: 4px;
}

.gallery-mini-item {
    flex: 0 0 auto;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--panel-border);
    transition: all .18s ease;
}
.gallery-mini-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
}
.gallery-mini-item img { width: 100%; height: 100%; object-fit: cover; }

/* =================================== */
/* 6. RESPONSIVO                       */
/* =================================== */
@media (max-width: 991.98px) {
    .section-home { padding-top: 100px; }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
    #random-render-img { max-height: 320px; }
    .server-description-box { text-align: center; }
    .server-description-box .d-flex { justify-content: center; flex-direction: column; }
    .col-lg-8 { order: 2 !important; }
    #home-login { order: 1 !important; margin-bottom: 24px; margin-left: 0 !important; }
    .home-render-large #random-render-img { max-width: 100%; margin-left: 0; }
}

/* =================================== */
/* 7. RENDER E LOGIN                   */
/* =================================== */
.home-render-large { overflow: visible; max-width: 100%; margin: 0 auto; text-align: center; }
.home-render-large #random-render-img {
    max-width: 105%;
    max-height: 580px;
    height: auto;
    display: block;
    margin: 0 auto;
    margin-left: -2.5%;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,.45));
}
#home-login { margin-left: -250px; }

.splash-box.login-with-bg {
    max-width: 320px;
    margin-left: auto;
    margin-right: 0;
    background-image: url('includes/img/login-background.jpg');
    background-size: cover;
    background-position: center center;
    position: relative;
    overflow: hidden;
    background-color: transparent !important;
}
.splash-box.login-with-bg .card-body { position: relative; z-index: 2; }
.splash-box.login-with-bg:before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(6,10,19,.55), rgba(6,10,19,.9));
    z-index: 1;
    border-radius: 10px;
}

body:not(.homepage) .sections-container { padding-top: 100px; }

/* =================================== */
/* 8. FORMULÁRIOS (registro / conta)   */
/* =================================== */
.form-box label, .form-box p, .form-box input { color: #2a3344; }

.form-box {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0,0,0,.4);
    border: 1px solid #e7ebf2;
}

.form-header {
    text-align: center;
    font-family: var(--font-display);
    color: var(--primary-color) !important;
    font-size: 1.9em;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.info-text, .terms-info { color: #566178; margin-bottom: 20px; text-align: center; }
.link-secondary { color: var(--primary-color); text-decoration: none; font-weight: 600; }
.link-secondary:hover { color: var(--secondary-color); text-decoration: underline; }

.error-message {
    font-weight: 600;
    color: #b3261e;
    background-color: #fbe9e7;
    border: 1px solid #b3261e;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d7dee8;
    border-radius: 6px;
    background-color: #ffffff;
    color: #2a3344;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}
.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(25,166,224,.18);
    outline: none;
}

.form-submit-btn { padding: 12px 20px; font-size: 1.05em; font-weight: 700; border-radius: 6px; }

.captcha-image-container img {
    border: 1px solid #d7dee8;
    border-radius: 6px;
    display: block;
    margin-top: 5px;
    margin-bottom: 10px;
    background-color: #f6f8fb;
}
.captcha-input-group { margin-top: -10px; }
.refresh-link { margin-top: 10px; font-size: .88em; }

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
