/*
Theme Name: MillionDollarov
Text Domain: milliondollarov
*/
:root {
	--color-h: #004d40;
	--color-primary: #f70000;
}
* {
	box-sizing: border-box;
}
body {
	margin: 0;
	font-family: Verdana, Montserrat, Tahoma, sans-serif, Trebuchet MS, roboto, ubuntu;
	font-size: 14px;
	background: #F1F1F1;
	color: #333;
}
.container {
	margin: 0 auto;
	max-width: 1280px;
}
#header {
	background: #f7f8fa;
}
#logo {
	font-size: 24px;
	padding: 10px;
}
#logo a {
	display: inline-block;
	text-decoration: none;
	color: #000;
}
#logo .title {
	background: #f00;
	color: #fff;
	padding: 10px;
	display: inline-block;
}
#logo .subtitle {
	padding: 10px;
	display: inline-block;
}
#mainpage-wrapper,
#article-wrapper,
#page-wrapper,
#post-wrapper {
	background: #fff;
	display: flex;
	gap: 20px;
	padding: 10px 0;
	flex-wrap: wrap;
}
#sidebar-left {
	flex: 0 0 240px;
}
#sidebar-right {
	flex: 0 0 280px;
}
#mainpage-wrapper #main {
	flex: 0 0 calc(100% - 560px);
}
#post-wrapper #main,
#page-wrapper #main,
#article-wrapper #main {
	flex: 0 0 calc(100% - 300px);
}
.pagination ul.page-numbers {
	list-style: none;
	display: flex;
	gap: 10px;
	padding: 0;
	justify-content: center;
	margin: 30px 0 40px;
}
.pagination .page-numbers {
	padding: 5px 10px;
	text-decoration: none;
	color: #333;
}
.pagination a.page-numbers:hover {
	color: var(--color-primary);
}
.pagination a.page-numbers {
	border: 1px solid #ddd;
}

.pagination .current {
	background-color: var(--color-primary);
	color: #fff;
	border-color: var(--color-primary);
}
#footer {
	background: #E7E7E7;
	padding: 30px 0;
}
.footer-inner {
	margin: 0 auto;
	max-width: 1024px;
	display: flex;
	color: #9a9a9a;
	font-size: 12px;
	line-height: 18px;
	flex-wrap: wrap;
	gap: 10px 40px;
	padding: 0 20px;
}
.footer-inner .block1 {
	flex: 0 0 calc(100% - 250px);
}
.footer-inner .block4 {
	flex: 0 0 210px;
}
@media (max-width: 768px) {
	.footer-inner .block1 {
		flex: 0 0 100%;
	}
	.footer-inner .block4 {
		flex: 0 0 100%;
	} 
}
#footer-menu {
	padding: 0;
	margin: 0;
	list-style: none;
}
#footer-menu a {
	text-decoration: none;
	color: #333;
}
#copyright {
	flex: 0 0 100%;
}

/* Контейнер виджета */
.widget_live_feed_widget {
	padding: 0 5px;
}

/* Заголовок виджета */
.live-feed-title {
	color: #004d40; /* Темно-бирюзовый цвет как на фото */
	font-size: 24px;
	margin-bottom: 20px;
	font-weight: normal;
	border-bottom: none;
	margin: 30px 0 10px;
}

/* Элемент списка (один комментарий) */
.live-feed-item {
	padding: 10px 0;
	border-bottom: 1px solid #e5e5e5; /* Тонкая разделительная линия */
	font-size: 12px;
}

/* Убираем рамку у последнего элемента */
.live-feed-item:last-child {
	border-bottom: none;
}

/* Аватарка */
.live-feed-avatar {
	float: left;
	margin-right: 10px;
	width: 30px;
	height: 30px;
	margin-top: 4px;
}

.live-feed-avatar img {
	width: 30px;
	height: 30px;
	object-fit: cover;
}

/* Правая часть (Дата + Текст) */
.live-feed-content {
	flex-grow: 1;
}

/* Дата */
.live-feed-date {
	color: #999; /* Светло-серый цвет */
	margin-bottom: 4px;
}

