/* ============================================
   StackCore Premium WoW Design 2026
   Dark theme with green accents, glassmorphism,
   FontAwesome icons, polished UI
   ============================================ */

/* === PAGE TITLES (article .top / h1.top) === */
#content_ajax article .top,
article > h1.top {
    font-family: 'Aparajita', Georgia, serif;
    font-variant: small-caps;
    font-size: 22px;
    letter-spacing: 1px;
    color: #81bd24;
    text-shadow: 0 0 12px rgba(129,189,36,0.3), 0 2px 4px rgba(0,0,0,0.8);
    padding: 12px 20px 12px 18px;
    border-left: 3px solid #81bd24;
    background: linear-gradient(90deg, rgba(129,189,36,0.08), transparent 60%);
    margin: 0 0 2px 0;
}

/* === CONTENT BODY (article .body) === */
#content_ajax article .body {
    background: rgba(16,16,14,0.7);
    padding: 18px 20px;
    border: 1px solid rgba(42,42,37,0.4);
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.3);
    color: #989186;
    font-size: 13px;
    line-height: 1.6;
}

#content_ajax article .body a {
    color: #81bd24;
    text-decoration: none;
    border-bottom: 1px dotted rgba(129,189,36,0.3);
    transition: all 0.2s;
}

#content_ajax article .body a:hover {
    color: #a0e030;
    border-bottom-color: #a0e030;
}

/* === NEWS ARTICLES === */
.post {
    margin-bottom: 8px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(42,42,37,0.3);
    transition: border-color 0.2s;
}

.post:hover {
    border-color: rgba(129,189,36,0.15);
}

.post_header {
    position: relative;
}

.post_header #title a {
    font-family: 'Aparajita', Georgia, serif;
    font-size: 16px;
    font-variant: small-caps;
    color: #8e983e;
    letter-spacing: 0.5px;
}

.post_body_news {
    padding: 12px 15px;
    line-height: 1.6;
}

.post_body_news #info {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(42,42,37,0.3);
    font-size: 11px;
}

.post_body_news #info .comments_button {
    background: rgba(129,189,36,0.08);
    border: 1px solid rgba(129,189,36,0.15);
    padding: 3px 10px;
    border-radius: 3px;
    color: #81bd24;
    font-size: 11px;
    transition: all 0.2s;
}

.post_body_news #info .comments_button:hover {
    background: rgba(129,189,36,0.15);
}

/* === SIDEBAR SECTIONS === */
.sidebox {
    border: 1px solid rgba(42,42,37,0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.sidebox .top {
    border-bottom: 1px solid rgba(129,189,36,0.1);
}

.sidebox .top p {
    font-family: 'Aparajita', Georgia, serif;
    font-variant: small-caps;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.sidebox .body {
    padding: 8px;
}

.body li a {
    border-radius: 3px;
    transition: all 0.3s;
}

.body li a:hover {
    background: rgba(129,189,36,0.05);
}

/* === MEMBERSHIP BOX (Login/Account panel) === */
.membersip_a,
.membersip_b {
    border: 1px solid rgba(42,42,37,0.3);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.mem-b-cont {
    padding: 10px;
}

.mem-b-cont input[type='text'],
.mem-b-cont input[type='password'] {
    border-radius: 3px;
    transition: box-shadow 0.2s;
}

.mem-b-cont input[type='text']:focus,
.mem-b-cont input[type='password']:focus {
    box-shadow: 0 0 8px rgba(129,189,36,0.2);
}

.acc-p-b a {
    display: inline-block;
    padding: 2px 0;
    transition: all 0.2s;
}

.acc-p-b a:hover {
    color: #81bd24;
    padding-left: 5px;
}

/* === REALMLIST === */
.realmlist {
    border: 1px solid rgba(129,189,36,0.12);
    border-radius: 4px;
    background: rgba(16,16,14,0.8);
    padding: 10px;
    text-align: center;
    font-weight: bold;
    letter-spacing: 0.3px;
}

/* === LOGIN PAGE === */
.loginbox_username,
.loginbox_password {
    border-radius: 3px;
    transition: box-shadow 0.3s;
}

.loginbox_username:focus,
.loginbox_password:focus {
    box-shadow: 0 0 10px rgba(129,189,36,0.2);
}

/* === FORM INPUTS (all) === */
input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
    border-radius: 3px;
    transition: box-shadow 0.3s, border-color 0.3s;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
textarea:focus {
    box-shadow: 0 0 8px rgba(129,189,36,0.15);
    border-color: rgba(129,189,36,0.3);
}

/* === SUBMIT BUTTONS === */
input[type='submit'],
button,
.nice_button {
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

input[type='submit']::after,
button::after,
.nice_button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transition: left 0.5s;
}

input[type='submit']:hover::after,
button:hover::after,
.nice_button:hover::after {
    left: 100%;
}

/* === TABLES === */
.nice_table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(42,42,37,0.3);
}

.nice_table tr:first-child td {
    background: rgba(129,189,36,0.06);
    border-bottom: 1px solid rgba(129,189,36,0.12);
    font-family: 'Aparajita', Georgia, serif;
    font-variant: small-caps;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.nice_table td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(42,42,37,0.15);
    transition: background 0.15s;
}

.nice_table tr:hover td {
    background: rgba(129,189,36,0.02);
}

.nice_table tr:last-child td {
    border-bottom: none;
}

/* ============================================
   REALM STATUS - Modern Card Design
   ============================================ */

/* Hide old realm styling */
.realms-status .a-realm {
    background: none;
    height: auto;
}

/* Card */
.rs-card {
    background: rgba(13,13,11,0.9);
    border: 1px solid rgba(42,42,37,0.3);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 6px;
}

/* Header: realm name + status badge */
.rs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(42,42,37,0.2);
}

.rs-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Aparajita', Georgia, serif;
    font-size: 16px;
    font-variant: small-caps;
    color: #989186;
    letter-spacing: 0.5px;
}

.rs-name i {
    color: #5b5851;
    font-size: 12px;
}

.rs-wow-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 3px rgba(200,160,40,0.4));
}

