﻿/* =========== © 2024 Centroarts.com - https://honista.com =========== */

:root {
	--smart-bg: var(--color-body);
	--smart-bg-rgb: var(--color-body-rgb);
	--smart-color-text: var(--color-text);
	--smart-radius: 24px;
}

@media (min-width: 1200px) {
	.str-side-img {
		display: grid; 
		grid-template-columns: repeat(auto-fill, minmax(432px, 100%));
		grid-template-areas: 
		"sbf si"
		"sbl si";
	}
	.str-side-img .section-block:first-child { grid-area: sbf; }
	.str-side-img .section-block:last-child { grid-area: sbl; }
	.str-side-img .side-img { grid-area: si; width: 100%; max-width: 524px; padding-left: 72px; }
	.img-smart { position: sticky; top: 60px; width: 452px; }
	.honista-smart { max-width: 376px; }

	:dir(rtl) .str-side-img .side-img { padding-right: 72px; padding-left: 0; }
}
@media (min-width: 1450px) {
	.str-side-img .side-img { max-width: 596px; padding-left: 144px; }

	:dir(rtl) .str-side-img .side-img { padding-right: 144px; padding-left: 0; }
}

.img-smart {
	pointer-events: none; user-select: none;
	display: flex; justify-content: flex-end; min-height: 640px;
	direction: ltr;
}
:dir(rtl) .img-smart { justify-content: flex-start; }

.honista-smart {
	position: relative;
	border-radius: var(--smart-radius);
}
.honista-smart::after {
	content: ""; border-radius: inherit; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(var(--color-text-rgb), 0.1);
	background-color: var(--smart-bg);
}

.honista-smart-head { padding: 8px; position: relative; z-index: 1; }
.honista-smart-head img { width: 100%; height: auto; }

.honista-smart-status { overflow: hidden; position: relative; z-index: 1; }
.honista-smart-status-list { display: flex; padding: 8px 16px; }

.smart-status-item { position: relative; max-width: 90px; min-width: 90px; height: 90px; padding: 5px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--color-primary); margin-right: 12px; }
.smart-status-item:first-child { box-shadow: inset 0 0 0 2px rgba(var(--color-second-rgb), 0.3); }
.smart-status-item:last-child { margin-right: 0; }

.smart-status-plus {
	position: absolute; bottom: 8px; right: 4px;
	display: none; width: 20px; height: 20px; border-radius: 50%; background-color: var(--color-second);
	align-items: center; justify-content: center;
}
.smart-status-item:first-child .smart-status-plus { display: flex !important; }
.smart-status-item img { width: 100%; height: 100%; border-radius: inherit; background-color: rgba(var(--color-text-rgb), 0.1); }

.honista-smart-cont { margin-top: 94px; position: relative; }
.honista-smart-post-list { position: relative; z-index: 1; }
.honista-smart-post-list .honista-smart-post:nth-child(1) {
	position: absolute; left: 0; top: 0; transform: translate(-72px, -72px); z-index: 2;
}
.honista-smart-post-list .honista-smart-post:nth-child(2) { position: absolute; left: 0; top: 0; transform: translate(-36px, -36px); z-index: 1; }
:dir(rtl) .honista-smart-post-list .honista-smart-post:nth-child(1) { transform: translate(72px, -72px); }
:dir(rtl) .honista-smart-post-list .honista-smart-post:nth-child(2) { transform: translate(36px, -36px); }

@media (min-width: 1200px) {
	.honista-smart-post-list .honista-smart-post:nth-child(1)::before {
		content: ""; position: absolute; inset: -8px; box-shadow: inset 0 0 0 1px rgba(var(--color-primary-rgb), 0.1);
		border-radius: calc(var(--smart-radius) + 8px);
	}
}

.honista-smart-post {
	position: relative; border-radius: var(--smart-radius); background-color: var(--smart-bg); color: var(--smart-color-text); width: 100%;
	box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.2); pointer-events: none; user-select: none;
}
.honista-smart-post::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(var(--color-primary-rgb), 0.1); }

