/*
 * Uber1337 Classic - mørk styling af plugins: bbPress (forum), BuddyPress (legacy), CS2-demoer og Steam-login.
 * Indlæses efter pluginsenes egne stilark.
 */

/* ---------- bbPress ---------- */

#bbpress-forums { margin-bottom: 0; color: var(--text); font-size: .95rem; background: transparent; }
#bbpress-forums a { text-decoration-color: rgba(196, 18, 28, .6); }

#bbpress-forums ul.bbp-forums,
#bbpress-forums ul.bbp-topics,
#bbpress-forums ul.bbp-replies,
#bbpress-forums ul.bbp-search-results,
#bbpress-forums ul.bbp-lead-topic {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(0, 0, 0, .22);
    font-size: .92rem;
}
#bbpress-forums li.bbp-header,
#bbpress-forums li.bbp-footer {
    border-color: var(--line);
    background: rgba(0, 0, 0, .5);
    color: var(--heading);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}
#bbpress-forums li.bbp-body ul.forum,
#bbpress-forums li.bbp-body ul.topic,
#bbpress-forums div.even,
#bbpress-forums ul.even { border-top: 1px solid var(--line-soft); background: transparent; }
#bbpress-forums div.odd,
#bbpress-forums ul.odd { background: rgba(255, 255, 255, .025); }
#bbpress-forums li.bbp-body ul.forum:hover,
#bbpress-forums li.bbp-body ul.topic:hover { background: rgba(196, 18, 28, .07); }
#bbpress-forums .status-closed,
#bbpress-forums .status-closed a { color: var(--muted); }
#bbpress-forums .bbp-forum-title,
#bbpress-forums .bbp-topic-permalink { color: var(--heading); font-weight: 800; text-decoration: none; }
#bbpress-forums .bbp-forum-title:hover,
#bbpress-forums .bbp-topic-permalink:hover { color: #fff; text-decoration: underline; }
#bbpress-forums .bbp-forum-content,
#bbpress-forums p.bbp-topic-meta,
#bbpress-forums .bbp-topic-freshness-author,
#bbpress-forums .bbp-forum-freshness,
#bbpress-forums .bbp-topic-freshness { color: var(--muted); font-size: .8rem; }
#bbpress-forums div.bbp-forum-header,
#bbpress-forums div.bbp-topic-header,
#bbpress-forums div.bbp-reply-header {
    border-top: 1px solid var(--line);
    background: rgba(0, 0, 0, .38);
    color: var(--muted);
}
#bbpress-forums div.bbp-reply-author,
#bbpress-forums div.bbp-topic-author { color: var(--heading); }
#bbpress-forums div.bbp-reply-author img.avatar,
#bbpress-forums div.bbp-topic-author img.avatar { border-radius: 50%; }
#bbpress-forums .bbp-author-role { color: #f3b9bc; font-size: .72rem; font-weight: 700; text-transform: uppercase; }
#bbpress-forums div.bbp-reply-content,
#bbpress-forums div.bbp-topic-content { color: var(--text); }
#bbpress-forums .bbp-breadcrumb { margin-bottom: 12px; color: var(--muted); font-size: .85rem; }
#bbpress-forums .bbp-breadcrumb a { color: var(--muted); }
#bbpress-forums .bbp-breadcrumb .crumb-sep { margin: 0 6px; color: var(--red); }
#bbpress-forums div.bbp-search-form { margin-bottom: 12px; }
#bbpress-forums #bbp-search-form { display: flex; gap: 6px; }
#bbpress-forums #bbp_search { width: auto; flex: 1; }
/* bbPress skjuler etiketten med .hidden {display:none}, så feltet mangler et navn for skærmlæsere; bbPress' egen regel holder den uden for skærmen */
#bbpress-forums #bbp-search-form label.hidden { display: block; }

