/* ============================================
   BBMODZ GLOBAL.CSS - COMPLETE FIXED VERSION
   Last Updated: October 22, 2025
   ============================================ */

/* CRITICAL: Box-sizing fix for all elements */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Base body styles */
body {
    font-size: 14px;
    line-height: 1.4;
    color: #c7c7c7;
    background: #0e0e0e url(../../../images/hf/bg.gif) repeat center top fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
    font-family: Verdana, Arial, Sans-Serif;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

@media (min-width: 768px) {
    body {
        min-width: 320px;
    }
}

/* Links */
a:link {
    color: #0eff0e;
    text-decoration: none;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

a:visited {
    color: #0eff0e;
    text-decoration: none;
}

a:link:hover, a:hover, a:focus {
    color: #00ff1f;
    text-shadow: 0 0 6px #00b7ff, 0 0 12px rgba(0, 183, 255, 0.4);
}

/* Typography */
.bold {
    font-weight: 700;
}

.tfixed {
    table-layout: fixed;
    word-wrap: break-word;
}

.smalltext {
    font-size: 13.5px;
    line-height: 1.5;
    color: #cfcfcf;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.1);
    letter-spacing: 0.3px;
    transition: color 0.25s ease;
}

.smalltext a {
    color: #33ff00;
    text-decoration: none;
    transition: 0.25s;
}

.smalltext a:hover {
    color: #ff3333;
    text-shadow: 0 0 6px #ff3333;
}

.tinytext {
    font-size: 12px;
    color: #ababab;
}

.largetext {
    font-size: 16px;
    font-weight: 700;
}

h1 {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    padding: 0;
    display: inline-block;
}

/* Wrapper */
.wrapper {
    width: 95%;
    max-width: 1525px;
    margin: 0 auto;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .wrapper {
        width: 100% !important;
        padding: 0 10px !important;
    }
}

@media (max-width: 767px) {
    .wrapper {
        width: 100% !important;
        padding: 0 5px !important;
        max-width: 100% !important;
    }
}

/* Logo */
#logo {
    max-width: 1525px;
    padding: 10px 0;
    border-bottom: 1px solid #0c0c0c;
    margin: 0 auto;
    text-align: center;
}

img.logo-img {
    margin-bottom: 15px;
    margin-top: 10px;
    max-width: 100%;
    transition: 0.3s;
}

img.logo-img:hover {
    opacity: .7;
}

.logo-hide-button {
    display: inline-block;
    position: relative;
    top: -23px;
    right: 0px;
    cursor: pointer;
    color: #00FF00;
}

/* Content area */
#content {
    overflow: visible;
    padding: 25px;
}

/* Container */
#container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* ============================================
   VISIBILITY CLASSES - DESKTOP
   ============================================ */
.mobile-s,
.mobile-small,
.mobile,
.mobile-keep-inline,
.mobile-keep-block,
.mobile-inline-block,
.tablet-mobile {
    display: none;
}

.desktop-inline-block {
    display: table-cell;
}

/* CRITICAL: Hide mobile forum meta on desktop */
.forum-meta.mobile {
    display: none !important;
}

.clear {
    clear: both;
}

.float_left {
    float: left;
}

.float_right {
    float: right;
}

.hidden {
    display: none;
    float: none;
    width: 1%;
}

.hiddenrow {
    display: none;
}

/* ============================================
   TABLES
   ============================================ */
.table {
    table-layout: fixed;
    width: 100%;
}

table {
    color: #b3b3b3;
    font-size: 14px;
}

.tborder {
    background: #1f1f1f;
    width: 100%;
    border: 1px solid #00FF00;
    padding: 3px;
    border-radius: 7px;
    background-color: hsla(120,100%,50%,0.3);
}

