:root {
	/* Light Mode Colors */
	--bg-gradient-start: #5ab2ff;
	--bg-gradient-end: #a0deff;
	--card-bg: rgba(255, 255, 255, 0.25);
	--card-bg-solid: rgba(255, 255, 255, 0.9);
	--text-primary: #ffffff;
	--text-secondary: rgba(255, 255, 255, 0.85);
	--text-tertiary: rgba(255, 255, 255, 0.7);
	--text-dark: #1a1a2e;
	--border-color: rgba(255, 255, 255, 0.3);
	--shadow: rgba(0, 0, 0, 0.1);
	--overlay-bg: rgba(0, 0, 0, 0.5);

	/* Slang Colors */
	--brick-cold: #4fc3f7;
	--cold: #81c784;
	--nice: #ffb74d;
	--hot: #ff8a65;
	--hell-hot: #ef5350;
}

[data-theme="dark"] {
	--bg-gradient-start: #1a1a2e;
	--bg-gradient-end: #16213e;
	--card-bg: rgba(255, 255, 255, 0.08);
	--card-bg-solid: rgba(30, 30, 46, 0.95);
	--text-primary: #ffffff;
	--text-secondary: rgba(255, 255, 255, 0.8);
	--text-tertiary: rgba(255, 255, 255, 0.6);
	--text-dark: #ffffff;
	--border-color: rgba(255, 255, 255, 0.15);
	--shadow: rgba(0, 0, 0, 0.3);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family:
		"DM Sans",
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		sans-serif;
	background: linear-gradient(
		135deg,
		var(--bg-gradient-start) 0%,
		var(--bg-gradient-end) 100%
	);
	min-height: 100vh;
	color: var(--text-primary);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	transition: background 0.5s ease;
}

#app {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* Header */
.app-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-bottom: 1px solid var(--border-color);
	padding: env(safe-area-inset-top, 0) 0 0 0;
}

.header-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.25rem;
	max-width: 800px;
	margin: 0 auto;
}

.header-location {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 1rem;
	font-weight: 500;
	flex: 1;
	justify-content: center;
}

.header-location .material-icons {
	font-size: 1.25rem;
}

.icon-btn {
	background: rgba(255, 255, 255, 0.2);
	border: none;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
}

.icon-btn:hover {
	background: rgba(255, 255, 255, 0.3);
	transform: scale(1.05);
}

.icon-btn:active {
	transform: scale(0.95);
}

.icon-btn .material-icons {
	color: var(--text-primary);
	font-size: 1.3rem;
}

/* Main Content */
.main-content {
	flex: 1;
	padding: 0 0 env(safe-area-inset-bottom, 1rem);
	max-width: 800px;
	width: 100%;
	margin: 0 auto;
}

/* Loading State */
.loading-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 50vh;
	gap: 1.5rem;
	animation: fadeIn 0.5s ease;
}

.loading-spinner {
	width: 50px;
	height: 50px;
	border: 4px solid rgba(255, 255, 255, 0.3);
	border-top-color: var(--text-primary);
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Error State */
.error-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 50vh;
	gap: 1rem;
	padding: 2rem;
	text-align: center;
	animation: fadeIn 0.5s ease;
}

.error-icon {
	font-size: 4rem !important;
	opacity: 0.6;
}

.error-state h2 {
	font-family: "Outfit", sans-serif;
	font-size: 1.8rem;
	font-weight: 700;
}

.retry-btn {
	margin-top: 1rem;
	padding: 0.875rem 2rem;
	background: var(--card-bg-solid);
	color: var(--text-dark);
	border: none;
	border-radius: 25px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.retry-btn:hover {
	transform: scale(1.05);
	box-shadow: 0 8px 20px var(--shadow);
}

/* Weather Content */
.weather-content {
	animation: fadeIn 0.6s ease;
	display: flex;
	flex-direction: column;
	flex: 1;
}

/* Main Weather Display */
.weather-main {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 3rem 1.25rem 2rem;
	text-align: center;
	min-height: 50vh;
}

.vibe-title {
	font-size: 5.5rem;
	font-family: "Outfit", sans-serif;
	font-weight: 700;
	line-height: 1;
	margin-bottom: 0.5rem;
	animation: slideDown 0.6s ease;
}

.vibe-subtitle {
	font-size: 1.125rem;
	opacity: 0.8;
	margin-bottom: 1rem;
	font-family: "DM Sans", sans-serif;
	font-weight: 400;
}

.vibe-visual {
	font-size: 3rem;
	font-family: "Courier New", monospace;
	opacity: 0.7;
	letter-spacing: 0.15em;
	display: flex;
	align-items: center;
	justify-content: center;
	display: flex;
	align-items: center;
	justify-content: center;
}

.vibe-icons {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}

.vibe-images {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
}

.vibe-image {
	height: 6rem;
	width: 6rem;
	object-fit: contain;
	opacity: 0.85;
}

.vibe-icon-large {
	font-size: 4.5rem !important;
	opacity: 0.85;
}
.vibe-icons {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}

.vibe-icon-large {
	font-size: 4.5rem !important;
	opacity: 0.85;
}

/* Temp Section */
.temp-section {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2.5rem;
	padding: 1.5rem 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.temp-label {
	font-size: 0.95rem;
	opacity: 0.75;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 500;
}

.temp-high {
	font-size: 1.75rem;
	font-family: "Outfit", sans-serif;
	font-weight: 600;
}

.temp-low {
	font-size: 1.5rem;
	font-family: "Outfit", sans-serif;
	opacity: 0.65;
}

/* Hourly Forecast */
.hourly-container {
	padding: 1.5rem 0;
	flex-shrink: 0;
}

.hourly-scroll {
	display: flex;
	gap: 1rem;
	padding: 0 1.25rem;
	overflow-x: auto;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
}

.hourly-scroll::-webkit-scrollbar {
	height: 4px;
}

.hourly-scroll::-webkit-scrollbar-track {
	background: transparent;
}

.hourly-scroll::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.2);
	border-radius: 2px;
}

