/* ============================================
   Facebook Follow Modal — zemeunvalsts.lv
   Scoped resets to override global main.css
   ============================================ */

/* Backdrop */
.fb-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.45);
	z-index: 99998;
	opacity: 0;
	visibility: hidden;
	-webkit-transition: opacity 0.4s ease, visibility 0.4s ease;
	transition: opacity 0.4s ease, visibility 0.4s ease;
}
.fb-modal-overlay.visible {
	opacity: 1;
	visibility: visible;
}

/* Modal card */
.fb-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 99999;
	width: 380px;
	max-width: 90vw;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	-webkit-transform: translate(-50%, -48%);
	-ms-transform: translate(-50%, -48%);
	transform: translate(-50%, -48%);
	-webkit-transition: opacity 0.4s ease, visibility 0.4s ease, -webkit-transform 0.4s ease;
	transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}
.fb-modal.visible {
	opacity: 1;
	visibility: visible;
	-webkit-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
}

/* ---- Scoped resets for everything inside .fb-modal ---- */
.fb-modal *,
.fb-modal *:before,
.fb-modal *:after {
	box-sizing: border-box;
}
.fb-modal h3,
.fb-modal p,
.fb-modal a,
.fb-modal button,
.fb-modal i {
	margin: 0;
	padding: 0;
	border: 0;
	box-shadow: none;
	background: none;
	text-decoration: none;
	text-transform: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	height: auto;
	line-height: normal;
	white-space: normal;
	font-weight: normal;
}

/* Top accent strip — hidden */
.fb-modal-accent {
	display: none;
}

/* Close X — high specificity to beat global button styles */
button.fb-modal-close,
.fb-modal button.fb-modal-close,
.fb-modal .fb-modal-close {
	position: absolute !important;
	top: 14px !important;
	right: 14px !important;
	width: 24px !important;
	height: 24px !important;
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	box-shadow: none !important;
	background: none !important;
	cursor: pointer;
	opacity: 0.35;
	z-index: 2;
	line-height: 1 !important;
	-webkit-transition: opacity 0.2s;
	transition: opacity 0.2s;
}
button.fb-modal-close:hover,
.fb-modal button.fb-modal-close:hover {
	opacity: 0.7;
	box-shadow: none !important;
	background: none !important;
}
button.fb-modal-close:before,
button.fb-modal-close:after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 1.5px;
	background: #999;
	border-radius: 1px;
}
button.fb-modal-close:before {
	-webkit-transform: translate(-50%, -50%) rotate(45deg);
	transform: translate(-50%, -50%) rotate(45deg);
}
button.fb-modal-close:after {
	-webkit-transform: translate(-50%, -50%) rotate(-45deg);
	transform: translate(-50%, -50%) rotate(-45deg);
}

/* Body content area */
.fb-modal-body {
	padding: 32px 30px 28px;
	text-align: center;
}

/* Facebook icon circle */
.fb-modal-icon {
	width: 52px;
	height: 52px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: #3b5998;
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-webkit-align-items: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-webkit-justify-content: center;
	-ms-flex-pack: center;
	justify-content: center;
}
.fb-modal-icon .fa {
	font-size: 24px;
	color: #fff !important;
	line-height: 1;
}

/* Heading */
.fb-modal-body h3 {
	font-family: 'Raleway', 'Open Sans', sans-serif;
	font-weight: 600;
	font-size: 19px;
	color: #2c2c2c !important;
	margin: 0 0 10px;
	letter-spacing: 0.2px;
	line-height: 1.25;
}

/* Description */
.fb-modal-body p {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 14px;
	line-height: 1.6;
	color: #777 !important;
	margin: 0 0 20px;
}

/* Follow button — full override of global button styles */
.fb-modal-body a.fb-modal-follow-btn,
a.fb-modal-follow-btn,
a.fb-modal-follow-btn:hover,
a.fb-modal-follow-btn:active,
a.fb-modal-follow-btn:visited {
	display: inline-block;
	height: auto;
	line-height: 1;
	padding: 13px 30px;
	background: #3b5998;
	color: #fff !important;
	font-family: 'Open Sans', Arial, sans-serif;
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: 0.3px;
	text-decoration: none;
	border-radius: 6px;
	border: 0;
	box-shadow: none;
	cursor: pointer;
	-webkit-transition: background 0.2s ease;
	transition: background 0.2s ease;
	white-space: nowrap;
}
a.fb-modal-follow-btn:hover {
	background: #2d4373;
}
.fb-modal-follow-btn .fa {
	margin-right: 7px;
	font-size: 14px;
	color: #fff !important;
	line-height: 1;
}

/* "Maybe later" — full override of global button styles */
.fb-modal-body button.fb-modal-later,
button.fb-modal-later,
button.fb-modal-later:hover,
button.fb-modal-later:active {
	display: block;
	width: auto;
	height: auto;
	line-height: 1;
	margin: 16px auto 0;
	padding: 6px 0;
	background: none;
	border: 0;
	box-shadow: none;
	font-family: 'Open Sans', Arial, sans-serif;
	font-size: 12.5px;
	font-weight: 400;
	color: #bbb !important;
	cursor: pointer;
	text-align: center;
	-webkit-transition: color 0.2s ease;
	transition: color 0.2s ease;
}
button.fb-modal-later:hover {
	color: #999 !important;
}

/* ---- Mobile ---- */
@media screen and (max-width: 480px) {
	.fb-modal {
		width: 92%;
		max-width: 340px;
	}
	.fb-modal-body {
		padding: 26px 18px 20px;
	}
	.fb-modal-body h3 {
		font-size: 17px;
	}
	.fb-modal-body p {
		font-size: 13px;
		margin-bottom: 16px;
	}
	.fb-modal-icon {
		width: 46px;
		height: 46px;
		margin-bottom: 14px;
	}
	.fb-modal-icon .fa {
		font-size: 20px;
	}
	a.fb-modal-follow-btn {
		padding: 12px 24px;
		font-size: 13px;
	}
}