.thead {
    background: #00000054;
    color: #fff;
    border-bottom: 1px solid #252525;
    padding: 13px;
    font-size: 14px;
    word-break: break-all;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.thead a:link,
.thead a:visited {
    color: #fff;
    text-decoration: none;
}

.thead a:hover,
.thead a:active {
    color: #fff;
}

.thead_collapsed {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.tcat {
    color: #fff;
    border: none;
    background: #1F1F1F;
    border-top: 1px solid #1f1f1f;
    border-bottom: 1px solid #1d1d1d;
    padding: 8px;
}

.tcat a:link,
.tcat a:visited {
    color: #fff;
}

.tcat a:hover,
.tcat a:active {
    color: #fff;
}

.trow1 {
    background: #171717;
    border-top: 1px solid #3c3c3c;
    border-bottom: 1px solid #1d1d1d;
    padding: 10px;
}

.trow2 {
    background: #191919;
    border-top: 1px solid #3c3c3c;
    border-bottom: 1px solid #1d1d1d;
    padding: 10px;
}

.trow_shaded {
    background: #999999;
    color: #000;
}

.trow_shaded span.smalltext {
    color: #000;
}

.trow_deleted,
.post.deleted_post {
    background: #e8deff !important;
    border-top: 1px solid #3d3640;
    border-bottom: 1px solid #1c1a1d;
    color: #ababab !important;
    font-weight: 400;
}

.post.deleted_post .post_author,
.post.deleted_post .post_content {
    background: #e8deff !important;
}

.trow_selected,
tr.trow_selected td {
    background: #2d2d2d;
    color: #b5b5b5;
}

.trow_selected a:link,
.trow_selected a:visited,
.trow_selected a:hover,
.trow_selected a:active {
    color: #757575;
}

.trow_sep {
    background: #282828;
    border-top: 1px solid #3c3c3c;
    border-bottom: 1px solid #1d1d1d;
    color: #e2e2e2;
    padding: 6px;
    font-size: 12px;
    font-weight: 700;
}

.tfoot {
    border-top: 1px solid #1f1f1f;
    padding: 6px;
    background: #1f1f1f;
    color: #f7f7f7;
}

.tfoot a:link,
.tfoot a:visited {
    color: #adadad;
    text-decoration: none;
}

.tfoot a:hover,
.tfoot a:active {
    color: #e4e4e4;
}

.no_bottom_border {
    border-bottom: 0;
}

/* ============================================
   FOOTER
   ============================================ */
#footer {
    width: 100%;
    clear: both;
    margin-top: 30px;
}

#footer .upper,
#footer .lower {
    padding: 15px;
    background: #171717;
    border-top: 1px solid #252525;
    color: #c7c7c7;
}

#footer ul.menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

#footer ul.menu li {
    display: inline-block;
    margin: 0 10px;
}

#footer ul.menu li a {
    color: #0eff0e;
    text-decoration: none;
}

#footer ul.menu li a:hover {
    color: #00ff1f;
}

#footer .lower {
    text-align: center;
    font-size: 12px;
    padding: 10px;
}

/* ============================================
   MOBILE RESPONSIVE (@media max-width: 767px)
   ============================================ */