/* Текст комментария */
.live-feed-text {
	line-height: 1.4;
	color: #333;
}

.live-feed-text a {
	text-decoration: none;
	color: #00332a; /* Очень темный цвет для текста, почти черный */
	transition: color 0.2s;
}

.live-feed-text a:hover {
	color: var(--color-primary);
}

/* Стили для виджета "Форум: обсуждаемое" */
.widget_discussed_on_forum_widget {
	padding: 0 5px;
}

.widget_discussed_on_forum_widget .widget-title {
	color: var(--color-h);
	font-size: 24px;
	font-weight: normal;
	border-bottom: none;
	margin: 30px 0 10px;
}

.widget_discussed_on_forum_widget .forum-widget-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.widget_discussed_on_forum_widget .forum-widget-list li {
	padding: 12px 0; /* Отступ слева для иконки */
	border-bottom: 1px solid #e0e0e0;
	position: relative;
	min-height: 60px;
}
.widget_discussed_on_forum_widget .forum-widget-list li img {
	float: left;
	margin-right: 10px;
	width: 30px;
	height: 30px;
	margin-top: 4px;
}

.widget_discussed_on_forum_widget .forum-widget-list li:last-child {
	border-bottom: none;
}

.widget_discussed_on_forum_widget .forum-widget-list li a {
	text-decoration: none;
	color: #333;
	font-size: 12px;
}

.widget_discussed_on_forum_widget .forum-widget-list li a:hover {
	color: var(--color-primary);
}
/* TEASER */
.post-teaser {
	margin-bottom: 40px;
	line-height: 1.3;
	border-top: 1px solid #e4e4e4;
}

.teaser-title {
	margin-bottom: 15px;
	font-size: 24px;
	line-height: 1.1em;
	font-weight: normal;
}

.teaser-title a {
	color: var(--color-h);
	text-decoration: none;
}
.teaser-title a:hover {
	text-decoration: none;
	color: var(--color-primary);
}

.teaser-content {
	font-size: 15px;
	margin-bottom: 15px;
}
.teaser-content.with-thumb {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}
.teaser-thumb {
	flex: 0 0 41.6667%;
}
.teaser-thumb img {
	width: 100%;
	height: auto;
}

.teaser-content.with-thumb .teaser-text {
	flex: 0 0 calc(58.3333% - 20px);
}
.teaser-text p {
	margin: 0 0 5px;
}

.teaser-read-more {
	display: inline-block;
	color: #333;
	text-decoration: underline;
}
.teaser-read-more:hover {
	text-decoration: none;
}

.teaser-meta {
	display: flex;
	align-items: flex-start;
	font-size: 13px;
	margin-top: 20px;
}

.teaser-avatar {
	margin-right: 12px;
}
.teaser-avatar img {
	display: block;
	width: 48px;
	height: 48px;
}

