/* Structure
---------------------------------------- */

#page-body {
	margin: 15px 0;
}

.middle {
	width: 100%;
	position: relative;
}

.middle:after {
	display: table;
	clear: both;
	content: '';
}

.sidebarContainer {
	width: 100%;
	float: left;
	/* overflow: hidden;  // Удалено для корректной работы sticky у сайдбаров */
}

.sidebarCenter {}

.left-sidebar {
	float: left;
	margin-left: -100%;
	position: relative;
	border: 1px solid #ccc;
	box-sizing: border-box;
	/* margin-top: 0; */
}

.right-sidebar {
	float: left;
	position: relative;
	border: 1px solid #ccc;
	box-sizing: border-box;
	/* margin-top: 0; */
}

/* Hide sidebars on other pages when 'index only' selected */
.sidebarIndex .sidebarHideMe .left-sidebar {display: none;}
.sidebarIndex .sidebarHideMe .right-sidebar {display: none;}
.sidebarIndex .sidebarHideMe .sidebarCenter {padding: 0 !Important;}

/* Header Blocks
---------------------------------------- */
.header-blocks {
    /* max-width: 1200px; */
    /* margin-left: auto; */
    /* margin-right: auto; */
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    margin: 5px;
    padding: 5px;
}

.header-blocks a {
	color: inherit;
	text-decoration: underline;
}

.header-blocks a:hover {
	text-decoration: none;
}

.header-blocks img {
	max-width: 100%;
	height: auto;
}

/* Footer Blocks
---------------------------------------- */
.footer-blocks {
    /* max-width: 1200px; */
    /* margin-left: auto; */
    /* margin-right: auto; */
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    margin: 5px;
    padding: 5px;
}

.footer-blocks a {
	color: inherit;
	text-decoration: underline;
}

.footer-blocks a:hover {
	text-decoration: none;
}

.footer-blocks img {
	max-width: 100%;
	height: auto;
}

/* Topic Blocks
---------------------------------------- */
.topic-blocks {
    /* max-width: 1200px; */
    /* margin-left: auto; */
    /* margin-right: auto; */
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    margin: 5px;
    padding: 5px;
}

.topic-blocks a {
	color: inherit;
	text-decoration: underline;
}

.topic-blocks a:hover {
	text-decoration: none;
}

.topic-blocks img {
	max-width: 100%;
	height: auto;
}

/* Widgets
---------------------------------------- */
.sidebarWidget {
	display: block;
	margin-bottom: 15px;

}

/* Search box tweaks */
.sidebarSearch .search-box {float: none;}

.sidebarSearch input.inputbox {
	width: 100%;
	border-radius: 0;
	border-width: 1px;
	font-size: 1em;
	padding: 9px;
	height: auto;
	margin-bottom: 5px;
}


/* Blocks */
.sidebarWidget .forabg, .sidebarWidget .forumbg, .sidebarWidget .panel {
	margin-left: 0;
	margin-right: 0;
}

.sidebarWidget li.header dt {
	margin-right: 0;
	margin-left: 5px;
}

.sidebarWidget li.row {
	padding: 5px;
}

.sidebarWidget li.row.nohover:hover {
	background: none;
}

/* Profile Widget */
.profileWidget fieldset.quick-login {
	margin-top: 0;
}

.profileWidget fieldset.quick-login input.inputbox {
	display: block;
	width: 100%; max-width: 100%;
	box-sizing: border-box;
	margin-bottom: 10px;
	margin-left: 0;
}

.profileWidget input[type=submit] {
	display: block;
	width: 100% !important;
	margin: 10px 0;
}

.profileWidget label {
	font-weight: normal;
}

.profileWidgetAvatar {
	float: left;
	width: 50px;
}

.profileWidgetAvatar img {
	width: 50px;
	height: 50px;
	margin-left: 5px;
}

.profileWidgetAvatar .no_avatar {
	width: 50px;
	height: 50px;
	background: rgba(0,0,0,0.1);
	text-align: center;
	font-size: 1.2em;
	line-height: 50px;
}

