/*
 * Форум PSCD.ru: оформление в стиле emu-land (тема Curve SMF 2.0) поверх стандартной темы SMF 2.1.
 * Только цвета, фоны и шрифты — разметка и скрипты SMF не меняются. Подключается хуком pscd_load_theme.
 */

:root {
	--pscd-link: #334466;
	--pscd-text: #444;
	--pscd-board: #d97b33;      /* названия разделов, ники */
	--pscd-row: #e7eaef;        /* windowbg */
	--pscd-row2: #f0f4f7;       /* windowbg2 */
	--pscd-cat-top: #b4c4d6;    /* полосы категорий */
	--pscd-cat-bottom: #7f97b2;
	--pscd-title: #e3e9ef;      /* светлые заголовки */
	--pscd-line: #c5cfda;
}

/* Основа */
body {
	background: #e9eef2 linear-gradient(to bottom, #2c4c6c 0, #557595 160px, #9fb5cb 300px, #e9eef2 420px) repeat-x;
	font: 13px/1.4 Verdana, Arial, Helvetica, sans-serif;
	color: var(--pscd-text);
}
a:link, a:visited { color: var(--pscd-link); }

/* Верхняя полоска (вход / регистрация / поиск) и шапка — внутри белой рамки, как у emu-land */
#top_section {
	background: transparent;
	border-bottom: 0;
	box-shadow: none;
}
#top_section .inner_wrap, #top_section a, #top_info .welcome { color: #fff; }
#top_section .welcome strong { color: #fff; }
#wrapper {
	background: #fff;
	border: 1px solid #c0cdd9;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 20, 50, .25);
	margin-top: 10px;
}
#header {
	background: linear-gradient(to bottom, #c9d7e5 0, #e8eef4 60%, #fff 100%);
	border-radius: 8px 8px 0 0;
}
h1.forumtitle, h1.forumtitle a, h1.forumtitle a:visited {
	color: var(--pscd-link);
	font: 26px/1.3 Verdana, Arial, sans-serif;
	text-shadow: none;
}
#smflogo { display: none; }
#upper_section {
	background: linear-gradient(to bottom, #fff 0, #f2f5f8 100%);
	border-radius: 0;
}
#upper_section .news { display: none; }