.teaser-info {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.teaser-row-top {
	margin-bottom: 6px;
}

.teaser-author a {
	color: #2e7d32;
	font-style: italic;
	text-decoration: none;
	font-weight: 700;
}

.teaser-separator {
	margin: 0 5px;
	color: #666;
}

.teaser-date {
	color: #333;
	font-style: italic;
}

.teaser-row-bottom {
	display: flex;
	align-items: center;
	color: #999;
	flex-wrap: wrap;
}

.teaser-tags {
	margin-right: 15px;
	display: flex;
	align-items: center;
	gap: 4px;
}
.teaser-tags a {
	color: #999;
	text-decoration: none;
}
.teaser-tags a:hover { text-decoration: underline; }

.teaser-comments-link a {
	color: #777;
	font-weight: bold;
	text-decoration: underline;
}
.teaser-comments-link a:hover { text-decoration: none; }

/*--------------
PAGE
*/
.trader-page {
	padding: 20px;
}
.trader-page .entry-title {
	font-size: 24px;
}
/*--------------
POST
*/
/* Основной контейнер поста */
.trader-post {
	padding: 20px;
}

/* --- Шапка (Аватар + Мета) --- */
.post-header-row {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
}

.author-avatar img {
	width: 48px;
	height: 48px;
	margin-right: 10px;
	display: block;
}

.post-meta-data {
	font-size: 13px;
	color: #888; /* Серый цвет для даты и просмотров */
}

.author-name {
	color: #2e5e2e; /* Темно-зеленый цвет имени */
	font-weight: bold;
	margin-right: 5px;
}

.post-meta-data .meta-separator {
	color: #ccc;
	margin: 0 3px;
}

/* --- Заголовок --- */
.entry-title {
	color: var(--color-h); /* Темно-зеленый, как на скрине */
	font-size: 18px;
	font-weight: bold;
	margin: 5px 0 0;
	line-height: 1.2;
}

/* --- Контент --- */
.entry-content {
	font-size: 14px;
	color: #000;
	line-height: 1.5;
}
.entry-content iframe {
	max-width: 100%;
}

.entry-content p {
	margin-bottom: 15px;
}

/* Делаем картинки (графики) адаптивными */
.entry-content img {
	max-width: 100%;
	height: auto;
	border: 1px solid #ddd; /* Тонкая рамка вокруг графика, если нужна */
	display: block;
	margin-top: 10px;
}

/* --- Ссылка на комментарии --- */
.post-footer-row {
	margin-top: 20px;
}

.comments-trigger {
	color: #ff0000; /* Ярко-красный цвет */
	font-weight: bold;
	text-decoration: underline;
	font-size: 14px;
}

.comments-trigger:hover {
	text-decoration: none;
	color: #cc0000;
}
/*
COMMENTS 
*/
/* Сброс стилей списка */
ul.comment-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

ul.comment-list li {
	margin-bottom: 5px;
}

/* Основной контейнер комментария */
.custom-comment-wrapper {
	border: 1px solid #000; /* Черная рамка вокруг всего блока */
	background-color: #dcdcdc; /* Светло-серый фон */
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	box-sizing: border-box;
}

/* --- ШАПКА --- */
.comment-header-row {
	background-color: #cccccc; /* Чуть более темный серый для шапки */
	border-bottom: 1px solid #000;
	padding: 4px 10px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 12px;
}

.comment-permalink a {
	text-decoration: none;
	color: #006400; /* Темно-зеленый цвет для # */
	font-weight: bold;
}

/* --- ОСНОВНОЕ ТЕЛО (FLEX) --- */
.comment-main-table {
	display: flex;
	flex-direction: row;
	min-height: 150px; /* Минимальная высота как на картинке */
}

/* --- ЛЕВАЯ КОЛОНКА (ЮЗЕР) --- */
.comment-user-sidebar {
	flex: 0 0 200px; /* Фиксированная ширина левой колонки */
	border-right: 1px solid #888; /* Разделитель колонок */
	padding: 10px;
	background-color: #fff; /* Белый фон под аватаркой */
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Имя автора */
.comment-author-name, 
.comment-author-name a {
	color: #006400; /* Зеленый цвет имени */
	font-weight: bold;
	font-size: 16px;
	text-decoration: none;
	margin-bottom: 5px;
}

/* Аватар */
.comment-avatar img {
	border: 1px solid #ccc;
	padding: 1px;
	background: #fff;
	border-radius: 4px; /* Легкое скругление */
	display: block;
}

/* Статистика (Сила) */
.user-stats {
	display: flex;
	font-size: 11px;
	color: #fff;
	margin-top: 5px;
}

.stat-power {
	background-color: #5d95d5; /* Голубой цвет */
	padding: 2px 5px;
	border-right: 1px solid #fff;
}

.stat-green {
	background-color: #7ab648; /* Салатовый цвет */
	padding: 2px 5px;
}

/* Статус онлайн */
.user-online-status {
	font-size: 11px;
	color: #333;
	margin-top: 10px;
	line-height: 1.2;
}

/* --- ПРАВАЯ КОЛОНКА (КОНТЕНТ) --- */
.comment-content-area {
	flex-grow: 1;
	padding: 10px;
	background-color: #dcdcdc; /* Серый фон контента */
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.comment-text {
	color: #000;
	line-height: 1.4;
	margin-bottom: 20px;
}

/* Якорь внизу */
.comment-footer-anchor {
	border-top: 1px solid #999;
	padding-top: 2px;
	margin-top: auto; /* Прижимает к низу */
}

.comment-footer-anchor a {
	color: red; /* Красный якорь */
	text-decoration: none;
	font-size: 10px;
}

/* Адаптивность для мобильных */
@media (max-width: 600px) {
	.comment-main-table {
		flex-direction: column;
	}
	.comment-user-sidebar {
		width: 100%;
		border-right: none;
		border-bottom: 1px solid #888;
		flex-direction: row;
		align-items: center;
		flex-wrap: wrap;
	}
	.user-stats {
		margin-left: auto;
	}
}
/* Общий контейнер */
.comments-area {

}
#respond {
	padding: 0 20px;
}
/* Заголовок */
.comments-title, 
#reply-title {
	font-size: 1.2rem;
	font-weight: 600;
	margin-bottom: 20px;
	letter-spacing: -0.5px;
	text-transform: uppercase;
}

/* Список комментариев (упрощенный) */
.comment-list {
	list-style: none;
	padding: 0;
	margin-bottom: 40px;
}

.comment-list li {
	margin-bottom: 20px;
	border-bottom: 1px solid #eee;
	padding-bottom: 20px;
}

.comment-body {
	font-size: 0.95rem;
	line-height: 1.6;
}

.comment-meta {
	font-size: 0.8rem;
	color: #888;
	margin-bottom: 8px;
}

/* Скрытие лейблов, так как мы используем плейсхолдеры */
.comment-form label {
	display: none;
}

/* Поля ввода (Input и Textarea) */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
	width: 100%;
	background: #f9f9f9;
	border: 1px solid transparent;
	padding: 12px 15px;
	font-size: 0.95rem;
	border-radius: 4px;
	box-sizing: border-box; /* Важно для отступов */
	transition: all 0.3s ease;
	margin-bottom: 15px;
}