.hourly-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	min-width: 60px;
	padding: 1rem 0.75rem;
	text-align: center;
	flex-shrink: 0;
}

.hourly-time {
	font-size: 0.875rem;
	opacity: 0.75;
	font-weight: 500;
}

.hourly-icon {
	font-size: 1.5rem !important;
	opacity: 0.85;
}

.hourly-temp {
	font-size: 1rem;
	font-family: "Outfit", sans-serif;
	font-weight: 600;
}

.hourly-humidity {
	font-size: 0.8rem;
	opacity: 0.7;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes scaleIn {
	from {
		opacity: 0;
		transform: scale(0.8);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

/* Vibe Description */
.slang-description {
	background: var(--card-bg);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid var(--border-color);
	border-radius: 25px;
	padding: 1.75rem 2rem;
	margin: 0 auto 1rem;
	max-width: 520px;
	animation: slideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.slang-icon-wrapper {
	margin-bottom: 1rem;
}

.slang-icon {
	font-size: 4rem !important;
	animation: bounce 1s ease infinite;
}

@keyframes bounce {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-10px);
	}
}

.slang-text {
	font-size: 2.4rem;
	font-family: "Outfit", sans-serif;
	font-weight: 800;
	margin-bottom: 0.5rem;
	line-height: 1.2;
}

.slang-subtitle {
	font-size: 1.05rem;
	opacity: 0.8;
	font-style: italic;
}

/* Current Stats */
.current-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
	gap: 1rem;
	margin: 2rem 1rem 0;
	animation: fadeIn 0.9s ease 0.4s backwards;
}

.stat-item {
	background: var(--card-bg);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid var(--border-color);
	border-radius: 20px;
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	transition: transform 0.3s ease;
}

.stat-item:hover {
	transform: translateY(-5px);
}

.stat-item .material-icons {
	font-size: 2rem;
	opacity: 0.9;
}

.stat-info {
	text-align: center;
}

.stat-label {
	font-size: 0.875rem;
	opacity: 0.8;
	margin-bottom: 0.25rem;
}

.stat-value {
	font-size: 1.25rem;
	font-weight: 600;
	font-family: "Outfit", sans-serif;
}

/* Forecast Sections */
.forecast-section {
	margin: 2rem 1.25rem;
	animation: fadeIn 1s ease 0.5s backwards;
}

.section-title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 1.125rem;
	font-weight: 600;
	margin-bottom: 1rem;
	opacity: 0.95;
}

.section-title .material-icons {
	font-size: 1.25rem;
}

/* Hourly Forecast */
.hourly-scroll {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	padding: 0.5rem 0 1rem;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}

.hourly-scroll::-webkit-scrollbar {
	height: 6px;
}

.hourly-scroll::-webkit-scrollbar-track {
	background: var(--card-bg);
	border-radius: 10px;
}

.hourly-scroll::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.4);
	border-radius: 10px;
}

.hourly-item {
	background: var(--card-bg);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid var(--border-color);
	border-radius: 20px;
	padding: 1.25rem 1rem;
	min-width: 85px;
	text-align: center;
	scroll-snap-align: start;
	transition: all 0.3s ease;
	animation: scaleIn 0.5s ease backwards;
}

.hourly-item:nth-child(1) {
	animation-delay: 0.1s;
}
.hourly-item:nth-child(2) {
	animation-delay: 0.15s;
}
.hourly-item:nth-child(3) {
	animation-delay: 0.2s;
}
.hourly-item:nth-child(4) {
	animation-delay: 0.25s;
}
.hourly-item:nth-child(5) {
	animation-delay: 0.3s;
}

.hourly-item:hover {
	transform: scale(1.05);
	background: rgba(255, 255, 255, 0.15);
}

.hourly-time {
	font-size: 0.875rem;
	font-weight: 500;
	margin-bottom: 0.5rem;
	opacity: 0.9;
}

.hourly-temp {
	font-size: 1.125rem;
	font-weight: 600;
	font-family: "Outfit", sans-serif;
	margin: 0.5rem 0;
}

.hourly-humidity {
	font-size: 0.875rem;
	font-weight: 500;
	opacity: 0.8;
	margin-top: 0.5rem;
}