@media (max-width: 767px) {
    body {
        font-size: 13px;
    }
    
    #content {
        padding: 15px 8px;
    }
    
    /* ===== CRITICAL: Hide desktop columns on mobile ===== */
    .desktop-remove,
    .desktop-inline-block,
    td.desktop-inline-block,
    th.desktop-inline-block,
    .tcat.desktop-inline-block {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        max-width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
    }
    
    /* Force hide by position - columns 3 and 4 */
    .tborder table tr > td:nth-child(3),
    .tborder table tr > td:nth-child(4) {
        display: none !important;
    }
    
    .tborder table thead tr > td:nth-child(3),
    .tborder table thead tr > td:nth-child(4) {
        display: none !important;
    }
    
    .tborder table tbody tr > td:nth-child(3),
    .tborder table tbody tr > td:nth-child(4) {
        display: none !important;
    }
    
    /* ===== Show mobile elements ===== */
    .mobile,
    .mobile-s,
    .mobile-small {
        display: block !important;
    }
    
    .mobile-keep-inline {
        display: inline !important;
    }
    
    .mobile-keep-block {
        display: block !important;
    }
    
    .mobile-inline-block {
        display: inline-block !important;
    }
    
    /* ===== Mobile forum meta ===== */
    .forum-meta.mobile {
        display: block !important;
        margin-top: 12px !important;
        padding: 12px !important;
        background: rgba(0, 255, 0, 0.08) !important;
        border-left: 3px solid #0eff0e !important;
        border-radius: 4px !important;
    }
    
    .forum-meta.mobile .meta-line {
        margin-bottom: 6px !important;
        font-size: 13px !important;
        color: #0eff0e !important;
        font-weight: 600 !important;
        line-height: 1.8 !important;
    }
    
    .forum-meta.mobile .meta-line:last-child {
        margin-bottom: 0 !important;
    }
    
    .forum-meta.mobile .stat-threads,
    .forum-meta.mobile .stat-posts {
        color: #00ff1f !important;
        font-weight: bold !important;
        text-shadow: 0 0 3px rgba(0, 255, 30, 0.3) !important;
    }
    
    .forum-meta.mobile .lastpost {
        color: #0eff0e !important;
        font-size: 12px !important;
    }
    
    .forum-meta.mobile .lastpost a {
        color: #00ff1f !important;
        text-decoration: none !important;
        font-weight: 600 !important;
    }
    
    /* ===== Forum styling mobile ===== */
    .forum-status {
        width: 40px !important;
        padding: 5px !important;
    }
    
    .forum-title {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }
    
    .forum-desc {
        font-size: 12px !important;
        margin-top: 5px !important;
        line-height: 1.4 !important;
        color: #999 !important;
    }
    
    /* ===== Tables mobile ===== */
    .tborder {
        width: 100% !important;
        overflow-x: hidden !important;
        margin-bottom: 10px !important;
    }
    
    table {
        width: 100% !important;
        table-layout: auto !important;
    }
    
    .trow1,
    .trow2 {
        padding: 8px 5px !important;
    }
    
    /* ===== Footer mobile ===== */
    #footer .upper,
    #footer .lower {
        padding: 10px !important;
        font-size: 11px !important;
    }
    
    #footer ul.menu li {
        display: block !important;
        margin: 8px 0 !important;
        text-align: center !important;
    }
    
    #footer .lower #current_time {
        display: block !important;
        text-align: center !important;
        margin-top: 10px !important;
    }
    
    /* ===== Posts mobile ===== */
    .post {
        margin-bottom: 10px !important;
        width: 100% !important;
    }
    
    .post.classic .post_author {
        float: none !important;
        width: 100% !important;
        margin: 0 0 10px 0 !important;
        border: 1px solid #00ff00 !important;
        border-radius: 5px !important;
        padding: 10px !important;
        position: static !important;
    }
    
    .post.classic .post_author div.author_avatar {
        float: left !important;
        margin-right: 12px !important;
        text-align: left !important;
    }
    
    .post.classic .post_author div.author_avatar img {
        max-width: 60px !important;
        max-height: 60px !important;
        border-radius: 5px !important;
    }
    
    .post.classic .post_author div.author_information {
        float: left !important;
        text-align: left !important;
        padding: 0 !important;
    }
    
    .post.classic .post_author div.author_statistics {
        display: none !important;
    }
    
    .post.classic .post_content {
        float: none !important;
        width: 100% !important;
        padding: 10px !important;
        display: block !important;
    }
    
    .post_content {
        padding: 10px !important;
        font-size: 14px !important;
        line-height: 1.6 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* ===== Forms mobile ===== */
    input.textbox,
    textarea,
    select {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 16px !important;
        padding: 10px !important;
        box-sizing: border-box !important;
    }
    
    textarea {
        min-height: 120px !important;
    }
    
    button,
    input.button,
    a.button {
        padding: 10px 15px !important;
        font-size: 14px !important;
        min-height: 44px !important;
        display: inline-block !important;
    }
    
    /* ===== Touch improvements ===== */
    a,
    button,
    input[type="submit"],
    input[type="button"] {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Prevent zoom on inputs (iOS) */
    input[type="text"],
    input[type="password"],
    input[type="email"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* ============================================
   SMALL MOBILE (@media max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    body {
        font-size: 12px !important;
    }
    
    #content {
        padding: 10px 5px !important;
    }
    
    img.logo-img {
        max-width: 180px !important;
    }
    
    .forum-title {
        font-size: 13px !important;
    }
    
    .forum-desc {
        font-size: 11px !important;
    }
    
    .forum-meta.mobile {
        padding: 8px !important;
        font-size: 11px !important;
    }
    
    .post.classic .post_author div.author_avatar img {
        max-width: 50px !important;
        max-height: 50px !important;
    }
    
    .trow1,
    .trow2 {
        padding: 6px 5px !important;
    }
}

/* ============================================
   FOOTER STYLING
   ============================================ */
#site-footer {
    background: #0a0a0a;
    border-top: 2px solid #00ff00;
    margin-top: 30px;
    width: 100%;
}

.footer-upper {
    background: #111;
    padding: 40px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-col h3.title {
    color: #0eff0e;
    font-size: 16px;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #c7c7c7;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.25s ease;
}

.footer-col ul li a:hover {
    color: #0eff0e;
}

.footer-about .about_desc {
    color: #999;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: #00ff00;
    color: #000;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: 0.25s ease;
}

.social-btn:hover {
    background: #00cc00;
    transform: translateY(-2px);
}

.footer-lower {
    background: #000;
    padding: 15px 0;
    text-align: center;
    border-top: 1px solid #1a1a1a;
}

.footer-lower #copyright {
    color: #666;
    font-size: 12px;
}

.footer-lower a {
    color: #0eff0e;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #00ff00;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 20px;
    transition: 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 255, 0, 0.3);
}