.smart-post-head { padding: 16px 20px; display: flex; align-items: center; font-size: var(--text-sm-size); }
.smart-post-head img { width: 40px; height: 40px; border-radius: 50%; margin-right: 12px; }
.smart-post-head-name { font-weight: bold; flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.smart-post-head-icon { padding: 8px; width: 40px; height: 40px; color: var(--color-primary); }
.smart-post-head-icon .ic { width: 24px; height: 24px; }

.smart-post-photo { border-radius: inherit; position: relative; }
.honista-smart-post:not(.honista-smart-post-status) .smart-post-photo { border-top-left-radius: 0; border-top-right-radius: 0; }
.smart-post-photo::before { content: ""; padding-top: 100%; width: 1px; margin-left: -1px; }
.smart-post-photo .ic { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; transform: translate(-50%, -50%); color: var(--color-white); }

.honista-smart-icons { position: absolute; right: -16px; top: -36px; z-index: 1; }
.honista-smart-icon {
	display: flex; align-items: center; justify-content: center; width: 100px; height: 100px; border-radius: 50%;
	background-color: var(--smart-bg); box-shadow: 0 12px 32px -6px rgba(var(--color-primary-rgb), 0.32);
}
.honista-smart-icon + .honista-smart-icon { margin-top: 20px; }
.honista-smart-icon:first-child { background-color: var(--color-primary); color: var(--color-white); }

.honista-smart-bg { position: absolute; z-index: -1; inset: 0; }
.honista-smart-circle:first-child { position: absolute; left: -120px; top: -40px; opacity: .3; }
.honista-smart-circle:last-child { position: absolute; right: -36px; bottom: -40px; opacity: .3; }

:dir(rtl) .honista-smart-icons { left: -16px; right: auto; }
:dir(rtl) .honista-smart-circle:first-child { right: -120px; left: auto; }
:dir(rtl) .honista-smart-circle:last-child { left: -36px; right: auto; }

@media (min-width: 1450px) {
	.honista-smart-circle:last-child { right: -60px; }
	:dir(rtl) .honista-smart-circle:last-child { left: -60px; right: auto; }
}
@media (min-width: 1550px) {
	.honista-smart-circle:last-child { right: -118px; }
	:dir(rtl) .honista-smart-circle:last-child { left: -118px; right: auto; }
}
@media (max-width: 1199px) {
	.side-img {
		position: relative; margin: 0 calc(var(--wrp-pad) / -1); margin-top: var(--block-gap) !important;
		display: flex; padding: 0 var(--wrp-pad);
		height: 440px; overflow: hidden; padding-top: 32px;
	}
	.side-img::after { content: ""; position: absolute; left: 0; bottom: 0; right: 0; height: 0; border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.1); }
	.honista-smart { max-width: 360px; }

	.honista-smart-circle:first-child { height: auto; top: -32px; }
	.honista-smart-circle:last-child { display: none; }

	.honista-smart-cont { margin-top: 12px; }

	.honista-smart-icons { display: flex; }
	.honista-smart-icon { margin-top: 0 !important; }
	.honista-smart-icon + .honista-smart-icon { margin-left: 16px; }
}
@media (min-width: 400px) and (max-width: 1199px) {
	.honista-smart-circle:first-child { left: -64px; width: 1200px; }
	.honista-smart-post-list .honista-smart-post:nth-child(1) { left: 32px; transform: translate(200%, -200px); }
	.honista-smart-post-list .honista-smart-post:nth-child(2) { left: 16px; transform: translate(100%, -160px); }
	.honista-smart-icons { right: -92px; top: 56px; }

	:dir(rtl) .honista-smart-circle:first-child { right: -64px; left: auto; }
	:dir(rtl) .honista-smart-post-list .honista-smart-post:nth-child(1) { right: 32px; left: auto; transform: translate(-200%, -200px); }
	:dir(rtl) .honista-smart-post-list .honista-smart-post:nth-child(2) { right: 16px; left: auto; transform: translate(-100%, -160px); }
	:dir(rtl) .honista-smart-icons { left: -92px; right: auto; }
}
@media (max-width: 679px) {
	.honista-smart { max-width: 324px; }
	.smart-status-item { min-width: 82px; max-width: 82px; height: 82px; }
}
@media (max-width: 399px) {
	.side-img { height: 540px; justify-content: center; }

	.honista-smart-circle:first-child { left: 50% !important; transform: translateX(-50%) !important; width: 120vw; height: auto; }
	.honista-smart-post-list .honista-smart-post:nth-child(1) { left: 16px !important; transform: translate(20%, 0) !important; }
	.honista-smart-post-list .honista-smart-post:nth-child(2) { left: 0 !important; transform: translate(-80%, 0) !important; }
	.honista-smart-post-list .honista-smart-post:nth-child(3) { left: 32px !important; transform: translate(120%, 0) !important; }
	.honista-smart-icons { left: auto !important; right: 50% !important; top: 160px; transform: translateX(50%) !important; }
}

