/* ==========================================================================
   Frutiger Aero + Windows 7 Special Effects, Gloss Sheen & Skeuomorphism
   ========================================================================== */

/* --- Floating Ambient Bubbles Layer --- */
#aero-bubbles-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	pointer-events: none;
	overflow: hidden;
	z-index: 0;
}

.aero-bubble {
	position: absolute;
	border-radius: 50%;
	background: radial-gradient(circle at 32% 28%,
		rgba(255, 255, 255, 0.95) 0%,
		rgba(255, 255, 255, 0.4) 22%,
		rgba(150, 230, 255, 0.22) 48%,
		rgba(180, 255, 220, 0.25) 70%,
		rgba(255, 190, 240, 0.22) 85%,
		rgba(255, 255, 255, 0.7) 100%);
	box-shadow: inset 0 0 12px rgba(0, 210, 255, 0.5),
		inset 0 0 24px rgba(255, 170, 240, 0.35),
		0 0 16px rgba(0, 168, 255, 0.25);
	animation: aeroFloatUp linear infinite;
	opacity: 0.82;
	transition: opacity 0.5s ease;
}

.aero-bubble::after {
	content: "";
	position: absolute;
	top: 15%;
	left: 20%;
	width: 28%;
	height: 18%;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	transform: rotate(-35deg);
	filter: blur(0.5px);
}

.aero-bubble::before {
	content: "";
	position: absolute;
	bottom: 16%;
	right: 22%;
	width: 16%;
	height: 10%;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.65);
	filter: blur(1px);
}

@keyframes aeroFloatUp {
	0% {
		transform: translateY(105vh) translateX(0px) scale(0.95);
		opacity: 0;
	}
	10% {
		opacity: 0.85;
	}
	50% {
		transform: translateY(50vh) translateX(25px) scale(1.05);
	}
	90% {
		opacity: 0.85;
	}
	100% {
		transform: translateY(-15vh) translateX(-20px) scale(1);
		opacity: 0;
	}
}

/* ==========================================================================
   Windows 7 Aero Push Buttons
   ========================================================================== */
