/*
Theme Name:   Aistros Celestial
Theme URI:    https://aistros.com/themes/celestial
Description:  Light celestial theme for Aistros. Features soft sky blues, ethereal clouds, and serene heavenly aesthetics perfect for spiritual and wellness-focused astrology websites.
Author:       hypo69
Author URI:   https://github.com/hypo69
Template:     aistros
Version:      1.0.0
License:      GPL v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  aistros-celestial
Tags:         astrology, horoscope, light-theme, celestial, sky, blue, serene
*/

/* ========================================================================
   Celestial Theme - Heavenly Sky Colors
   ======================================================================== */

:root {
	--celestial-sky-light: #e3f2fd;
	--celestial-sky: #90caf9;
	--celestial-sky-deep: #42a5f5;
	--celestial-azure: #2196f3;
	--celestial-indigo: #5c6bc0;
	--celestial-lavender: #9fa8da;
	--celestial-cloud: #fafafa;
	--celestial-text: #1e3a5f;
	--celestial-text-soft: #546e7a;
}

/* Body & Background */
body {
	background: linear-gradient(180deg, #e3f2fd 0%, #ffffff 50%, #e8eaf6 100%);
	background-attachment: fixed;
	color: var(--celestial-text) !important;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
}

/* Animated Cloud Background */
body::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image:
		radial-gradient(ellipse at 20% 30%, rgba(255, 255, 255, 0.8) 0%, transparent 50%),
		radial-gradient(ellipse at 70% 60%, rgba(255, 255, 255, 0.6) 0%, transparent 50%),
		radial-gradient(ellipse at 40% 80%, rgba(255, 255, 255, 0.7) 0%, transparent 50%),
		radial-gradient(ellipse at 85% 20%, rgba(255, 255, 255, 0.5) 0%, transparent 50%);
	background-size: 200% 200%;
	animation: float-clouds 60s ease-in-out infinite;
	pointer-events: none;
	z-index: 0;
}

@keyframes float-clouds {
	0%, 100% {
		background-position: 0% 0%, 100% 100%, 50% 50%, 80% 20%;
	}
	50% {
		background-position: 100% 50%, 0% 50%, 60% 60%, 70% 30%;
	}
}

/* Sun/Moon decoration */
body::after {
	content: '☀';
	position: fixed;
	top: 80px;
	right: 100px;
	font-size: 80px;
	color: rgba(255, 193, 7, 0.3);
	animation: celestial-glow 4s ease-in-out infinite;
	pointer-events: none;
	z-index: 0;
}

@keyframes celestial-glow {
	0%, 100% {
		opacity: 0.3;
		transform: scale(1);
	}
	50% {
		opacity: 0.5;
		transform: scale(1.1);
	}
}

/* Ensure content is above decorations */
#page {
	position: relative;
	z-index: 1;
}

/* Header */
.site-header {
	background: rgba(255, 255, 255, 0.95);
	border-bottom: 2px solid var(--celestial-sky);
	backdrop-filter: blur(10px);
	box-shadow: 0 2px 20px rgba(33, 150, 243, 0.1);
}

.site-title a {
	color: var(--celestial-azure) !important;
	font-weight: 600;
	text-shadow: 0 1px 2px rgba(33, 150, 243, 0.2);
}

.site-description {
	color: var(--celestial-text-soft);
	font-size: 0.95em;
}

/* Navigation */
.main-navigation a {
	color: var(--celestial-text-soft) !important;
	transition: all 0.3s ease;
	position: relative;
}

.main-navigation a::before {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--celestial-sky), var(--celestial-azure));
	transition: width 0.3s ease;
}

.main-navigation a:hover {
	color: var(--celestial-azure) !important;
}

.main-navigation a:hover::before {
	width: 100%;
}

/* Content Areas */
.site-main {
	background: rgba(255, 255, 255, 0.95);
	border-radius: 20px;
	padding: 50px;
	margin: 30px 0;
	box-shadow:
		0 10px 40px rgba(33, 150, 243, 0.08),
		0 0 0 1px rgba(33, 150, 243, 0.1);
	backdrop-filter: blur(5px);
}

/* Headings */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
	color: var(--celestial-azure);
	font-weight: 600;
	margin-top: 30px;
	margin-bottom: 20px;
	position: relative;
	padding-left: 20px;
}

.entry-content h1::before,
.entry-content h2::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 4px;
	height: 70%;
	background: linear-gradient(180deg, var(--celestial-sky), var(--celestial-azure));
	border-radius: 2px;
}

/* Links */
.entry-content a,
a:not(.wp-block-button__link) {
	color: var(--celestial-azure) !important;
	text-decoration: none;
	transition: all 0.3s ease;
	border-bottom: 1px solid transparent;
}

.entry-content a:hover,
a:not(.wp-block-button__link):hover {
	color: var(--celestial-indigo) !important;
	border-bottom-color: var(--celestial-sky);
}

/* Sidebar */
#secondary {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(227, 242, 253, 0.8));
	border-radius: 20px;
	padding: 30px;
	box-shadow: 0 8px 30px rgba(33, 150, 243, 0.08);
	border: 1px solid rgba(33, 150, 243, 0.1);
}

.widget {
	margin-bottom: 35px;
	padding: 20px;
	background: white;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(33, 150, 243, 0.05);
}