/* Эффект при клике на поле */
.comment-form input:focus,
.comment-form textarea:focus {
	background: #fff;
	border-color: #333;
	outline: none;
}

/* Группировка Имени и Email в одну строку (Flexbox) */
.comment-form-row {
	display: flex;
	gap: 15px;
}

.comment-form-author,
.comment-form-email {
	flex: 1; /* Поля занимают равную ширину */
	margin-bottom: 0; /* Отступ обрабатывается внутри input */
}

/* Адаптивность для мобильных */
@media (max-width: 600px) {
	.comment-form-row {
		flex-direction: column;
		gap: 0;
	}
}

/* Кнопка отправки */
.submit-btn {
	background-color: #222;
	color: #fff;
	border: none;
	padding: 12px 25px;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
	border-radius: 4px;
	transition: background 0.3s ease;
	display: inline-block;
}

.submit-btn:hover {
	background-color: #555;
}

/* Ссылка "Отменить ответ" */
#cancel-comment-reply-link {
	font-size: 0.8rem;
	color: #999;
	margin-left: 10px;
	text-decoration: none;
}
/* 
MENU
*/
/* Основной контейнер меню */
.main-navigation-container {
	width: 100%;
	font-size: 12px;
	padding: 10px 10px 0;
	/*border-bottom: 1px solid #eee; *//* Легкая линия снизу */
}

/* Сброс стилей списка */
ul.top-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex; /* Выстраиваем элементы в ряд */
	flex-wrap: wrap; /* Перенос на новую строку если не влезает */
}

/* Элементы верхнего уровня */
ul.top-menu > li {
	position: relative;
	border: 1px solid #ccc; /* Рамка вокруг кнопок */
	margin-right: 5px;      /* Отступ между кнопками */
	margin-bottom: 5px;
	border-radius: 2px;
}

/* Ссылки верхнего уровня */
ul.top-menu > li > a {
	display: block;
	padding: 5px 9px;
	text-decoration: none;
	color: #555; /* Цвет текста (серый) */
	font-weight: bold;
	white-space: nowrap;
}

