/* REFINED CLASSIC HACKER FORUM THEME (MyBB / BreachForums) */

:root {
    --bg-page: #050505;
    --bg-wrapper: #0d0d0d;
    --border-main: #262626;
    --border-light: #3a3a3a;
    
    --thead-bg: #141414;
    --trow1: #111111;
    --trow2: #161616;
    --hover-bg: #1a1a1a;
    
    --text-main: #cccccc;
    --text-muted: #888888;
    --link-color: #d1d1d1;
    --link-hover: #ff3b3b;
    
    --accent-red: #d32f2f;
    --accent-glow: rgba(211, 47, 47, 0.4);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-page);
    background-image: radial-gradient(circle at top, #111 0%, #050505 100%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: Tahoma, Verdana, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.4;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--link-hover);
}

/* MAIN WRAPPER */
.wrapper {
    width: 90%;
    max-width: 1150px;
    margin: 20px auto;
    background-color: var(--bg-wrapper);
    border: 1px solid var(--border-main);
    box-shadow: 0 0 20px rgba(0,0,0,0.9);
    padding: 15px;
}

/* HEADER */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.logo {
    font-size: 32px;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: -1px;
    text-shadow: 0 0 10px var(--accent-glow);
}

.logo-icon {
    color: var(--accent-red);
    font-size: 26px;
    margin-right: 5px;
}

.red-text {
    color: var(--accent-red);
}

.user-panel {
    font-size: 12px;
}

.panel-box {
    background-color: #080808;
    border: 1px solid var(--border-main);
    padding: 10px 15px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
}

/* NAVBAR */
.navbar {
    background-color: #080808;
    border: 1px solid var(--border-main);
    margin-bottom: 15px;
}

.navbar ul {
    list-style: none;
    display: flex;
}

.navbar li {
    border-right: 1px solid var(--border-main);
}

.navbar li:last-child {
    border-right: none;
}

.navbar li a {
    display: block;
    padding: 10px 18px;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
}

.navbar li a:hover {
    background-color: var(--hover-bg);
    color: #fff;
    border-bottom: 2px solid var(--accent-red);
    padding-bottom: 8px; /* Compensate for border */
}

.navbar li a i {
    color: var(--accent-red);
    margin-right: 5px;
}

/* BREADCRUMBS */
.breadcrumbs {
    font-size: 12px;
    background: #080808;
    border: 1px solid var(--border-main);
    padding: 8px 12px;
    margin-bottom: 20px;
}

.breadcrumbs span {
    color: var(--text-muted);
    margin: 0 5px;
}

/* SHOUTBOX */
.shoutbox {
    margin-bottom: 20px;
}

.shoutbox-content {
    height: 120px;
    overflow-y: auto;
    padding: 10px;
    font-size: 12px;
    font-family: 'Courier New', Courier, monospace;
}

.shout {
    margin-bottom: 4px;
    padding-bottom: 4px;
    border-bottom: 1px dashed #222;
}

.shout:last-child {
    border-bottom: none;
}

.shout-time {
    color: var(--text-muted);
    margin-right: 5px;
}

.shoutbox-input {
    display: flex;
    padding: 8px;
    background: #0a0a0a !important;
}

.shoutbox-input input {
    flex: 1;
    background: #050505;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    padding: 6px 10px;
    font-family: inherit;
    font-size: 12px;
}

.shoutbox-input button {
    background: #222;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    padding: 0 15px;
    margin-left: 5px;
    cursor: not-allowed;
    font-weight: bold;
}

