/* Zodiac Compatibility Analyzer - Mixed Style Approach */

:root {
	--primary-color: #E94747;
	--primary-dark: #D93A3A;
	--primary-light: rgba(255, 255, 255, 0.2);
	--primary-lighter: rgba(255, 255, 255, 0.1);
	--text-color: #333;
	--light-text: #fff;
	--white: #fff;
	--background: #D93A3A;
	--border-radius: 8px;
	--box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	--transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Inter', sans-serif;
	color: var(--text-color);
	background-color: var(--background);
	line-height: 1.6;
}

.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

a {
	text-decoration: none;
	color: inherit;
}

/* Section Styles */
section {
	padding: 40px 0;
}

.section-red {
	background-color: var(--primary-dark);
	color: var(--white);
	position: relative;
}

/* Form Styles - Translucent Cards */
.analyzer-form {
	background-color: rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	backdrop-filter: blur(5px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
	padding: 30px;
	margin: 40px auto;
	max-width: 800px;
	color: var(--white);
}

.form-section {
	background-color: rgba(255, 255, 255, 0.05);
	border-radius: 10px;
	padding: 25px;
	margin-bottom: 25px;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-section-title {
	color: var(--white);
	font-size: 1.4rem;
	margin-bottom: 15px;
	font-weight: 600;
}

.section-explanation {
	color: var(--light-text);
	margin-bottom: 15px;
	font-size: 0.95rem;
}

.form-row {
	display: flex;
	gap: 15px;
	margin-bottom: 20px;
}

.form-group {
	flex: 1;
	min-width: 0;
	/* Prevents flex items from overflowing */
}

.full-width {
	width: 100%;
}

label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
	color: var(--white);
}

.required {
	color: #FF9999;
	margin-left: 4px;
}

.field-hint {
	display: block;
	font-size: 0.8rem;
	color: var(--light-text);
	margin-top: 5px;
	font-style: italic;
}

.form-control,
.text-input {
	width: 100%;
	padding: 12px 15px;
	border-radius: var(--border-radius);
	border: 1px solid rgba(255, 255, 255, 0.3);
	background-color: rgba(255, 255, 255, 0.1);
	color: var(--white);
	font-size: 1rem;
	transition: var(--transition);
}

.form-control {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 15px center;
	padding-right: 40px;
}

.form-control:focus,
.text-input:focus {
	outline: none;
	border-color: rgba(255, 255, 255, 0.8);
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

/* Placeholder styling for all browsers */
.text-input::placeholder {
	color: rgba(255, 255, 255, 0.7);
	opacity: 1;
}

/* For older Firefox */
.text-input::-moz-placeholder {
	color: rgba(255, 255, 255, 0.7);
	opacity: 1;
}

/* For older WebKit/Chrome */
.text-input::-webkit-input-placeholder {
	color: rgba(255, 255, 255, 0.7);
}

/* For older Microsoft browsers */
.text-input:-ms-input-placeholder {
	color: rgba(255, 255, 255, 0.7);
}

/* Introduction Section */
.intro-section {
	text-align: center;
	margin-bottom: 25px;
	padding-bottom: 15px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.intro-section h2 {
	color: var(--white);
	font-size: 1.8rem;
	margin-bottom: 15px;
}

.intro-text {
	font-size: 1.1rem;
	color: var(--light-text);
	max-width: 600px;
	margin: 0 auto;
}

/* Advanced Options Toggle */
.advanced-toggle {
	text-align: center;
	margin: 15px 0;
}

.toggle-btn {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: var(--white);
	font-size: 0.9rem;
	font-weight: 500;
	cursor: pointer;
	padding: 8px 16px;
	border-radius: 20px;
	transition: var(--transition);
}

.toggle-btn:hover {
	background-color: rgba(255, 255, 255, 0.15);
}

.toggle-btn .hide-text {
	display: none;
}

.toggle-btn.active .show-text {
	display: none;
}

.toggle-btn.active .hide-text {
	display: inline;
}

.advanced-fields {
	margin-top: 15px;
	padding: 15px;
	border-radius: 8px;
	background-color: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.advanced-fields.hidden {
	display: none;
}

.advanced-fields h4 {
	font-size: 1.1rem;
	margin-bottom: 10px;
	color: var(--white);
}

.advanced-explanation {
	font-size: 0.9rem;
	color: var(--light-text);
	margin-bottom: 15px;
}

/* Button Styling */
.form-actions {
	text-align: center;
	margin-top: 30px;
}

.btn {
	background-color: var(--white);
	color: var(--primary-dark);
	font-weight: 600;
	font-size: 1.1rem;
	border: none;
	border-radius: 8px;
	padding: 14px 28px;
	cursor: pointer;
	transition: var(--transition);
	display: inline-block;
}

.btn:hover {
	background-color: rgba(255, 255, 255, 0.9);
	transform: translateY(-2px);
}

/* Loading Indicator */
.loading-container {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin: 40px auto;
	max-width: 800px;
	background-color: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(5px);
	padding: 40px;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	text-align: center;
	color: var(--white);
}

.loading-container p {
	font-size: 1.2rem;
	font-weight: 500;
	margin-top: 20px;
	animation: pulse-text 1.5s infinite alternate;
}

@keyframes pulse-text {
	0% {
		opacity: 0.7;
	}

	100% {
		opacity: 1;
	}
}

.loading-spinner {
	position: relative;
	width: 60px;
	height: 60px;
	background-color: transparent;
}

.loading-spinner::before,
.loading-spinner::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	border: 4px solid transparent;
	border-top-color: var(--white);
}

.loading-spinner::before {
	z-index: 10;
	animation: spin 1.5s infinite;
}

.loading-spinner::after {
	border: 4px solid rgba(255, 255, 255, 0.2);
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	50% {
		transform: rotate(180deg);
		border-width: 6px;
	}

	100% {
		transform: rotate(360deg);
	}
}

/* Results Section - White Card Design */
.results-container {
	display: none;
	background-color: var(--white);
	border-radius: var(--border-radius);
	padding: 30px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
	color: var(--text-color);
	max-width: 800px;
	margin: 0 auto;
  }
  
  .results-header {
	text-align: center;
	margin-bottom: 30px;
  }
  
  .results-header h3 {
	font-size: 1.8rem;
	margin-bottom: 10px;
	color: var(--primary-dark);
  }
  
  .results-subheader {
	color: var(--text-color);
	font-size: 1.1rem;
	opacity: 0.8;
  }
  
  /* Compatibility Card - Single card design with no nested cards */
  .compatibility-card {
	background-color: transparent;
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.3s ease;
  }
  
  /* Header Section */
  .compatibility-header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 30px;
	padding: 25px;
	gap: 20px;
	background-color: #f9f9f9;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }
  
  .compatibility-score-container {
	display: flex;
	flex-direction: column;
	align-items: center;
  }
  
  .compatibility-score-circle {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	background: conic-gradient(var(--primary-color) calc(var(--score) * 1%),
			#f0f0f0 0);
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 15px;
	box-shadow: 0 4px 15px rgba(233, 71, 71, 0.15);
  }
  
  .compatibility-score-circle::before {
	content: '';
	position: absolute;
	width: 100px;
	height: 100px;
	border-radius: 50%;
	background-color: white;
  }
  
  .compatibility-score {
	position: relative;
	font-size: 2.2rem;
	font-weight: 700;
	color: var(--primary-color);
  }
  
  .compatibility-score-title {
	font-size: 1.3rem;
	font-weight: 600;
	text-align: center;
	margin: 10px 0 5px;
	color: var(--text-color);
  }
  
  .relationship-type {
	font-size: 1rem;
	color: var(--text-color);
	text-align: center;
	font-weight: 500;
	opacity: 0.8;
  }
  
  .compatibility-breakdown {
	flex: 1;
	min-width: 200px;
  }
  
  .compatibility-stat {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
	flex-wrap: wrap;
  }
  
  .stat-label {
	width: 120px;
	font-weight: 500;
	color: var(--text-color);
	font-size: 0.95rem;
  }
  
  .stat-bar {
	flex: 1;
	height: 8px;
	background-color: #f0f0f0;
	border-radius: 4px;
	overflow: hidden;
	position: relative;
	margin: 0 10px;
	min-width: 0;
  }
  
  .stat-bar::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: var(--percent);
	background: linear-gradient(to right, var(--primary-color), #ff8a8a);
	border-radius: 4px;
  }
  
  .stat-value {
	font-weight: 600;
	color: var(--primary-color);
	width: 40px;
	text-align: right;
	font-size: 0.95rem;
  }
  
  /* Content Section */
  .compatibility-content {
	padding: 0;
	background-color: transparent;
  }
  
  /* Strengths and Challenges */
  .strengths-challenges-container {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 30px;
  }
  
  .strengths-section,
  .challenges-section {
	flex: 1;
	min-width: 220px;
  }
  
  .section-title {
	font-size: 1.15rem;
	font-weight: 600;
	margin-bottom: 15px;
	color: var(--text-color);
	padding-bottom: 8px;
	border-bottom: 1px solid rgba(233, 71, 71, 0.15);
  }
  
  .strengths-list,
  .challenges-list,
  .key-aspects-list,
  .enhanced-list {
	list-style: none;
	padding: 0;
	margin: 0;
  }
  
  .strength-item,
  .challenge-item,
  .key-aspect-item,
  .enhanced-item {
	display: flex;
	align-items: flex-start;
	margin-bottom: 10px;
	padding: 12px 15px;
	background-color: #f9f9f9;
	border-radius: 8px;
	transition: all 0.2s ease;
  }
  
  .strength-item {
	/* border-left: 3px solid #4CAF50; */
  }
  
  .challenge-item {
	/* border-left: 3px solid var(--primary-color); */
  }
  
  .key-aspect-item {
	/* border-left: 3px solid #3498db; */
  }
  
  .strength-enhanced {
	/* border-left: 3px solid #8BC34A; */
  }
  
  .opportunity-enhanced {
	/* border-left: 3px solid #FF9800; */
  }
  
  .strength-item:hover,
  .challenge-item:hover,
  .key-aspect-item:hover,
  .enhanced-item:hover {
	transform: translateX(3px);
	background-color: #f5f5f5;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  }
  
  .strength-icon,
  .challenge-icon,
  .key-aspect-icon,
  .enhanced-icon {
	margin-right: 10px;
	flex-shrink: 0;
	font-weight: bold;
  }
  
  .strength-icon {
	color: #4CAF50;
  }
  
  .challenge-icon {
	color: var(--primary-color);
  }
  
  .key-aspect-icon {
	color: #3498db;
  }
  
  .enhanced-icon {
	color: #8BC34A;
  }
  
  .strength-text,
  .challenge-text,
  .key-aspect-text,
  .enhanced-text {
	flex: 1;
	line-height: 1.5;
	font-size: 0.95rem;
	color: var(--text-color);
  }
  
  /* Enhanced Analysis Section - Timeline */
  .enhanced-insights-section {
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid rgba(233, 71, 71, 0.1);
  }
  
  .time-analysis-section {
	background-color: #f9f9f9;
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 25px;
	transition: all 0.2s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }
  
  .past-section {
	/* border-left: 4px solid #9C27B0; */
	 /* Purple for past */
  }
  
  .present-section {
	/* border-left: 4px solid #2196F3; */
	 /* Blue for present */
  }
  
  .future-section {
	/* border-left: 4px solid #FF9800; */
	 /* Orange for future */
  }
  
  .time-analysis-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
  }
  
  .time-badge {
	font-size: 0.8rem;
	font-weight: 600;
	padding: 3px 8px;
	border-radius: 12px;
	color: white;
  }
  
  .past-section .time-badge {
	background-color: #9C27B0;
  }
  
  .present-section .time-badge {
	background-color: #2196F3;
  }
  
  .future-section .time-badge {
	background-color: #FF9800;
  }
  
  .time-analysis-section:hover {
	transform: translateY(-3px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }
  
  .time-analysis-title {
	font-size: 1.15rem;
	font-weight: 600;
	margin-bottom: 0;
	color: var(--text-color);
  }
  
  .time-analysis-description {
	margin-bottom: 15px;
	line-height: 1.5;
	color: var(--text-color);
	font-size: 0.95rem;
  }
  
  /* Additional Insights */
  .additional-insights {
	margin-bottom: 25px;
  }
  
  .insight-subtitle {
	font-size: 1.1rem;
	font-weight: 600;
	margin-bottom: 12px;
	color: var(--text-color);
  }
  
  .astrological-insight {
	background: rgba(233, 71, 71, 0.05);
	padding: 25px;
	border-radius: 12px;
	margin-top: 25px;
	/* border-left: 4px solid var(--primary-color); */
  }
  
  .insight-title {
	font-size: 1.1rem;
	font-weight: 600;
	margin-bottom: 10px;
	color: var(--primary-dark);
  }
  
  .insight-text {
	font-style: italic;
	line-height: 1.5;
	font-size: 1rem;
	color: var(--text-color);
  }

/* Location Picker Modal */
.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
}

.modal-content {
	position: relative;
	background-color: var(--white);
	margin: 5% auto;
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
	width: 90%;
	max-width: 700px;
	animation: modalFadeIn 0.3s;
	overflow: hidden;
}

@keyframes modalFadeIn {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 24px;
	background-color: var(--primary-color);
	color: var(--white);
}

.modal-header h2 {
	margin: 0;
	font-size: 1.4rem;
	color: white;
}

.close-modal {
	font-size: 28px;
	font-weight: bold;
	color: rgba(255, 255, 255, 0.8);
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	line-height: 1;
}

.close-modal:hover {
	color: white;
}

.modal-body {
	padding: 20px 24px;
	color: var(--text-color);
}

.modal-footer {
	padding: 16px 24px;
	border-top: 1px solid #eee;
	text-align: right;
}

.search-container {
	display: flex;
	margin-bottom: 20px;
}

#location-input {
	flex-grow: 1;
	padding: 10px 15px;
	border: 1px solid #ccc;
	border-radius: 6px 0 0 6px;
	font-size: 16px;
}

#gps-button {
	background-color: var(--primary-color);
	color: white;
	border: none;
	border-radius: 0 6px 6px 0;
	padding: 10px 15px;
	cursor: pointer;
}

#gps-button:hover {
	background-color: var(--primary-dark);
}

.map-container {
	height: 250px;
	width: 100%;
	border-radius: var(--border-radius);
	overflow: hidden;
	position: relative;
	border: 1px solid #eee;
}

.map-placeholder {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #666;
	font-size: 0.9rem;
	text-align: center;
	padding: 20px;
	z-index: 1;
	pointer-events: none;
}

/* Ensure map is visible */
.map-container>div {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	z-index: 2 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
	.form-row {
		flex-direction: column;
		gap: 15px;
	}

	.form-group {
		width: 100%;
	}

	.analyzer-form {
		/* padding: 20px; */
	}

	.form-section {
		padding: 15px;
	}

	.intro-section h2 {
		font-size: 1.6rem;
	}

	.compatibility-header {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 15px;
		/* padding: 20px 15px; */
	}

	.compatibility-breakdown {
		width: 100%;
	}

	.compatibility-score-container {
		padding-right: 0;
		margin-bottom: 10px;
	}

	.section-title {
		font-size: 1.1rem;
	}

	.strengths-challenges-container {
		flex-direction: column;
		gap: 20px;
	}

	.compatibility-content {
		/* padding: 20px 15px; */
	}

	.map-container {
		height: 200px;
	}

	.modal-content {
		width: 95%;
		margin: 10% auto;
	}
}

@media (max-width: 480px) {
	.analyzer-form {
		padding: 15px;
		margin: 20px auto;
	}

	.form-section-title {
		font-size: 1.2rem;
	}

	.intro-section h2 {
		font-size: 1.4rem;
	}

	.compatibility-score-circle {
		width: 100px;
		height: 100px;
	}

	.compatibility-score-circle::before {
		width: 80px;
		height: 80px;
	}

	.compatibility-score {
		font-size: 1.8rem;
	}

	.compatibility-score-title {
		font-size: 1.1rem;
	}

	.results-header h3 {
		font-size: 1.5rem;
	}

	.results-subheader {
		font-size: 1rem;
	}

	.btn {
		width: 100%;
		padding: 12px 20px;
		font-size: 1rem;
	}

	.stat-label {
		width: 100px;
		font-size: 0.9rem;
	}

	.stat-value {
		font-size: 0.9rem;
	}

	.stat-bar {
		margin: 0 8px;
	}

	.modal-header h2 {
		font-size: 1.2rem;
	}

	.close-modal {
		font-size: 24px;
	}

	.modal-body {
		padding: 15px;
	}

	.search-container {
		margin-bottom: 15px;
	}

	#location-input {
		font-size: 14px;
	}
}

  /* Responsive Design */
  @media (max-width: 768px) {
	.compatibility-header {
	  flex-direction: column;
	  align-items: center;
	  text-align: center;
	  gap: 20px;
	  /* padding: 20px; */
	}
	
	.compatibility-breakdown {
	  width: 100%;
	}
	
	.compatibility-score-container {
	  margin-bottom: 10px;
	}
	
	.section-title {
	  font-size: 1.1rem;
	}
	
	.strengths-challenges-container {
	  flex-direction: column;
	  gap: 25px;
	}
	
	.time-badge {
	  font-size: 0.75rem;
	  padding: 2px 6px;
	}
  }
  
  @media (max-width: 480px) {
	.compatibility-score-circle {
	  width: 100px;
	  height: 100px;
	}
	
	.compatibility-score-circle::before {
	  width: 80px;
	  height: 80px;
	}
	
	.compatibility-score {
	  font-size: 1.8rem;
	}
	
	.compatibility-score-title {
	  font-size: 1.1rem;
	}
	
	.results-header h3 {
	  font-size: 1.5rem;
	}
	
	.results-subheader {
	  font-size: 1rem;
	}
	
	.stat-label {
	  width: 100px;
	  font-size: 0.9rem;
	}
	
	.stat-value {
	  font-size: 0.9rem;
	}
	
	.stat-bar {
	  margin: 0 8px;
	}
	
	.time-analysis-title {
	  font-size: 1rem;
	}
  }

