/**
 * Strakture Admin Page Styles
 */

/* Variables */
:root {
	--strakture-gray-0: #f6f7f7;
	--strakture-gray-2: #f0f0f1;
	--strakture-gray-5: #dcdcde;
	--strakture-gray-20: #a7aaad;
	--strakture-gray-50: #646970;
	--strakture-gray-80: #2c3338;
	--strakture-blue-20: #72aee6;
	--strakture-blue-60: #135e96;
	--strakture-green-30: #00ba37;
	--strakture-red-50: #d63638;
}

/* Admin Page Reset */
.toplevel_page_strakture #wpcontent {
	padding: 0;
}

/* Header */
.strakture-page-header {
	padding: 10px 20px;
	height: 50px;
	background-color: #fff;
}

.strakture-page-header__container {
	margin: 0 auto;
	height: 100%;
	max-width: 1140px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.strakture-page-header__branding {
	display: flex;
	align-items: center;
}

.strakture-page-header__branding a {
	display: flex;
	align-items: center;
	text-decoration: none;
}

.strakture-page-header__logo {
	max-width: 120px;
	vertical-align: middle;
}

.strakture-version {
	background-color: var(--strakture-gray-2);
	padding: 3px 8px;
	border-radius: 5px;
	margin-left: 10px;
	font-size: 12px;
	color: var(--strakture-gray-50);
}

.strakture-page-header__tagline {
	color: var(--strakture-gray-50);
	font-size: 13px;
}

.strakture-page-header__tagline-text a {
	text-decoration: none;
	color: var(--strakture-blue-60);
}

.strakture-page-header__tagline-text a:hover {
	text-decoration: underline;
}

/* Container */
.strakture-container {
	max-width: 1140px;
	padding-left: 20px;
	padding-right: 20px;
	margin: 25px auto 20px;
}

/* Grid Layout */
.strakture-grid {
	display: flex;
	flex-wrap: wrap;
	margin-left: -12px;
	margin-right: -12px;
}

.strakture-grid-content {
	margin-bottom: 24px;
}

.strakture-grid-sidebar {
	max-width: 100%;
	flex: 1;
}

@media screen and (min-width: 783px) {
	.strakture-grid-content,
	.strakture-grid-sidebar {
		flex: 1 0 0%;
		max-width: 100%;
		padding: 0 12px;
	}

	.strakture-grid-sidebar {
		width: 25%;
		flex: 0 0 25%;
		padding: 0 12px;
	}
}

/* Main Content */
.strakture-body {
	background-color: #fff;
	padding: 40px;
	border-radius: 6px;
}

.strakture-body h3 {
	margin-top: 1.5em;
}

.strakture-title {
	font-size: 1.5rem;
	line-height: 1.2;
	margin: 0 0 16px 0;
	padding: 0;
	color: var(--strakture-gray-80);
}

.strakture-intro-text {
	font-size: 1.1875rem;
	margin-bottom: 1.5rem;
	color: var(--strakture-gray-50);
	line-height: 1.5;
}

.strakture-body .button-hero {
	margin-right: 12px;
	margin-bottom: 12px;
}

/* Video Embed */
.strakture-video-embed {
	width: 100%;
	margin-bottom: 1.5rem;
}

.strakture-video-embed__link {
	display: block;
	position: relative;
}

.strakture-video-embed__link:hover .strakture-video-embed__play svg path:first-child {
	fill: #cc0000;
}

.strakture-video-embed img {
	width: 100%;
	height: auto;
	display: block;
}

.strakture-video-embed__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	justify-content: center;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
	transition: filter 0.2s ease;
}