/* FORUM TABLES */
.tborder {
    background: #000;
    border: 1px solid var(--border-main);
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.thead {
    background-color: var(--thead-bg);
    border-bottom: 1px solid var(--border-main);
    border-top: 2px solid var(--accent-red);
    color: #ffffff;
    padding: 10px 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.thead i {
    color: var(--accent-red);
    margin-right: 5px;
}

.tlayout {
    border-collapse: collapse;
}

.trow1 { background-color: var(--trow1); }
.trow2 { background-color: var(--trow2); }

.trow1 td, .trow2 td {
    border-bottom: 1px solid var(--border-main);
    padding: 14px 12px;
    transition: background-color 0.2s;
}

.tlist tr:last-child td { border-bottom: none; }

.tlist tr:hover td {
    background-color: var(--hover-bg);
}

/* FORUM ROW STYLES */
.forum-icon i {
    font-size: 26px;
    color: #444;
    transition: color 0.3s, transform 0.3s;
}

.tlist tr:hover .forum-icon i {
    color: var(--accent-red);
    transform: scale(1.1);
}

.forum-link {
    font-size: 14px;
    font-weight: bold;
    color: #eeeeee;
}

.smalltext {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* STAT BOXES */
.forum-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.stat-box {
    text-align: center;
}

.stat-number {
    display: block;
    color: #ffffff;
    font-weight: bold;
    font-size: 13px;
}

.stat-label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 2px;
}

.lastpost-info {
    font-size: 11px;
    line-height: 1.6;
    background: rgba(0,0,0,0.2);
    padding: 6px;
    border: 1px solid #1a1a1a;
}

.muted { color: var(--text-muted); }
.white-text { color: #ffffff; }

/* USER GROUPS & GLOWS */
.user-admin { color: #ff3b3b; font-weight: bold; }
.user-mod { color: #00ff00; font-weight: bold; }
.user-vip { color: #00ccff; font-weight: bold; }
.user-member { color: #cccccc; font-weight: bold; }

.group-glow {
    text-shadow: 0 0 5px currentColor;
}

/* STATS BOARD */
.stats-board p { margin-bottom: 6px; }
.separator {
    border: 0;
    border-top: 1px solid var(--border-main);
    margin: 10px 0;
}
.online-list {
    margin-top: 8px;
    background: #080808;
    padding: 8px;
    border: 1px solid #1a1a1a;
}

/* FOOTER */
.footer {
    font-size: 11px;
    padding-bottom: 30px;
}
.footer .wrapper {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-top: 0;
}

/* FORM STYLES (Login & Register) */
.textbox {
    background: #050505;
    border: 1px solid var(--border-light);
    color: var(--text-main);
    padding: 8px 10px;
    font-family: inherit;
    font-size: 12px;
    width: 100%;
    max-width: 300px;
    transition: 0.2s;
}

.textbox:focus {
    border-color: var(--accent-red);
    outline: none;
    box-shadow: 0 0 5px var(--accent-glow);
}

.button {
    background: #111111;
    border: 1px solid var(--border-light);
    color: var(--text-main);
    padding: 8px 20px;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
    transition: 0.2s;
}

.button:hover {
    background: var(--accent-red);
    color: #ffffff;
    border-color: var(--accent-red);
}

.alert {
    padding: 10px;
    margin-bottom: 15px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 2px;
}

.alert-error {
    background: #2a0808;
    border: 1px solid var(--accent-red);
    color: #ffcccc;
}

.alert-success {
    background: #082a08;
    border: 1px solid #00ff00;
    color: #ccffcc;
}

/* FACEBOOK STYLE REACTIONS CONTAINER */
.fb-react-wrapper {
    position: relative;
    display: inline-block;
}

.fb-react-btn {
    background: #151515;
    border: 1px solid var(--border-light);
    color: var(--text-main);
    padding: 5px 12px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.2s;
}

.fb-react-btn:hover {
    background: #222;
    border-color: var(--accent-red);
}

/* POPUP BOX (Hidden by default, appears strictly on hover) */
.fb-reaction-box {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    background: #181818;
    border: 1px solid #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.8);
    border-radius: 30px;
    padding: 6px 10px;
    gap: 8px;
    z-index: 100;
    margin-bottom: 8px;
}

/* Invisible bridge taake mouse move karte waqt box gayab na ho */
.fb-reaction-box::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 10px;
}

/* Show box only when hovering the wrapper/button */
.fb-react-wrapper:hover .fb-reaction-box {
    display: flex;
}

.fb-emoji {
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s;
    background: none;
    border: none;
    padding: 0;
}

.fb-emoji:hover {
    transform: scale(1.4) translateY(-5px);
}

/* REACTION BADGES */
.reaction-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.react-badge {
    background: #111;
    border: 1px solid #262626;
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.react-badge:hover {
    background: #1a1a1a;
    border-color: var(--accent-red);
}

/* MODAL POPUP FOR WHO REACTED */
.react-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.react-modal-content {
    background: var(--bg-wrapper);
    border: 1px solid var(--border-light);
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.9);
    overflow: hidden;
}

.react-modal-header {
    background: var(--thead-bg);
    padding: 12px 15px;
    font-size: 13px;
    font-weight: bold;
    border-bottom: 1px solid var(--border-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.react-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
}

.react-modal-close:hover {
    color: var(--accent-red);
}

.react-modal-body {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
}

.react-user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-main);
}

.react-user-item:last-child {
    border-bottom: none;
}

.react-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.react-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--accent-red);
}

.react-user-fallback {
    width: 32px;
    height: 32px;
    background: #222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-red);
    font-size: 14px;
    border: 1px solid var(--border-light);
}