.back-to-top:hover {
    background: #00cc00;
    transform: translateY(-5px);
}
/* ===== Footer mobile ===== */
.footer-upper {
    padding: 20px 0 !important;
}

.footer-grid {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
}

.footer-col {
    text-align: center !important;
}

.footer-col ul {
    text-align: center !important;
}

.footer-social {
    justify-content: center !important;
    flex-wrap: wrap !important;
}

.social-btn {
    font-size: 12px !important;
    padding: 8px 12px !important;
}

.back-to-top {
    bottom: 20px !important;
    right: 20px !important;
    width: 45px !important;
    height: 45px !important;
}

.footer-lower {
    padding: 12px 10px !important;
}

.footer-lower #copyright {
    font-size: 11px !important;
    display: block !important;
}
/* ============================================
   USERGROUP BADGES - MATRIX THEME WITH ICONS
   ============================================ */
.ug {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 2px;
    transition: all 0.25s ease;
    border: 1px solid;
    font-family: 'Courier New', monospace;
    position: relative;
    overflow: hidden;
}

/* Root - Admin Crown/Shield */
.ug-root {
    background: #1a0000;
    color: #ff0033;
    border-color: #ff0033;
    text-shadow: 0 0 8px #ff0033, 0 0 12px rgba(255, 0, 51, 0.5);
    box-shadow: 0 0 12px rgba(255, 0, 51, 0.3), inset 0 0 8px rgba(255, 0, 51, 0.1);
}

.ug-root:hover {
    background: #250000;
    box-shadow: 0 0 20px rgba(255, 0, 51, 0.6), inset 0 0 12px rgba(255, 0, 51, 0.2);
    transform: translateY(-2px);
}