/* Status badges */
.rs-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rs-online {
    background: rgba(129,189,36,0.1);
    border: 1px solid rgba(129,189,36,0.25);
    color: #81bd24;
}

.rs-offline {
    background: rgba(200,60,60,0.1);
    border: 1px solid rgba(200,60,60,0.25);
    color: #c84040;
}

/* Pulse animation for online */
.rs-pulse {
    position: relative;
    width: 8px;
    height: 8px;
    display: inline-block;
}

.rs-pulse::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #81bd24;
    box-shadow: 0 0 4px #81bd24;
}

.rs-pulse::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #81bd24;
    animation: realmPulse 1.5s ease-in-out infinite;
}

@keyframes realmPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(2.2);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Offline dot */
.rs-dot-off {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c84040;
    display: inline-block;
    opacity: 0.6;
}

/* Body: stats */
.rs-body {
    padding: 10px 12px;
    display: flex;
    gap: 10px;
}

.rs-stat {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
    border: 1px solid rgba(42,42,37,0.15);
}

.rs-stat-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(129,189,36,0.08);
    border: 1px solid rgba(129,189,36,0.15);
    border-radius: 6px;
    color: #81bd24;
    font-size: 12px;
    flex-shrink: 0;
}

.rs-stat-info {
    flex: 1;
    min-width: 0;
}

.rs-stat-value {
    font-size: 18px;
    font-weight: bold;
    color: #81bd24;
    line-height: 1;
    text-shadow: 0 0 8px rgba(129,189,36,0.3);
    font-family: 'Courier New', monospace;
}

.rs-stat-uptime {
    font-size: 13px;
    color: #706b62;
    text-shadow: none;
}

.rs-stat-label {
    font-size: 9px;
    color: #5b5851;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

/* When offline, dim stats */
.rs-offline ~ .rs-body .rs-stat-value {
    color: #4a4940;
    text-shadow: none;
}

.rs-offline ~ .rs-body .rs-stat-icon {
    background: rgba(200,60,60,0.05);
    border-color: rgba(200,60,60,0.1);
    color: #5b5851;
}

/* === PAGINATION === */
#news_pagination a,
.pagination a {
    display: inline-block;
    padding: 4px 10px;
    margin: 0 2px;
    background: rgba(16,16,14,0.6);
    border: 1px solid rgba(42,42,37,0.3);
    border-radius: 3px;
    color: #706b62;
    font-size: 11px;
    transition: all 0.2s;
}

#news_pagination a:hover,
.pagination a:hover {
    border-color: rgba(129,189,36,0.3);
    color: #81bd24;
    background: rgba(129,189,36,0.05);
}

/* === UCP BUTTONS (sprite panels) === */
#ucp_buttons a {
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

#ucp_buttons a:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.5), 0 0 10px rgba(129,189,36,0.1);
    transform: translateY(-1px);
}

/* === UCP INFO TABLE === */
#ucp_info td {
    transition: background 0.15s;
}