.profileWidgetInfo {
	float: left;
	margin-left: 10px;
}

.profileWidgetInfo ul li, .profileWidgetList ul li {
	margin-bottom: 1px;
}

.profileWidgetList {}

.profileWidget strong.badge {
	color: #FFFFFF;
	font-weight: bold;
	float: none;
	vertical-align: middle;
	/* margin-top: -7px; */
}

/* Grid Widget */
.gridWidget {
	text-align: center;
}

.gridWidget a {
	margin: 0 3px 10px;
}


/* Social links */
.sidebarSocial {text-align: center;}

.sidebarSocial a {
	display: inline-block;
	width: 35px; height: 35px;
	line-height: 40px;
	text-align: center;
	margin: 3px;
	color: #FFFFFF;
}

.sidebarSocial a i {
	font-size: 18px;
}

.sidebarSocial a:hover {opacity: 0.9;}

.sidebarSocial a.sbehance {background-color: #191919;}
.sidebarSocial a.sdiscord {background-color: #7289DA;}
.sidebarSocial a.sdribbble {background-color: #EA4C89;}
.sidebarSocial a.setsy {background-color: #F45800;}
.sidebarSocial a.sfacebook {background-color: #4267B2;}
.sidebarSocial a.sgithub {background-color: #24292E;}
.sidebarSocial a.sgoogleplus {background-color: #DB4437;}
.sidebarSocial a.sinstagram {background-color: #d6249f; background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 25%,#d6249f 60%,#285AEB 90%);}
.sidebarSocial a.spaypal {background-color: #004396;}
.sidebarSocial a.spinterest {background-color: #BD081C;}
.sidebarSocial a.sreddit {background-color: #FF4500;}
.sidebarSocial a.sslack {background-color: #3F46AD;}
  .sidebarSocial a.ssnapchat {background: #FFD900;}
.sidebarSocial a.ssoundcloud {background: linear-gradient(to bottom, #ff7500 0%,#ff3400 100%);}
.sidebarSocial a.ssteam {background-color: #171A21;}
.sidebarSocial a.stumblr {background-color: #314358;}
.sidebarSocial a.stwitch {background-color: #6441A4;}
.sidebarSocial a.stwitter {background-color: #1DA1F3;}
.sidebarSocial a.svimeo {background-color: #1EB8EB;}
.sidebarSocial a.syoutube {background-color: #FF0000;}

/* Responsive */
.left-sidebar img,
.right-sidebar img {
	max-width: 100%;
	height: auto;
}

/* Tablets (Horizontal): Hide left sidebar completely, keep right */
@media (min-width: 992px) and (max-width: 1199px) {
	.sidebarsLeft .left-sidebar,
	.left-sidebar {
		display: none !important;
	}
	.sidebarsLeft .sidebarCenter {
		padding-left: 0 !important;
	}
	.sidebarContainer {
		width: 100% !important;
	}
	.middle {
		width: 100% !important;
	}
}

/* Large Tablets: Additional breakpoint for better coverage */
@media (min-width: 1200px) and (max-width: 1366px) {
	.sidebarsLeft .left-sidebar,
	.left-sidebar {
		display: none !important;
	}
	.sidebarsLeft .sidebarCenter {
		padding-left: 0 !important;
	}
	.sidebarContainer {
		width: 100% !important;
	}
	.middle {
		width: 100% !important;
	}
}

/* Tablets (Vertical) and smaller: Hide both sidebars completely */
@media (max-width: 991px) {
	.sidebarsLeft .left-sidebar,
	.left-sidebar {
		display: none !important;
	}
	.sidebarsLeft .sidebarCenter {
		padding-left: 0 !important;
	}
	.sidebarRight .right-sidebar,
	.right-sidebar {
		display: none !important;
	}
	.sidebarRight .sidebarCenter {
		padding-right: 0 !important;
	}
	.sidebarContainer {
		width: 100% !important;
	}
	.middle {
		width: 100% !important;
	}
}

/* Tablets (Portrait): Additional breakpoint for better tablet support */
@media (min-width: 768px) and (max-width: 991px) {
	.sidebarsLeft .left-sidebar,
	.left-sidebar {
		display: none !important;
	}
	.sidebarsLeft .sidebarCenter {
		padding-left: 0 !important;
	}
	.sidebarRight .right-sidebar,
	.right-sidebar {
		display: none !important;
	}
	.sidebarRight .sidebarCenter {
		padding-right: 0 !important;
	}
	.sidebarContainer {
		width: 100% !important;
	}
	.middle {
		width: 100% !important;
	}
}

/* Mobile devices: Hide sidebars completely, keep header/footer blocks */
@media (max-width: 767px) {
    /* Hide sidebars completely */
    .left-sidebar,
    .right-sidebar {
        display: none !important;
    }
    .sidebarCenter {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .sidebarContainer {
        width: 100% !important;
    }
    
    /* Keep header blocks visible and responsive */
    .header-blocks {
        width: 100% !important;
        margin: 10px 0 !important;
    }
    
    /* Keep footer blocks visible and responsive */
    .footer-blocks {
        width: 100% !important;
        margin: 10px 0 !important;
    }
}

/* Small mobile devices: Ensure sidebars are hidden */
@media (max-width: 480px) {
    /* Hide sidebars completely */
    .left-sidebar,
    .right-sidebar {
        display: none !important;
    }
    .sidebarCenter {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .sidebarContainer {
        width: 100% !important;
    }
    
    /* Keep header blocks visible and responsive */
    .header-blocks {
        width: 100% !important;
        margin: 10px 0 !important;
    }
    
    /* Keep footer blocks visible and responsive */
    .footer-blocks {
        width: 100% !important;
        margin: 10px 0 !important;
    }
}

/* Sticky positioning for sidebars */
.left-sidebar.fixed, .right-sidebar.fixed {
	position: sticky;
	top: 0;
	z-index: 100;
}

/* VPN Block Message - фиолетовый стиль
---------------------------------------- */
.vpn-block-message {
	background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
	border: 2px solid #6a1b9a;
	border-radius: 12px;
	padding: 20px;
	margin: 15px auto;
	max-width: 90%;
	color: #ffffff;
	text-align: center;
	box-shadow: 0 8px 25px rgba(156, 39, 176, 0.3), 
	            0 4px 10px rgba(0, 0, 0, 0.1),
	            0 0 0 1px rgba(255, 255, 255, 0.1) inset;
	position: relative;
	overflow: hidden;
	animation: vpnSlideIn 0.6s ease-out;
}

.vpn-block-message::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	animation: vpnShine 3s infinite;
}

.vpn-block-message::after {
	content: '⚠️';
	position: absolute;
	top: -8px;
	right: -8px;
	font-size: 24px;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.vpn-message-content {
	font-weight: 600;
	font-size: 16px;
	line-height: 1.5;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
	position: relative;
	z-index: 1;
}

.vpn-block-message a {
	color: #ffffff;
	text-decoration: underline;
	font-weight: 700;
	transition: all 0.3s ease;
}

.vpn-block-message a:hover {
	color: #f1f2f6;
	text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
	transform: translateY(-1px);
}

/* Анимации */
@keyframes vpnSlideIn {
	from {
		opacity: 0;
		transform: translateY(-20px) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes vpnShine {
	0% {
		left: -100%;
	}
	50% {
		left: 100%;
	}
	100% {
		left: 100%;
	}
}

/* Unified Warning Block - фиолетовый стиль для объединенного блока
---------------------------------------- */
.unified-warning-block {
	display: flex;
	align-items: center;
	padding: 20px;
	margin: 15px auto;
	max-width: 90%;
	border-radius: 12px;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 
	            0 4px 10px rgba(0, 0, 0, 0.1),
	            0 0 0 1px rgba(255, 255, 255, 0.1) inset;
	position: relative;
	overflow: hidden;
	animation: vpnSlideIn 0.6s ease-out;
	transition: all 0.3s ease;
}

.unified-warning-block::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	animation: vpnShine 3s infinite;
}

.warning-icon {
	font-size: 32px;
	margin-right: 15px;
	flex-shrink: 0;
	animation: warningPulse 2s infinite;
}

.warning-content {
	flex: 1;
	position: relative;
	z-index: 1;
}

.warning-title {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 8px;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.warning-message {
	font-size: 14px;
	line-height: 1.5;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.warning-section {
	margin-bottom: 12px;
}

.warning-section:last-child {
	margin-bottom: 0;
}

.warning-subtitle {
	font-weight: 600;
	margin-bottom: 4px;
	font-size: 13px;
	opacity: 0.9;
}

/* VPN Only Block - розовый стиль */
.unified-warning-block.vpn-only {
	background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
	border: 2px solid #ad1457;
	color: #ffffff;
}

/* AdBlock Only Block - розовый стиль */
.unified-warning-block.adblock-only {
	background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
	border: 2px solid #ad1457;
	color: #ffffff;
}

/* Combined Warning - фиолетовый стиль */
.unified-warning-block.combined-warning {
	background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
	border: 2px solid #6a1b9a;
	color: #ffffff;
}

.unified-warning-block.combined-warning .warning-icon {
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.unified-warning-block.combined-warning .warning-section {
	border-left: 3px solid rgba(255, 255, 255, 0.3);
	padding-left: 12px;
	margin-left: 8px;
}

/* Ссылки в предупреждениях */
.unified-warning-block a {
	color: inherit;
	text-decoration: underline;
	font-weight: 600;
	transition: all 0.3s ease;
}

.unified-warning-block a:hover {
	text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
	transform: translateY(-1px);
}

@keyframes warningPulse {
	0%, 100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.1);
	}
}

/* Адаптивный дизайн для мобильных устройств */
@media (max-width: 768px) {
	.vpn-block-message {
		margin: 10px 5px;
		padding: 15px;
		border-radius: 8px;
		max-width: 95%;
	}
	
	.vpn-message-content {
		font-size: 14px;
	}
	
	.vpn-block-message::after {
		width: 32px;
		height: 32px;
		font-size: 18px;
		top: -6px;
		right: -6px;
	}
	
	.unified-warning-block {
		margin: 10px 5px;
		padding: 15px;
		border-radius: 8px;
		max-width: 95%;
		flex-direction: column;
		text-align: center;
	}
	
	.warning-icon {
		margin-right: 0;
		margin-bottom: 10px;
		font-size: 28px;
	}
	
	.warning-title {
		font-size: 16px;
	}
	
	.warning-message {
		font-size: 13px;
	}
	
	.unified-warning-block.combined-warning .warning-section {
		border-left: none;
		border-top: 2px solid rgba(255, 255, 255, 0.3);
		padding-left: 0;
		padding-top: 8px;
		margin-left: 0;
		margin-top: 8px;
	}
}

@media (max-width: 480px) {
	.vpn-block-message {
		margin: 8px 2px;
		padding: 12px;
		border-radius: 6px;
	}
	
	.vpn-message-content {
		font-size: 13px;
		line-height: 1.4;
	}
	
	.vpn-block-message::after {
		width: 28px;
		height: 28px;
		font-size: 16px;
		top: -4px;
		right: -4px;
	}
	
	.unified-warning-block {
		margin: 8px 2px;
		padding: 12px;
		border-radius: 6px;
	}
	
	.warning-icon {
		font-size: 24px;
		margin-bottom: 8px;
	}
	
	.warning-title {
		font-size: 14px;
	}
	
	.warning-message {
		font-size: 12px;
		line-height: 1.4;
	}
	
	.warning-subtitle {
		font-size: 11px;
	}
} 