/* Mods */
.honista-smart-post-photo .smart-post-photo::before { padding-top: 110%; }
.honista-smart-post-video .smart-post-photo::before { padding-top: 80%; }
.honista-smart-post-dark {
	--smart-bg: var(--section-dark-bg);
	--smart-color-text: var(--section-dark-text);
}
.honista-smart-post-status { --smart-color-text: var(--section-dark-text); }
.honista-smart-post-status .smart-post-head { position: absolute; top: 0; left: 0; right: 0; z-index: 1; }
.honista-smart-post-status .smart-post-head::before { content: ""; position: absolute; margin-top: 0; margin-left: -5px; width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--color-primary); }
.honista-smart-post-status .smart-post-head-icon { color: inherit; }
.honista-smart-post-status .smart-post-photo::before { padding-top: 110%; }

/* Illustrate Section */
.section-illustrate { position: relative; height: 540px; overflow: hidden; user-select: none; pointer-events: none; direction: ltr; }
.section-illustrate::after { content: ""; position: absolute; border-bottom: 1px solid; height: 0; bottom: 0; left: 0; width: 100%; opacity: .1; }

.cols-illustrate { display: flex; justify-content: space-between; }
.col-illustrate + .col-illustrate { margin-left: 16px; }
.col-illustrate { flex: 1; max-width: 376px; min-width: 360px; }
.col-illustrate-item:not(:first-child) { margin-top: 16px; }
.col-illustrate:nth-child(1) { padding-top: 40px; }
.col-illustrate:nth-child(3) { padding-top: 72px; }

@media (min-width: 1240px) {
	.col-illustrate-item:not(:first-child) { margin-top: 48px; }
}

@media (max-width: 679px) {
	.col-illustrate { min-width: 324px; }
	.col-illustrate:nth-child(3) { display: none; }
}
@media (max-width: 499px) {
	.col-illustrate:nth-child(1) .honista-smart-switch { display: none; }
	.honista-smart-post-photo .smart-post-photo::before { padding-top: 160%; }
	.col-illustrate:nth-child(1) { margin-left: -200px; }
}


.col-illustrate-bg { pointer-events: none; position: absolute; inset: 0; z-index: -1; overflow: hidden; text-align: center; }
.col-illustrate-bg img { width: 1470px; height: 1470px; opacity: .3; transform: translate(-84px, 84px); }

.honista-smart-switch {
	border-radius: var(--smart-radius); background-color: rgba(var(--smart-bg-rgb), 0.8);
	box-shadow: inset 0 0 0 1px rgba(var(--color-text-rgb), 0.1); padding: 24px;
	display: flex; user-select: none; pointer-events: none;
	backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.smart-switch-icon { width: 40px; height: 40px; margin-right: 16px; }
.smart-switch-icon .ic { width: inherit; height: inherit; display: block; }

.smart-switch-cont { flex: 1 1 auto; }
.smart-switch-title { margin-bottom: 4px; font-size: var(--text-size); line-height: 1.25; }

.smart-switch-control { position: relative; margin-left: 16px; max-width: 40px; min-width: 40px; height: 24px; border-radius: 12px; background-color: var(--color-primary); }
.smart-switch-control::after {
	content: ""; display: block; border-radius: 50%; margin: 3px; position: absolute; left: 0; transform: translateX(16px);
	width: 18px; height: 18px; background-color: var(--smart-bg); box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
}