#ucp_info tr:hover td {
    background: rgba(129,189,36,0.02);
}

/* === VOTE CARDS === */
.card {
    background: rgba(16,16,14,0.7);
    border: 1px solid rgba(42,42,37,0.3);
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s;
}

.card:hover {
    border-color: rgba(129,189,36,0.2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.card-header {
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(42,42,37,0.2);
}

.card-body {
    padding: 12px;
}

/* === STORE ITEMS === */
.store_item {
    border-bottom: 1px solid rgba(42,42,37,0.15);
    transition: background 0.15s;
    padding: 10px;
}

.store_item:hover {
    background: rgba(129,189,36,0.02);
}

.item_group {
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(42,42,37,0.2);
    margin-bottom: 10px;
}

.item_group_title {
    font-family: 'Aparajita', Georgia, serif;
    font-variant: small-caps;
    font-size: 15px;
    color: #81bd24;
    letter-spacing: 0.5px;
}

/* === SHOUTBOX === */
#shoutbox textarea {
    border-radius: 3px;
    transition: box-shadow 0.3s;
}

#shoutbox textarea:focus {
    box-shadow: 0 0 8px rgba(129,189,36,0.15);
}

.shout {
    border-radius: 2px;
    transition: background 0.15s;
}

.shout:hover {
    background: rgba(129,189,36,0.02);
}

.shout_author a {
    font-weight: bold;
}

/* === ONLINE PLAYERS === */
#playersTable {
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(42,42,37,0.3);
}

/* === CONNECT PAGE === */
.connect {
    line-height: 1.7;
}

/* === POPUP / MODALS === */
.popup {
    border-radius: 6px;
    border: 1px solid rgba(42,42,37,0.3);
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.popup_button {
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* === FOOTER (desktop only) === */
.footer {
    border-top: 1px solid rgba(129,189,36,0.08);
}

.footer #right a {
    transition: all 0.2s;
    padding: 2px 4px;
    border-radius: 2px;
}

.footer #right a:hover {
    color: #81bd24;
    background: rgba(129,189,36,0.05);
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0a0a08;
}

::-webkit-scrollbar-thumb {
    background: #2a2a25;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a5a10;
}

/* === SELECTION === */
::selection {
    background: rgba(129,189,36,0.3);
    color: #fff;
}

::-moz-selection {
    background: rgba(129,189,36,0.3);
    color: #fff;
}

/* === LINKS GLOBAL POLISH === */
a {
    transition: color 0.3s;
}

/* === DIVIDERS === */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(129,189,36,0.15), transparent);
    margin: 12px 0;
}

/* === COMMENTS === */
.comment {
    border-radius: 4px;
    transition: border-color 0.2s;
}

.comment:hover {
    border-color: rgba(42,42,37,0.5);
}

.comment_author {
    font-weight: bold;
}

.comment_date {
    font-size: 10px;
    opacity: 0.7;
}

/* === FORM ROW (register, etc) === */
.form-row {
    margin-bottom: 12px;
}

/* === SUB BOXES (content pages) === */
.sub-box1, .sub-box11, .sub-box3 {
    border: 1px solid rgba(42,42,37,0.2);
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* === SWEET ALERT (dark theme) === */
.swal2-popup {
    background: rgba(16,16,14,0.97) !important;
    border: 1px solid rgba(42,42,37,0.3) !important;
    border-radius: 8px !important;
    color: #989186 !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6) !important;
}

.swal2-title {
    color: #81bd24 !important;
    font-family: 'Aparajita', Georgia, serif !important;
    font-variant: small-caps;
}

.swal2-confirm {
    background: linear-gradient(180deg, #4a5a10, #3a4a08) !important;
    border: 1px solid #5a6a15 !important;
    border-radius: 4px !important;
}

.swal2-cancel {
    background: #1a1a15 !important;
    border: 1px solid #2a2a25 !important;
    border-radius: 4px !important;
}

/* === TOOLTIP === */
#tooltip, .tooltip {
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border: 1px solid rgba(42,42,37,0.4);
}

/* === BADGES / LABELS === */
.badge {
    border-radius: 3px;
    font-weight: normal;
    letter-spacing: 0.3px;
}

/* === ANIMATIONS === */
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 5px rgba(129,189,36,0.2); }
    50% { box-shadow: 0 0 15px rgba(129,189,36,0.4); }
}

/* Subtle glow on active sidebox */
.sidebox:first-of-type .top {
    animation: glowPulse 3s ease-in-out infinite;
}