.widget-title {
	color: var(--celestial-azure);
	font-size: 1.2em;
	font-weight: 600;
	margin-bottom: 15px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--celestial-sky-light);
	position: relative;
}

.widget-title::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 50px;
	height: 2px;
	background: linear-gradient(90deg, var(--celestial-sky), transparent);
}

/* Footer */
.site-footer {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(227, 242, 253, 0.9));
	border-top: 2px solid var(--celestial-sky);
	color: var(--celestial-text-soft);
	padding: 40px 0;
	backdrop-filter: blur(10px);
}

.site-footer a {
	color: var(--celestial-azure) !important;
	font-weight: 500;
}

.site-footer a:hover {
	color: var(--celestial-indigo) !important;
}

/* Buttons */
button,
.wp-block-button__link,
input[type="submit"],
input[type="button"] {
	background: linear-gradient(135deg, var(--celestial-sky), var(--celestial-azure));
	color: white !important;
	border: none;
	padding: 14px 32px;
	border-radius: 30px;
	cursor: pointer;
	font-weight: 600;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(33, 150, 243, 0.25);
}

button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(33, 150, 243, 0.35);
	background: linear-gradient(135deg, var(--celestial-azure), var(--celestial-indigo));
}

/* Code Blocks (Prism.js) */
pre[class*="language-"] {
	background: #f8fbff !important;
	border: 2px solid var(--celestial-sky-light);
	border-radius: 12px;
	box-shadow: 0 4px 15px rgba(33, 150, 243, 0.08);
}

code[class*="language-"],
pre[class*="language-"] code {
	color: var(--celestial-text) !important;
}

.line-numbers .line-numbers-rows {
	border-right-color: var(--celestial-sky) !important;
}

.line-numbers-rows > span:before {
	color: var(--celestial-text-soft) !important;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
	background: rgba(255, 255, 255, 0.9);
	border: 2px solid var(--celestial-sky-light);
	color: var(--celestial-text);
	padding: 12px 18px;
	border-radius: 12px;
	transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
	border-color: var(--celestial-sky);
	box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
	outline: none;
	background: white;
}

/* Meta Information */
.entry-meta,
.entry-footer {
	color: var(--celestial-text-soft);
	font-size: 0.9em;
	padding: 20px 0;
	border-top: 1px solid var(--celestial-sky-light);
	margin-top: 30px;
}

.entry-meta a,
.entry-footer a {
	color: var(--celestial-azure) !important;
}

/* Post Thumbnails */
.post-thumbnail img {
	border-radius: 15px;
	box-shadow: 0 10px 30px rgba(33, 150, 243, 0.15);
	border: 4px solid white;
}

/* Blockquotes */
blockquote {
	background: linear-gradient(135deg, #f8fbff, #e3f2fd);
	border-left: 4px solid var(--celestial-sky);
	padding: 25px 30px;
	margin: 30px 0;
	border-radius: 8px;
	color: var(--celestial-text-soft);
	position: relative;
}

blockquote::before {
	content: '"';
	font-size: 60px;
	color: var(--celestial-sky);
	position: absolute;
	top: -10px;
	left: 15px;
	opacity: 0.3;
	line-height: 1;
}

/* Pagination */
.page-numbers {
	background: white;
	color: var(--celestial-azure);
	padding: 10px 18px;
	border-radius: 25px;
	margin: 0 5px;
	border: 2px solid var(--celestial-sky-light);
	font-weight: 600;
	transition: all 0.3s ease;
}

.page-numbers.current,
.page-numbers:hover {
	background: linear-gradient(135deg, var(--celestial-sky), var(--celestial-azure));
	color: white;
	border-color: var(--celestial-azure);
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(33, 150, 243, 0.2);
}

/* Registration Page Celestial Styling */
.registration-container {
	background: rgba(255, 255, 255, 0.98) !important;
	border: 2px solid var(--celestial-sky) !important;
	box-shadow: 0 20px 60px rgba(33, 150, 243, 0.2) !important;
}

.registration-header {
	background: linear-gradient(135deg, var(--celestial-sky), var(--celestial-azure)) !important;
}

.registration-header h1 {
	color: white !important;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-group label {
	color: var(--celestial-azure) !important;
	font-weight: 600;
}

.submit-btn {
	background: linear-gradient(135deg, var(--celestial-sky), var(--celestial-azure)) !important;
}

/* Cards & Containers */
.aistros-container {
	max-width: 1200px;
}

/* Responsive */
@media (max-width: 768px) {
	.site-main {
		padding: 30px 20px;
		border-radius: 15px;
	}

	body::after {
		font-size: 50px;
		top: 50px;
		right: 30px;
	}
}

/* Scrollbar Styling */
::-webkit-scrollbar {
	width: 12px;
}

::-webkit-scrollbar-track {
	background: var(--celestial-sky-light);
}

::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, var(--celestial-sky), var(--celestial-azure));
	border-radius: 6px;
	border: 2px solid var(--celestial-sky-light);
}

::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(180deg, var(--celestial-azure), var(--celestial-indigo));
}

/* Accessibility */
.screen-reader-text:focus {
	background-color: var(--celestial-sky-light);
	color: var(--celestial-text);
	border: 2px solid var(--celestial-azure);
}

/* Loading Animation */
@keyframes gentle-pulse {
	0%, 100% {
		opacity: 1;
	}
	50% {
		opacity: 0.7;
	}
}

/* Smooth Transitions */
* {
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