/* Custom styling for date picker icon */
input[type="date"] {
	position: relative;
	color-scheme: var(--light-text);
	/* This helps with the calendar dropdown colors */
}

/* Changes the color of the calendar icon */
input[type="date"]::-webkit-calendar-picker-indicator {
	filter: invert(1);
	/* Makes the icon white */
	opacity: 0.7;
	cursor: pointer;
}

/* For Firefox */
input[type="date"]::-moz-calendar-picker-indicator {
	filter: invert(1);
	opacity: 0.7;
}

/* Hover state */
input[type="date"]::-webkit-calendar-picker-indicator:hover {
	opacity: 1;
}

/* Custom styling for date and time pickers */
input[type="date"],
input[type="time"] {
	position: relative;
	color-scheme: var(--light-text);
}

/* Changes the color of the calendar icon for date inputs */
input[type="date"]::-webkit-calendar-picker-indicator {
	filter: invert(1);
	/* Makes the icon white */
	opacity: 0.7;
	cursor: pointer;
}

/* Changes the color of the clock icon for time inputs */
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-time-picker-indicator {
	filter: invert(1);
	opacity: 0.7;
	cursor: pointer;
}

/* For Firefox */
input[type="date"]::-moz-calendar-picker-indicator,
input[type="time"]::-moz-calendar-picker-indicator {
	filter: invert(1);
	opacity: 0.7;
}

/* Hover states */
input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-time-picker-indicator:hover {
	opacity: 1;
}

/* Ensure text color is white */
input[type="date"],
input[type="time"] {
	color: white;
}

/* Clear button styling (for browsers that show it) */
input[type="date"]::-webkit-clear-button,
input[type="time"]::-webkit-clear-button {
	filter: invert(1);
	opacity: 0.7;
}