.ug-root::before {
    content: '👑';
    margin-right: 5px;
    font-size: 12px;
    filter: drop-shadow(0 0 4px #ff0033);
}

/* Moderator - Shield/Star */
.ug-moderator {
    background: #001a1a;
    color: #00ffff;
    border-color: #00ffff;
    text-shadow: 0 0 8px #00ffff, 0 0 12px rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.3), inset 0 0 8px rgba(0, 255, 255, 0.1);
}

.ug-moderator:hover {
    background: #002525;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6), inset 0 0 12px rgba(0, 255, 255, 0.2);
    transform: translateY(-2px);
}

.ug-moderator::before {
    content: '🛡️';
    margin-right: 5px;
    font-size: 12px;
    filter: drop-shadow(0 0 4px #00ffff);
}

/* Elite - Diamond/Star */
.ug-elite {
    background: #0a1a0a;
    color: #00ff00;
    border-color: #00ff00;
    text-shadow: 0 0 8px #00ff00, 0 0 12px rgba(0, 255, 0, 0.5);
    box-shadow: 0 0 12px rgba(0, 255, 0, 0.3), inset 0 0 8px rgba(0, 255, 0, 0.1);
}

.ug-elite:hover {
    background: #0f250f;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.6), inset 0 0 12px rgba(0, 255, 0, 0.2);
    transform: translateY(-2px);
}

.ug-elite::before {
    content: '💎';
    margin-right: 5px;
    font-size: 12px;
    filter: drop-shadow(0 0 4px #00ff00);
}

/* Member - User/Person */
.ug-member {
    background: #0f1a0f;
    color: #7fff00;
    border-color: #7fff00;
    text-shadow: 0 0 6px #7fff00, 0 0 10px rgba(127, 255, 0, 0.4);
    box-shadow: 0 0 10px rgba(127, 255, 0, 0.25), inset 0 0 6px rgba(127, 255, 0, 0.1);
}

.ug-member:hover {
    background: #152515;
    box-shadow: 0 0 16px rgba(127, 255, 0, 0.5), inset 0 0 10px rgba(127, 255, 0, 0.2);
    transform: translateY(-2px);
}

.ug-member::before {
    content: '👤';
    margin-right: 5px;
    font-size: 12px;
    filter: drop-shadow(0 0 4px #7fff00);
}

/* Coder - Terminal/Brackets */
.ug-coder {
    background: #0a1a0a;
    color: #39ff14;
    border-color: #39ff14;
    text-shadow: 0 0 8px #39ff14, 0 0 12px rgba(57, 255, 20, 0.5);
    box-shadow: 0 0 12px rgba(57, 255, 20, 0.3), inset 0 0 8px rgba(57, 255, 20, 0.1);
}

.ug-coder:hover {
    background: #0f250f;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.6), inset 0 0 12px rgba(57, 255, 20, 0.2);
    transform: translateY(-2px);
}

.ug-coder::before {
    content: '💻';
    margin-right: 5px;
    font-size: 12px;
    filter: drop-shadow(0 0 4px #39ff14);
}

/* Designer - Palette/Brush */
.ug-designer {
    background: #1a001a;
    color: #ff00ff;
    border-color: #ff00ff;
    text-shadow: 0 0 8px #ff00ff, 0 0 12px rgba(255, 0, 255, 0.5);
    box-shadow: 0 0 12px rgba(255, 0, 255, 0.3), inset 0 0 8px rgba(255, 0, 255, 0.1);
}

.ug-designer:hover {
    background: #250025;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.6), inset 0 0 12px rgba(255, 0, 255, 0.2);
    transform: translateY(-2px);
}

.ug-designer::before {
    content: '🎨';
    margin-right: 5px;
    font-size: 12px;
    filter: drop-shadow(0 0 4px #ff00ff);
}

/* Banned - Hammer/Lock */
.ug-banned {
    background: #1a0000;
    color: #666;
    border-color: #440000;
    text-shadow: none;
    box-shadow: 0 0 8px rgba(68, 0, 0, 0.3), inset 0 0 6px rgba(68, 0, 0, 0.2);
    text-decoration: line-through;
    opacity: 0.7;
}

.ug-banned:hover {
    background: #200000;
    box-shadow: 0 0 12px rgba(68, 0, 0, 0.5);
    transform: translateY(-2px);
}

.ug-banned::before {
    content: '🔨';
    margin-right: 5px;
    font-size: 12px;
    color: #ff0000;
    filter: drop-shadow(0 0 4px #ff0000);
}

/* Scan line effect */
.ug::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.02) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
}

@media (max-width: 767px) {
    .ug {
        font-size: 9px !important;
        padding: 3px 8px !important;
        margin: 1px !important;
        letter-spacing: 0.5px !important;
    }
    
    .ug::before {
        font-size: 10px !important;
        margin-right: 3px !important;
    }
}