div.bbp-template-notice,
#bbpress-forums div.bbp-template-notice {
    padding: 10px 14px;
    border: 1px solid rgba(196, 18, 28, .45);
    border-radius: 8px;
    background: rgba(196, 18, 28, .12);
    color: #eee;
}
div.bbp-template-notice.info,
#bbpress-forums div.bbp-template-notice.info { border-color: var(--line); background: rgba(255, 255, 255, .05); }
div.bbp-template-notice a { color: #fff; }

#bbpress-forums fieldset.bbp-form {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(0, 0, 0, .18);
}
#bbpress-forums fieldset.bbp-form legend { padding: 0 6px; color: var(--heading); font-weight: 800; }
#bbpress-forums .quicktags-toolbar { border-color: var(--line); background: rgba(0, 0, 0, .4); }
#bbpress-forums .quicktags-toolbar input { border-color: var(--line); background: rgba(255, 255, 255, .06); color: var(--text); }
#bbpress-forums div.wp-editor-container { border-color: var(--line); }
#bbpress-forums button.button,
#bbpress-forums .bbp-submit-wrapper button {
    padding: 10px 16px;
    border: 1px solid #4a0509;
    border-radius: 10px;
    background: linear-gradient(180deg, #d81b25, #8f0c13);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.bbp-pagination { color: var(--muted); font-size: .82rem; }
.bbp-pagination-links a,
.bbp-pagination-links span.current {
    display: inline-block;
    min-width: 30px;
    padding: 3px 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(0, 0, 0, .25);
    color: var(--text);
    text-align: center;
    text-decoration: none;
}
.bbp-pagination-links span.current { border-color: var(--red); background: var(--red); color: #fff; }

/* bbPress-widgets i sidebaren */
.widget_display_forums li, .widget_display_topics li, .widget_display_replies li { font-size: .9rem; }
.widget_display_topics .bbp-author-link,
.widget_display_replies .bbp-author-link { color: var(--muted); font-size: .76rem; }
.widget_display_topics img.avatar,
.widget_display_replies img.avatar { border-radius: 50%; vertical-align: middle; }

/* ---------- BuddyPress (legacy) ---------- */

#buddypress { color: var(--text); }
#buddypress a { text-decoration-color: rgba(196, 18, 28, .6); }
#buddypress div.item-list-tabs ul li a,
#buddypress div.item-list-tabs ul li span { color: var(--text); }
#buddypress div.item-list-tabs ul li.selected a,
#buddypress div.item-list-tabs ul li.current a {
    border-radius: 6px;
    background: rgba(196, 18, 28, .22);
    color: #fff;
    opacity: 1;
}
#buddypress div.item-list-tabs ul li a span {
    border-color: var(--line);
    background: rgba(0, 0, 0, .45);
    color: #ddd;
}
#buddypress ul.item-list,
#buddypress ul.item-list li,
#buddypress div.item-list-tabs#subnav,
#buddypress .activity-list li.mini { border-color: var(--line-soft); }
#buddypress div.activity-meta a,
#buddypress .acomment-options a,
#buddypress a.button,
#buddypress button,
#buddypress input[type="submit"],
#buddypress input[type="button"],
#buddypress ul.button-nav li a,
#buddypress .generic-button a {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(0, 0, 0, .35);
    color: var(--text);
}
#buddypress a.button:hover,
#buddypress button:hover,
#buddypress input[type="submit"]:hover,
#buddypress .generic-button a:hover,
#buddypress div.activity-meta a:hover {
    border-color: var(--red);
    background: rgba(196, 18, 28, .22);
    color: #fff;
}
#buddypress .activity-header,
#buddypress .activity-inner,
#buddypress div#item-header div#item-meta,
#buddypress .item-desc { color: var(--text); }
#buddypress .activity-header a,
#buddypress .activity-header .time-since,
#buddypress span.activity { color: var(--muted); }
#buddypress .standard-form input[type="text"],
#buddypress .standard-form input[type="email"],
#buddypress .standard-form input[type="password"],
#buddypress .standard-form textarea,
#buddypress .standard-form select,
#buddypress div.dir-search input[type="text"],
#buddypress form#whats-new-form textarea {
    border: 1px dotted rgba(227, 35, 45, .8);
    background: rgba(0, 0, 0, .35);
    color: #eee;
}
#buddypress table.notifications,
#buddypress table.profile-fields,
#buddypress table.wp-profile-fields,
#buddypress table.messages-notices,
#buddypress table.forum,
#buddypress table.notification-settings { color: var(--text); }
#buddypress table tr td,
#buddypress table tr th { border-color: var(--line-soft); }
#buddypress table tr.alt td,
#buddypress table.profile-fields tr.alt td { background: rgba(255, 255, 255, .03); }
#buddypress table.profile-fields tr td.label { color: var(--muted); }
#buddypress div#message p,
#sitewide-notice p {
    border: 1px solid rgba(196, 18, 28, .45);
    background: rgba(196, 18, 28, .12);
    color: #eee;
}
#buddypress div.pagination { color: var(--muted); }
#buddypress .activity-list li.load-more,
#buddypress .activity-list li.load-newest { border: 1px solid var(--line); border-radius: 8px; background: rgba(0, 0, 0, .3); }
#buddypress img.avatar { border-radius: 50%; }

/* ---------- CS2-demoer ([cs2demos]) ---------- */
/* body-præfikset er nødvendigt: pluginet indlæser sit stilark nederst på siden, efter temaets. */

body .u13d { --u13d-line: rgba(255, 255, 255, .12); --u13d-muted: #9a9191; }
body .u13d-card {
    border-color: rgba(0, 0, 0, .6);
    background: rgba(0, 0, 0, .28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 4px 6px 14px rgba(0, 0, 0, .6);
    transition: transform .2s, border-color .2s;
}
body .u13d-card:hover { transform: translateY(-2px); border-color: rgba(196, 18, 28, .5); }
body .u13d-map { font-family: var(--display); font-weight: 400; font-size: 1.25rem; letter-spacing: .04em; text-transform: uppercase; }
body .u13d-btn { background: rgba(0, 0, 0, .3); color: var(--text); text-decoration: none; }
body .u13d-btn:hover { border-color: var(--red); color: #fff; }
body .u13d-btn.u13d-play { border-color: #4a0509; background: linear-gradient(180deg, #d81b25, #8f0c13); color: #fff; }
body .u13d-btn.u13d-play:hover { background: linear-gradient(180deg, #ee2b35, #a5101a); }
body .u13d-filters select,
body .u13d-filters input[type="search"] { width: auto; border: 1px dotted rgba(227, 35, 45, .8); background: rgba(0, 0, 0, .35); }
body .u13d-table th { color: var(--heading); }
body .u13d-more { border-color: var(--line); background: rgba(0, 0, 0, .3); }
body .u13d-more:hover { border-color: var(--red); color: #fff; }
body .u13d-live-card { border-color: var(--red); }

/* ---------- Steam-login (wp-steam-auth) og [showuberlogin] ---------- */

.wpsapButtonLogin img,
.wpsapButtonLogout img { display: block; }
.widget_text .textwidget a[href*="hlstats.php"],
.widget_text .textwidget a[href*="banlist"] { font-weight: 700; }