.btn,
.btn-theme,
.more-link,
input[type="submit"],
button,
[type=button],
[type=reset],
[type=submit] {
	position: relative;
	background: linear-gradient(180deg,
		rgba(255, 255, 255, 0.92) 0%,
		rgba(255, 255, 255, 0.45) 48%,
		rgba(200, 235, 255, 0.22) 50%,
		rgba(130, 210, 255, 0.45) 100%),
		linear-gradient(180deg, #18dcff 0%, #0084c7 100%) !important;
	border: 1px solid rgba(20, 100, 170, 0.65) !important;
	border-radius: 7px !important; /* Authentic Windows 7 rounded button shape */
	box-shadow:
		0 1px 3px rgba(0, 30, 70, 0.25),
		inset 0 1px 0 rgba(255, 255, 255, 0.95),
		inset 1px 0 0 rgba(255, 255, 255, 0.4),
		inset -1px 0 0 rgba(255, 255, 255, 0.4),
		inset 0 -1px 0 rgba(0, 60, 120, 0.2) !important;
	color: #ffffff !important;
	text-shadow: 0 1px 2px rgba(0, 35, 75, 0.65) !important;
	font-family: 'Segoe UI', 'Frutiger', sans-serif !important;
	font-weight: 700 !important;
	letter-spacing: 0.2px;
	padding: 8px 26px !important;
	cursor: pointer;
	overflow: hidden;
	transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

/* Windows 7 Animated Radial Glow Hover */
.btn:hover,
.btn-theme:hover,
.more-link:hover,
input[type="submit"]:hover,
button:hover,
[type=button]:hover,
[type=submit]:hover {
	border-color: #33ccff !important;
	box-shadow:
		0 0 14px rgba(0, 220, 255, 0.8),
		0 2px 8px rgba(0, 40, 80, 0.35),
		inset 0 0 10px rgba(0, 220, 255, 0.8),
		inset 0 1px 0 #ffffff !important;
	filter: brightness(1.12) !important;
	transform: translateY(-1px) !important;
	color: #ffffff !important;
}

/* Windows 7 Pressed Active State */
.btn:active,
.btn-theme:active,
.more-link:active,
input[type="submit"]:active,
button:active {
	background: linear-gradient(180deg, #0961b8 0%, #1579db 100%) !important;
	box-shadow:
		inset 0 2px 6px rgba(0, 30, 60, 0.65),
		inset 0 0 4px rgba(0, 0, 0, 0.3) !important;
	transform: translateY(1px) !important;
}

/* Windows 7 Dialog Button Pulse */
.btn-theme,
.desk-header .btn-subscribe,
input[type="submit"] {
	animation: win7Pulse 3s infinite alternate;
}

@keyframes win7Pulse {
	0% {
		box-shadow: 0 1px 3px rgba(0, 30, 70, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.95);
	}
	100% {
		box-shadow: 0 0 12px rgba(0, 210, 255, 0.55), inset 0 0 8px rgba(0, 220, 255, 0.4), inset 0 1px 0 #ffffff;
	}
}

/* Shimmer Sweep Animation on Buttons */
.btn::after,
.btn-theme::after,
.more-link::after,
input[type="submit"]::after,
button::after {
	content: "";
	position: absolute;
	top: -50%;
	left: -60%;
	width: 40%;
	height: 200%;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 100%);
	transform: rotate(25deg);
	transition: left 0.75s ease;
	pointer-events: none;
}

.btn:hover::after,
.btn-theme:hover::after,
.more-link:hover::after,
input[type="submit"]:hover::after,
button:hover::after {
	left: 130%;
}

/* ==========================================================================
   Windows 7 Start Orb (Start Button)
   ========================================================================== */
.win7-start-orb {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	position: relative;
	margin-right: 12px;
	cursor: pointer;
	background: radial-gradient(circle at 35% 30%,
		rgba(255,255,255,0.98) 0%,
		rgba(255,255,255,0.3) 30%,
		rgba(0,190,255,0.45) 55%,
		rgba(0,80,180,0.88) 100%),
		linear-gradient(145deg, #18dcff 0%, #0984e3 100%);
	border: 1.5px solid rgba(255, 255, 255, 0.95);
	box-shadow:
		0 0 14px rgba(0, 168, 255, 0.6),
		0 2px 6px rgba(0, 30, 80, 0.3),
		inset 0 2px 3px rgba(255, 255, 255, 0.95),
		inset 0 -2px 4px rgba(0, 30, 80, 0.4);
	transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
	flex-shrink: 0;
}

.win7-start-orb:hover {
	transform: scale(1.12);
	box-shadow:
		0 0 26px rgba(0, 230, 255, 0.95),
		0 0 45px rgba(0, 180, 255, 0.7),
		inset 0 0 12px #ffffff;
}

.win7-start-orb .win7-flag {
	width: 22px;
	height: 22px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-gap: 2.5px;
	transform: rotate(-10deg) skewX(-6deg);
}

.win7-flag span {
	border-radius: 2px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
	display: block;
}
.win7-flag .red { background: linear-gradient(135deg, #ff7675, #d63031); }
.win7-flag .green { background: linear-gradient(135deg, #55efc4, #00b894); }
.win7-flag .blue { background: linear-gradient(135deg, #74b9ff, #0984e3); }
.win7-flag .yellow { background: linear-gradient(135deg, #ffeaa7, #fdcb6e); }

/* ==========================================================================
   Windows 7 Aero Window Titlebars on Cards & Widgets
   ========================================================================== */
.win7-window-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 12px 8px 16px;
	background: linear-gradient(180deg,
		rgba(255, 255, 255, 0.75) 0%,
		rgba(225, 248, 255, 0.45) 48%,
		rgba(180, 235, 255, 0.2) 50%,
		rgba(200, 245, 255, 0.4) 100%);
	border-bottom: 1px solid rgba(255, 255, 255, 0.75);
	border-radius: 20px 20px 0 0;
	margin: -1px -1px 15px -1px;
}

body.dark .win7-window-header {
	background: linear-gradient(180deg,
		rgba(0, 210, 255, 0.25) 0%,
		rgba(6, 26, 48, 0.6) 100%);
	border-bottom: 1px solid rgba(0, 210, 255, 0.35);
}

.win7-window-title {
	font-size: 12px;
	font-weight: 700;
	color: #0b3558;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
	display: flex;
	align-items: center;
	gap: 6px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

body.dark .win7-window-title {
	color: #cbe9fd;
	text-shadow: 0 0 8px rgba(0, 210, 255, 0.5);
}

.win7-window-title .win7-icon {
	font-size: 13px;
	filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

.win7-caption-controls {
	display: inline-flex;
	gap: 4px;
	align-items: center;
}

.win7-btn-ctrl {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 18px;
	border-radius: 3px;
	border: 1px solid rgba(255, 255, 255, 0.85);
	background: linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(220,240,255,0.3) 100%);
	color: #0c3558;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
	transition: all 0.2s ease;
	user-select: none;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

body.dark .win7-btn-ctrl {
	border-color: rgba(0, 210, 255, 0.4);
	background: rgba(8, 30, 52, 0.7);
	color: #bce4fc;
}

.win7-btn-ctrl:hover {
	background: linear-gradient(180deg, rgba(200,245,255,0.95) 0%, rgba(0,180,255,0.85) 100%);
	color: #ffffff;
	border-color: #00d2d3;
	box-shadow: 0 0 10px rgba(0, 210, 255, 0.7);
}

.win7-btn-close:hover {
	background: linear-gradient(180deg, #ff7675 0%, #d63031 50%, #c0392b 100%) !important;
	border-color: #e74c3c !important;
	color: #ffffff !important;
	box-shadow: 0 0 12px rgba(231, 76, 60, 0.9) !important;
}

/* ==========================================================================
   Realistic 3D Water Droplets
   ========================================================================== */
.aero-droplet {
	position: absolute;
	border-radius: 50%;
	background: transparent;
	box-shadow:
		inset 2px 3px 4px rgba(0, 40, 80, 0.25),
		inset -2px -2px 4px rgba(255, 255, 255, 0.95),
		0 2px 5px rgba(0, 30, 60, 0.18);
	pointer-events: none;
	z-index: 5;
}

.aero-droplet::after {
	content: "";
	position: absolute;
	top: 18%;
	left: 22%;
	width: 32%;
	height: 25%;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 50%;
	transform: rotate(-30deg);
	filter: blur(0.3px);
}

/* ==========================================================================
   Frutiger Aero Eco-Tech Badges & Water Accents
   ========================================================================== */
.aero-eco-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 14px;
	background: linear-gradient(180deg,
		rgba(255,255,255,0.85) 0%,
		rgba(255,255,255,0.3) 48%,
		rgba(0,0,0,0.03) 50%,
		rgba(255,255,255,0.2) 100%),
		linear-gradient(180deg, #2ed573 0%, #10ac84 100%);
	border-radius: 30px;
	border: 1px solid rgba(255, 255, 255, 0.9);
	box-shadow: 0 3px 10px rgba(16, 172, 132, 0.35), inset 0 1px 0 #fff;
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	text-shadow: 0 1px 2px rgba(0, 40, 80, 0.4);
}

/* Card Glass Reflection Sheen */
.bs-card-box,
.wd-back,
.bs-blog-post {
	position: relative;
}

.bs-card-box::before,
.wd-back::before,
.bs-blog-post::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 38%;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.06) 85%, rgba(255, 255, 255, 0) 100%);
	pointer-events: none;
	border-radius: 20px 20px 60% 60% / 20px 20px 15px 15px;
	z-index: 2;
}

body.dark .bs-card-box::before,
body.dark .wd-back::before,
body.dark .bs-blog-post::before {
	background: linear-gradient(180deg, rgba(0, 220, 255, 0.22) 0%, rgba(0, 220, 255, 0.03) 85%, rgba(0, 220, 255, 0) 100%);
}

/* Image Gloss Frame */
.bs-blog-thumb,
.bs-post-thumb {
	position: relative;
	overflow: hidden;
	border-radius: var(--bxbra);
}

.bs-blog-thumb img,
.bs-post-thumb img {
	transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bs-blog-thumb:hover img,
.bs-post-thumb:hover img {
	transform: scale(1.04);
}

/* Site Title Polish */
.site-title {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.site-title a {
	display: inline-block;
	transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.site-title a:hover {
	transform: scale(1.03);
	text-shadow: 0 0 20px rgba(0, 210, 255, 0.75), 0 2px 4px rgba(255, 255, 255, 0.9);
}