.strakture-video-embed__link:hover .strakture-video-embed__play {
	filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.strakture-video-embed__play svg path:first-child {
	transition: fill 0.2s ease;
}

/* Widgets */
.strakture-widget {
	background-color: #fff;
	padding: 24px;
	margin-bottom: 24px;
	border-radius: 6px;
}

.strakture-widget-title {
	margin-top: 0;
	margin-bottom: 24px;
	font-size: 14px;
	font-weight: 600;
	color: var(--strakture-gray-80);
}

.strakture-widget p {
	color: var(--strakture-gray-50);
	font-size: 13px;
	line-height: 1.5;
	margin: 0 0 16px 0;
}

/* Video Tutorials */
.strakture-video-tutorials {
	list-style: none;
	margin: 0;
	padding: 0;
}

.strakture-video-tutorials__item {
	margin-bottom: 16px;
}

.strakture-video-tutorials__item:last-child {
	margin-bottom: 0;
}

.strakture-video-tutorials__url {
	display: block;
	position: relative;
	border-radius: 5px;
	overflow: hidden;
	text-decoration: none;
	transition: ease-in-out box-shadow 0.2s;
}

.strakture-video-tutorials__url:hover {
	box-shadow: 2px 6px 16px var(--strakture-gray-5);
}

.strakture-video-tutorials__url:hover::after {
	background-color: rgba(0, 0, 0, 0.1);
}

.strakture-video-tutorials__url::after {
	display: block;
	content: "";
	position: absolute;
	background-color: rgba(0, 0, 0, 0.2);
	bottom: 0;
	right: 0;
	top: 0;
	left: 0;
	width: 100%;
	transition: ease-in-out background-color 0.2s;
}

.strakture-video-tutorials__img {
	width: 100%;
	display: block;
}

.strakture-video-tutorials__label {
	position: absolute;
	z-index: 1;
	top: 50%;
	left: 50%;
	white-space: nowrap;
	transform: translate(-50%, -50%);
	background-color: #fff;
	color: var(--strakture-gray-80);
	padding: 8px 12px;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.strakture-widget-video-tutorials__more-videos {
	margin-top: 24px;
	text-align: center;
}

/* Useful Links */
.strakture-useful-links {
	margin: 0;
}

.strakture-useful-links a {
	text-decoration: none;
}

.strakture-addon-list-item {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	align-content: center;
	justify-content: space-between;
	padding: 12px 0;
	margin-bottom: 0;
	border-top: 1px solid #e6e6e6;
}

.strakture-addon-list-item-icon {
	color: var(--strakture-green-30);
	margin-left: -6px;
	margin-right: 3px;
}

.strakture-pro-label {
	padding: 2px 8px;
	margin-left: 6px;
	background-color: var(--strakture-green-30);
	font-weight: 500;
	font-size: 11px;
	color: #fff;
	border-radius: 13px;
}

/* Upgrade Widget */
.strakture-widget-upgrade {
	background: linear-gradient(150deg, #1a1a2e 0%, #16213e 100%);
	border-top: 3px solid var(--strakture-green-30);
	position: relative;
	overflow: hidden;
}

.strakture-widget-upgrade::after {
	content: '';
	position: absolute;
	bottom: -30px;
	right: -30px;
	width: 120px;
	height: 120px;
	border-radius: 50%;
	background: rgba(0, 186, 55, 0.08);
	pointer-events: none;
}

.strakture-widget-upgrade .strakture-widget-title {
	color: #fff;
	margin-bottom: 8px;
}

.strakture-widget-upgrade > p {
	color: rgba(255, 255, 255, 0.65);
	margin-bottom: 16px;
}

.strakture-upgrade-features {
	list-style: none;
	margin: 0 0 20px 0;
	padding: 0;
}

.strakture-upgrade-features__item {
	position: relative;
	padding: 5px 0 5px 22px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 13px;
	line-height: 1.4;
}

.strakture-upgrade-features__item::before {
	content: '✓';
	position: absolute;
	left: 0;
	top: 5px;
	color: var(--strakture-green-30);
	font-weight: 700;
	font-size: 13px;
	line-height: 1.4;
}

.strakture-upgrade-btn {
	display: block;
	text-align: center;
	background-color: var(--strakture-green-30) !important;
	border-color: #00a832 !important;
	color: #fff !important;
	font-weight: 600 !important;
	box-shadow: none !important;
	text-shadow: none !important;
}

.strakture-upgrade-btn:hover {
	background-color: #00a832 !important;
	border-color: #009629 !important;
	color: #fff !important;
}

/* Notifications */
.strakture-notice {
	padding: 1em;
	display: none;
}

.strakture-notification {
	margin: 20px 0 10px;
	padding: 15px;
	border-radius: 3px;
	border: 1px solid var(--strakture-gray-5);
	border-left-width: 4px;
	border-left-color: var(--strakture-blue-20);
}

.strakture-notification p {
	margin: 0;
	font-size: 1rem;
}

.strakture-notification--success {
	border-left-color: var(--strakture-green-30);
}

.strakture-notification--error {
	border-left-color: var(--strakture-red-50);
}
