/* Custom Styles for Tamil Simile Generator */

/* Theme Colors */
:root {
	--primary: #0077b6;
	--primary-dark: #005b8c;
	--primary-light: #0096c7;
	--secondary: #48cae4;
	--text-dark: #1e3a8a;
	--text-light: #e0f2fe;
}

/* Smooth Scrolling */
html {
	scroll-behavior: smooth;
}

/* Custom Animations */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slideInFromRight {
	from {
		transform: translateX(30px);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

.animate-fadeIn {
	animation: fadeIn 0.6s ease-in-out;
}

.animate-fadeIn-delay {
	animation: fadeIn 0.6s ease-in-out 0.2s forwards;
	opacity: 0;
}

/* Nav Button Styling */
.nav-button {
	padding: 0.5rem 1rem;
	border-radius: 0.375rem;
	transition: background-color 0.3s, transform 0.2s;
	font-weight: 500;
}

.nav-button:hover {
	background-color: rgba(255, 255, 255, 0.1);
	transform: translateY(-2px);
}

/* Button Hover Effect */
button {
	transition: all 0.3s ease;
}

button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Input Focus Effects */
input:focus,
textarea:focus,
select:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.3);
}

/* Section Transitions */
section {
	transition: background-color 0.5s ease;
}

/* Team Card Hover */
.team-card:hover {
	transform: translateY(-10px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
	width: 10px;
}

::-webkit-scrollbar-track {
	background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
	background: var(--primary);
	border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--primary-dark);
}

/* Mobile Menu Animation */
#mobileMenu.show {
	display: block;
	animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Prediction Card animations */
@keyframes cardPulse {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.05);
	}
	100% {
		transform: scale(1);
	}
}

.prediction-card-selected {
	animation: cardPulse 0.5s ease-in-out;
	box-shadow: 0 0 0 2px var(--primary), 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Loading animation */
@keyframes shimmer {
	0% {
		background-position: -468px 0;
	}
	100% {
		background-position: 468px 0;
	}
}

.loading-shimmer {
	background: linear-gradient(to right, #f6f7f8 8%, #edeef1 18%, #f6f7f8 33%);
	background-size: 800px 104px;
	animation: shimmer 1.25s infinite linear;
}

/* Final sentence highlight */
.final-sentence {
	transition: all 0.5s ease;
}

.final-sentence.updated {
	background-color: rgba(0, 119, 182, 0.1);
	animation: highlight 1s ease-out;
}

@keyframes highlight {
	0% {
		background-color: rgba(0, 119, 182, 0.3);
	}
	100% {
		background-color: rgba(0, 119, 182, 0.1);
	}
}

/* Prediction card hover effects */
.prediction-card {
	transition: all 0.2s ease;
}

.prediction-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Button hover effects */
.insert-mask-button {
	position: relative;
	overflow: hidden;
}

.insert-mask-button:after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 5px;
	height: 5px;
	background: rgba(255, 255, 255, 0.5);
	opacity: 0;
	border-radius: 100%;
	transform: scale(1, 1) translate(-50%);
	transform-origin: 50% 50%;
}

.insert-mask-button:hover:after {
	animation: ripple 1s ease-out;
}

@keyframes ripple {
	0% {
		transform: scale(0, 0);
		opacity: 0.5;
	}
	20% {
		transform: scale(25, 25);
		opacity: 0.3;
	}
	100% {
		opacity: 0;
		transform: scale(40, 40);
	}
}

/* Card hover effects */
.hover-card {
	transition: all 0.3s ease;
}

.hover-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
		0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Floating animation for some elements */
@keyframes float {
	0% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-10px);
	}
	100% {
		transform: translateY(0px);
	}
}

.animate-float {
	animation: float 6s ease-in-out infinite;
}

/* Pulse animation for call-to-action buttons */
@keyframes pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(0, 119, 182, 0.4);
	}
	70% {
		box-shadow: 0 0 0 10px rgba(0, 119, 182, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(0, 119, 182, 0);
	}
}

.animate-pulse {
	animation: pulse 2s infinite;
}

/* Wave animation for hero section */
.wave {
	animation: wave 3s ease-in-out infinite alternate;
}

@keyframes wave {
	from {
		transform: translateX(-5%);
	}
	to {
		transform: translateX(5%);
	}
}