/* Стрелочка для элементов с выпадающим меню */
ul.top-menu > li.menu-item-has-children > a::after {
	content: " ▼";
	font-size: 10px;
	margin-left: 5px;
	vertical-align: middle;
}

/* --- Эффекты при наведении (HOVER) --- */

/* Фон кнопки при наведении */
ul.top-menu > li:hover {
	background-color: #5672a0; /* Синий цвет как на скриншоте */
	border-color: #4b67a1;
}

/* Цвет текста при наведении */
ul.top-menu > li:hover > a {
	color: #ffffff;
}

/* --- Выпадающее меню (Sub-menu) --- */

ul.top-menu .sub-menu {
	display: none; /* Скрыто по умолчанию */
	position: absolute;
	top: 100%; /* Появляется ровно под родительским элементом */
	left: -1px; /* Компенсация border родителя */
	background-color: #fff;
	min-width: 200px;
	border: 1px solid #ccc;
	z-index: 999; /* Чтобы меню было поверх остального контента */
	box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
	padding: 0;
	list-style: none;
}

/* Показываем выпадающее меню при наведении на родителя */
ul.top-menu > li:hover .sub-menu {
	display: block;
}

/* Пункты выпадающего меню */
ul.top-menu .sub-menu li {
	border-bottom: 1px solid #eee;
	width: 100%;
}

ul.top-menu .sub-menu li:last-child {
	border-bottom: none;
}

/* Ссылки выпадающего меню */
ul.top-menu .sub-menu li a {
	display: block;
	padding: 10px 15px;
	color: #333;
	text-decoration: none;
	font-weight: normal;
}

/* Ховер для пунктов выпадающего меню */
ul.top-menu .sub-menu li a:hover {
	background-color: #f5f5f5;
	color: #000;
}
/* PROFILE */
.trader-profile {
	padding: 20px;
}
.profile-avatar {
	flex: 0 0 64px;
}
.profile-avatar img {
	width: 64px;
	height: 64px;
}
.profile-header {
	display: flex;
	align-items: center;
	gap: 20px;
	border-bottom: 1px solid #e5e5e5;
	flex-wrap: wrap;
	padding: 0 0 20px;
}
.profile-info h1 {
	margin: 0 0 5px;
}
.profile-info p {
	font-size: 12px;
	margin: 0 0 5px;
}

/* CATEGORY */
.category-header {
	background: #f8fbfe;
	padding: 16px;
	margin: 0 0 20px;
}
.category-header .page-title {
	margin: 0 0 20px;
	padding: 10px 10px 10px 70px;
	background: url('img/blog.png') no-repeat ;
}
.category-header .taxonomy-description {
	font-size: 12px;
}

@media (max-width: 1023px) {
	#mainpage-wrapper #sidebar-left {
		order: 3;
		flex: 0 0 100%;
	}
	#mainpage-wrapper #main {
		order: 1;
		flex: 0 0 calc(100% - 300px);
		padding: 0 0 0 10px;
	}
	#mainpage-wrapper #sidebar-right {
		order: 2;
	}
}
@media (max-width: 768px) {
	#sidebar-right {
		flex: 0 0 100%;
	}
	#sidebar-right .tradingview-widget-container {
		width: 100% !important;
	}
	#mainpage-wrapper #main,
	#article-wrapper #main,
	#page-wrapper #main,
	#post-wrapper #main {
		flex: 0 0 100%;
		padding: 0 10px;
	}
}
@media (max-width: 460px) {
	.teaser-thumb {
		flex: 0 0 100%;
		height: 150px;
		overflow: hidden;
	}
	.teaser-thumb img {
		object-fit: cover;
		object-position: 50% 50%;
		height: 100%;
	}
	.teaser-content.with-thumb .teaser-text {
		flex: 0 0 100%;
	}
}
.single-post-thumb img,
.entry-content img {
	max-width: 100%;
	height: auto;
}
#social-links {
	margin: 0 0 10px;
	list-style: none;
	padding: 0;
	display: flex;
	gap: 10px;
}