/* Daily Forecast */
.daily-forecast {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.daily-item {
	background: var(--card-bg);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid var(--border-color);
	border-radius: 20px;
	padding: 1.25rem 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	transition: all 0.3s ease;
	animation: slideRight 0.5s ease backwards;
}

.daily-item:nth-child(1) {
	animation-delay: 0.1s;
}
.daily-item:nth-child(2) {
	animation-delay: 0.15s;
}
.daily-item:nth-child(3) {
	animation-delay: 0.2s;
}
.daily-item:nth-child(4) {
	animation-delay: 0.25s;
}
.daily-item:nth-child(5) {
	animation-delay: 0.3s;
}
.daily-item:nth-child(6) {
	animation-delay: 0.35s;
}
.daily-item:nth-child(7) {
	animation-delay: 0.4s;
}

@keyframes slideRight {
	from {
		opacity: 0;
		transform: translateX(-30px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.daily-item:hover {
	transform: translateX(5px);
	background: rgba(255, 255, 255, 0.15);
}

.daily-day {
	font-weight: 600;
	min-width: 80px;
	font-size: 1rem;
}

.daily-icon-wrapper {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex: 1;
}

.daily-icon {
	font-size: 2rem !important;
}

.daily-condition {
	font-size: 0.875rem;
	opacity: 0.85;
}

.daily-temps {
	display: flex;
	gap: 1rem;
	align-items: center;
	font-family: "Outfit", sans-serif;
	font-weight: 600;
}

.temp-high {
	font-size: 1.125rem;
}

.temp-low {
	font-size: 1.125rem;
	opacity: 0.6;
}

/* Footer */
.app-footer {
	padding: 1rem 1.25rem 1.5rem;
	text-align: center;
	animation: fadeIn 1.2s ease 0.6s backwards;
	color: #ffffff;
	font-size: 0.75rem;
	opacity: 0.8;
	letter-spacing: 0.04em;
	text-transform: lowercase;
}

.app-footer a {
	color: #ffffff;
	text-decoration: none;
}

.app-footer a:hover {
	text-decoration: underline;
}

.refresh-btn {
	background: var(--card-bg);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid var(--border-color);
	color: var(--text-primary);
	padding: 0.75rem 1.5rem;
	border-radius: 20px;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	transition: all 0.3s ease;
}

.refresh-btn:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: scale(1.05);
}

.refresh-btn:active .material-icons {
	animation: spin 0.5s ease;
}

/* Search Modal */
.search-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--overlay-bg);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	z-index: 1000;
	display: none;
	animation: fadeIn 0.3s ease;
}

.search-modal.active {
	display: flex;
	flex-direction: column;
}

.search-content {
	background: var(--card-bg-solid);
	margin: auto;
	max-width: 600px;
	width: 90%;
	border-radius: 25px;
	overflow: hidden;
	animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
	max-height: 80vh;
	display: flex;
	flex-direction: column;
}

.search-header {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.5rem;
	border-bottom: 1px solid var(--border-color);
}

#searchInput {
	flex: 1;
	background: transparent;
	border: none;
	font-size: 1.125rem;
	color: var(--text-dark);
	outline: none;
	font-family: "DM Sans", sans-serif;
}

#searchInput::placeholder {
	color: rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] #searchInput::placeholder {
	color: rgba(255, 255, 255, 0.4);
}

.search-suggestions {
	overflow-y: auto;
	max-height: 400px;
}

.suggestion-item {
	padding: 1.25rem 1.5rem;
	border-bottom: 1px solid var(--border-color);
	cursor: pointer;
	transition: background 0.2s ease;
	color: var(--text-dark);
}

.suggestion-item:hover {
	background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .suggestion-item:hover {
	background: rgba(255, 255, 255, 0.05);
}

.suggestion-item:last-child {
	border-bottom: none;
}

/* Responsive Design */
@media (max-width: 480px) {
	.temp-main {
		font-size: 5.5rem;
	}

	.location-name {
		font-size: 1.75rem;
	}

	.slang-text {
		font-size: 1.75rem;
	}

	.current-stats {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 768px) {
	.header-content,
	.main-content {
		padding-left: 2rem;
		padding-right: 2rem;
	}

	.current-weather {
		padding: 3rem 2rem;
	}

	.forecast-section {
		margin-left: 2rem;
		margin-right: 2rem;
	}
}

/* PWA Install Prompt */
.install-prompt {
	position: fixed;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	background: var(--card-bg-solid);
	color: var(--text-dark);
	padding: 1rem 2rem;
	border-radius: 25px;
	box-shadow: 0 10px 40px var(--shadow);
	display: none;
	align-items: center;
	gap: 1rem;
	z-index: 999;
	animation: slideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.install-prompt button {
	background: linear-gradient(135deg, #5ab2ff 0%, #a0deff 100%);
	color: white;
	border: none;
	padding: 0.75rem 1.5rem;
	border-radius: 20px;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.3s ease;
}

.install-prompt button:hover {
	transform: scale(1.05);
}