/* Меню: «Начало» и т.п. — плоские пункты, активный — оранжевая кнопка */
.dropmenu li a.firstlevel, .dropmenu li .top_menu { border-radius: 4px; }
.dropmenu li a.active, .dropmenu li a.active:hover {
	background: linear-gradient(to bottom, #f5a64a 0, #e87d17 100%);
	border-color: #d06c0c;
	color: #fff;
	box-shadow: none;
}
.dropmenu li a.active .main_icons { filter: brightness(10); }

/* Полосы категорий — сине-серые, белый жирный текст */
.cat_bar, .cat_bar.collapsed {
	background: linear-gradient(to bottom, var(--pscd-cat-top) 0, var(--pscd-cat-bottom) 100%);
	border-radius: 7px 7px 0 0;
	border: 0;
}
.catbg, .catbg a, .catbg a:visited, h3.catbg, h4.catbg {
	color: #fff;
	font-weight: bold;
	text-shadow: 0 1px 1px rgba(0, 30, 60, .35);
}
.title_bar, .title_bar.collapsed {
	background: linear-gradient(to bottom, #eef2f6 0, var(--pscd-title) 100%);
	border: 0;
	border-radius: 7px 7px 0 0;
}
.titlebg, .titlebg a, .titlebg a:visited { color: #222; }

/* Строки разделов, тем и сообщений — голубовато-серые, через одну */
.windowbg, .up_contain, #preview_body,
.windowbg:nth-of-type(odd), .bg.odd { background: var(--pscd-row); border-color: var(--pscd-line); }
.windowbg:nth-of-type(even), .up_contain:nth-of-type(even), .bg.even { background: var(--pscd-row2); }
.windowbg:target { background: #ffffe0; }
.windowbg.sticky { background: #ece5df; }
.windowbg.locked { background: #e3e6ea; }
.roundframe, .information { background: #f6f8fa; border-color: var(--pscd-line); }
.board_stats, .lastpost { border-color: #d3dbe3; }

/* Названия разделов и ники — оранжевые, как у emu-land */
.info a.subject, .info a.subject:visited, .board_info a.subject { color: var(--pscd-board); font-weight: bold; font-size: 1.1em; }
.poster h4, .poster h4 a, .poster h4 a:visited { color: var(--pscd-board); font-size: 1.15em; }
#boardindex_table .board_description { color: #333; }
.children, .children a { color: var(--pscd-link); }

/* Сообщения */
.post .inner { font-size: 1em; line-height: 1.45; color: #000; }
blockquote.bbc_standard_quote, blockquote.bbc_alternate_quote {
	background: #f7f9fb;
	border: 1px solid #c8d2dd;
	border-left: 4px solid #8fa6bf;
	border-radius: 4px;
}
.bbc_code { background: #fff; border: 1px solid #c8d2dd; }

/* Спойлер (forum-custom/Pscd.php) */
details.bbc_spoiler {
	margin: 6px 0;
	border: 1px dashed #9fb2c6;
	border-radius: 4px;
	background: #f7f9fb;
}
details.bbc_spoiler > summary {
	cursor: pointer;
	padding: 4px 8px;
	font-weight: bold;
	color: var(--pscd-link);
}
details.bbc_spoiler > div { padding: 6px 10px; border-top: 1px dashed #c8d2dd; }

/* Кнопки (Ответ, Уведомлять…) — светлые с синей рамкой */
.button, a.button {
	background: linear-gradient(to bottom, #fff 0, #e3e9ef 100%);
	border-color: #a7b9cd;
	color: #334466;
}
.button:hover, a.button:hover { background: #fff; color: #334466; }
.button.active { background: linear-gradient(to bottom, #f5a64a 0, #e87d17 100%); border-color: #d06c0c; color: #fff; }

/* Подвал */
#footer { background: transparent; color: #556; }
#footer a { color: #446; }

/* Шапка списка тем (Тема / Ответы / Последний ответ) — синяя, как полосы категорий */
#topic_header, .table_grid thead tr, .table_grid thead th {
	background: linear-gradient(to bottom, var(--pscd-cat-top) 0, var(--pscd-cat-bottom) 100%);
	color: #fff;
	border-radius: 7px 7px 0 0;
}
#topic_header a, #topic_header a:visited, .table_grid thead th a { color: #fff; font-weight: bold; }

/* ---------------------------------------------------------------- ближе к emu-land: ширина и шрифты (сверено по вычисленным стилям) */

/* Во всю ширину окна с отступами по 14 px */
#wrapper, #top_section .inner_wrap, #footer .inner_wrap, #upper_section, #inner_section, #content_section {
	max-width: none;
	width: auto;
}
#wrapper { margin: 10px 14px; }
#top_section .inner_wrap, #footer .inner_wrap { padding-left: 14px; padding-right: 14px; }

body { font-size: 12.5px; line-height: 1.3; }
h1.forumtitle, h1.forumtitle a, h1.forumtitle a:visited { font: 22px/1.4 Geneva, Verdana, Arial, sans-serif; }
.dropmenu li a.firstlevel, .dropmenu li .top_menu { font-size: 12.5px; }
.navigate_section, .navigate_section ul li { font-size: 12.5px; }

/* Главная и разделы */
.cat_bar h3.catbg, h3.catbg, h4.catbg { font: bold 15px/1.6 Arial, Helvetica, sans-serif; }
.info a.subject, .info a.subject:visited, .board_info a.subject { font-size: 13.7px; }
.board_description { font-size: 12.5px; line-height: 1.3; }
.moderators, .moderators a, .moderators a:visited { font-size: 10px; font-weight: normal; }
.board_stats p, .board_stats { font-size: 11.2px; color: #000; }
.lastpost, .lastpost p { font-size: 10.6px; line-height: 1.3; }
.lastpost strong { font-weight: bold; }
.children, .children p, .children a { font-size: 10.6px; }

/* Темы */
.poster h4, .poster h4 a, .poster h4 a:visited { font-size: 15px; color: #c06002; }
.poster li, .poster ul li, .poster .membergroup, .poster .postcount { font-size: 10.6px; line-height: 1.6; color: #000; }
.post .inner, .inner .bbc_standard_quote, .inner { font-size: 12.5px; line-height: 1.4; }
.keyinfo .smalltext, .postinfo, .page_number { font-size: 10.6px; font-weight: normal; color: #000; }
.keyinfo h5, .keyinfo h5 a { font-size: 12.5px; font-weight: bold; color: #334466; }
#topic_header, .topic_listing { font-size: 12.5px; }
.topic_details .smalltext, .topic_details a { font-size: 10.6px; }

/* Шапка как у emu-land: строка входа/поиска и название форума — внутри общей рамки, на светлой голубой полосе */
#top_section {
	margin: 10px 14px 0;
	background: linear-gradient(to bottom, #bccbdb 0, #d9e3ed 100%);
	border: 1px solid #b3c3d4;
	border-bottom: 0;
	border-radius: 8px 8px 0 0;
}
#top_section .inner_wrap, #top_section a, #top_section a:visited, #top_info .welcome, #top_section .welcome strong { color: #223344; }
#top_section .button { color: #223344; }
#header {
	margin: 0 14px;
	max-width: none;
	background: linear-gradient(to bottom, #d9e3ed 0, #eef3f7 70%, #fff 100%);
	border: 1px solid #b3c3d4;
	border-top: 0;
	border-bottom: 0;
	border-radius: 0;
	box-shadow: none;
}
#header h1.forumtitle { padding: 6px 4px; }
#wrapper {
	margin-top: 0;
	border-top: 0;
	border-radius: 0 0 8px 8px;
	box-shadow: 0 3px 6px rgba(0, 20, 50, .2);
}
/* Колонка счётчиков — чуть темнее, как у emu-land */
.board_stats { background: rgba(160, 180, 200, .12); }
#header { width: auto; box-sizing: border-box; }

/* Значки разделов (свои SVG в /forum/pscd/icons/, по смыслу раздела) — вместо стандартных значков SMF */
.board_icon a.board_on, .board_icon a.board_on2, .board_icon a.board_off, .board_icon a.board_redirect { background-size: 42px 42px; background-position: center; background-repeat: no-repeat; width: 48px; height: 48px; }
/* Нет новых сообщений — значок чуть бледнее (как «прочитано») */
.board_icon a.board_off { opacity: .7; filter: saturate(.55); }
#board_2 .board_icon a { background-image: url(icons/emulation.svg); }
#board_3 .board_icon a { background-image: url(icons/consoles.svg); }
#board_23 .board_icon a { background-image: url(icons/hardware.svg); }
#board_24 .board_icon a { background-image: url(icons/flashcart.svg); }
#board_4 .board_icon a { background-image: url(icons/romhack.svg); }
#board_27 .board_icon a { background-image: url(icons/docs.svg); }
#board_6 .board_icon a { background-image: url(icons/games.svg); }
#board_21 .board_icon a { background-image: url(icons/secrets.svg); }
#board_8 .board_icon a { background-image: url(icons/wip.svg); }
#board_9 .board_icon a { background-image: url(icons/done.svg); }
#board_25 .board_icon a { background-image: url(icons/sets.svg); }
#board_26 .board_icon a { background-image: url(icons/sega.svg); }
#board_28 .board_icon a { background-image: url(icons/dumping.svg); }
#board_18 .board_icon a { background-image: url(icons/video_walk.svg); }
#board_19 .board_icon a { background-image: url(icons/announce.svg); }
#board_20 .board_icon a { background-image: url(icons/howto.svg); }
#board_11 .board_icon a { background-image: url(icons/misc.svg); }
#board_15 .board_icon a { background-image: url(icons/people.svg); }
#board_12 .board_icon a { background-image: url(icons/site.svg); }
#board_14 .board_icon a { background-image: url(icons/private.svg); }
#board_16 .board_icon a { background-image: url(icons/archive.svg); }
#board_22 .board_icon a { background-image: url(icons/graphics.svg); }

/* Список тем внутри раздела — как у emu-land: ячейки с разделителями, закреплённые темы — бежевые и жирные */
#display_head { padding: 6px 10px; margin-bottom: 6px; }
#display_head .display_title { font: bold 15px/1.4 Arial, Helvetica, sans-serif; color: var(--pscd-link); }
#display_head p { font-size: 11px; margin: 0; }
#topic_container .windowbg { border: 0; border-bottom: 1px solid #fff; }
#topic_container .windowbg > div { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
#topic_container .board_icon { width: 56px; flex-shrink: 0; align-items: center; background: rgba(160, 180, 200, .18); border-right: 1px solid #fff; }
#topic_container .board_icon img { margin: 0; }
#topic_container .info { padding: 4px 8px; }
#topic_container .message_index_title { font-size: 13px; }
#topic_container .info p.floatleft, #topic_container .topic_pages { font-size: 10.6px; }
#topic_container .board_stats { background: none; border-left: 1px solid #fff; border-right: 1px solid #fff; font-size: 10.6px; color: #000; padding: 4px 6px; }
#topic_container .board_stats p { border: 0; margin: 0; }
#topic_container .lastpost { padding: 4px 8px; font-size: 10.6px; }
#topic_container .windowbg.sticky, #topic_container .windowbg.sticky:nth-of-type(even) { background: #efe2d8; }
#topic_container .windowbg.sticky .message_index_title a { font-weight: bold; }
#topic_container .windowbg.locked .message_index_title a { font-style: italic; }
#topic_container .windowbg:hover { background: #fffbe6; }
#topic_header { font-size: 12.5px; }

/* Страницы как у emu-land: «Страницы: [1] 2 3 4 5 ... 23 Далее   Вниз» — простые ссылки, текущая в скобках, жирная */
.pagesection .pagelinks { display: inline-flex; align-items: baseline; flex-wrap: wrap; font-size: 12.5px; }
.pagesection .pagelinks .pages { order: 0; font-size: 12.5px; margin-left: 0; }
.pagesection .pagelinks > :not(.button) { order: 1; }
.pagesection .pagelinks .button, .pagesection .pagelinks .button:hover {
	order: 2; margin-left: 14px; padding: 0; background: none; border: 0; box-shadow: none;
	font: bold 12.5px Verdana, Arial, sans-serif; text-transform: none; color: var(--pscd-link); height: auto; line-height: inherit;
}
.current_page { color: #000; padding: 0 3px 0 2px; font-family: inherit; }
.nav_page { padding: 0 2px; }
.expand_pages { font-weight: normal; padding: 0 2px; }
/* В строке темы — без слова «Страницы»: « 1 2 3 4 5 ... 8 Все » */
.topic_pages .pages { display: none; }
.topic_pages { font-size: 10.6px; }
