/*
Theme Name: Reminder
*/

/* Reset e stili base moderni */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	min-height: 100vh;
	color: #2d3748;
	line-height: 1.6;
}

/* Container principale */
.reminder-container {
	max-width: 800px;
	margin: 0 auto;
	padding: 2rem 1rem;
}

/* Header elegante */
.reminder-header {
	text-align: center;
	margin-bottom: 3rem;
}

.reminder-header h1 {
	font-size: 3rem;
	font-weight: 800;
	color: white;
	margin-bottom: 0.5rem;
	letter-spacing: -1px;
	text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.reminder-header p {
	color: rgba(255, 255, 255, 0.8);
	font-size: 1.2rem;
	font-weight: 300;
}

/* Card del form con glass effect */
.reminder-form {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(20px);
	border-radius: 20px;
	padding: 3rem;
	margin-bottom: 3rem;
	box-shadow: 
		0 25px 50px -12px rgba(0, 0, 0, 0.25),
		0 0 0 1px rgba(255, 255, 255, 0.3);
	border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Form groups */
.form-group {
	margin-bottom: 2rem;
}

.form-group label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
	color: #4a5568;
	font-size: 1rem;
}

.form-group input,
.form-group textarea {
	width: 100%;
	padding: 1rem 1.25rem;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.8);
	color: #2d3748;
	font-size: 1rem;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:focus,
.form-group textarea:focus {
	outline: none;
	border-color: #667eea;
	background: rgba(255, 255, 255, 1);
	box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
	transform: translateY(-1px);
}

/* Tabs moderni */
.timer-type-tabs {
	display: flex;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 16px;
	padding: 6px;
	margin-bottom: 2rem;
	backdrop-filter: blur(10px);
}

.timer-type-tab {
	flex: 1;
	padding: 1rem 1.5rem;
	background: transparent;
	border: none;
	color: #718096;
	font-size: 1rem;
	font-weight: 600;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timer-type-tab.active {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
	transform: translateY(-1px);
}

/* Grid layouts responsive */
.form-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.time-inputs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
}

.time-input-group {
	text-align: center;
}

.time-input-group label {
	font-size: 0.875rem;
	color: #718096;
	margin-bottom: 0.5rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 500;
}

.time-input-group input {
	text-align: center;
	padding: 0.75rem 0.5rem;
	font-size: 1.1rem;
	font-weight: 600;
}

/* Bottone principale moderno */
.submit-btn {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border: none;
	padding: 1.25rem 3rem;
	font-size: 1.1rem;
	font-weight: 700;
	border-radius: 16px;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	width: 100%;
}

.submit-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.submit-btn:active {
	transform: translateY(-1px);
}

/* Sezione timer predefiniti */
.preset-timers-section {
	margin-bottom: 3rem;
}

.preset-timers-section h2 {
	text-align: center;
	color: white;
	font-size: 1.8rem;
	font-weight: 700;
	margin-bottom: 2rem;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.preset-timers-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1.5rem;
}

.preset-timer-btn {
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(20px);
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 16px;
	padding: 1.5rem;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	text-align: center;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.preset-timer-btn:hover {
	transform: translateY(-3px) scale(1.02);
	background: rgba(255, 255, 255, 1);
	border-color: rgba(102, 126, 234, 0.5);
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.preset-timer-icon {
	font-size: 2rem;
	margin-bottom: 0.5rem;
}

.preset-timer-name {
	font-size: 1.1rem;
	font-weight: 700;
	color: #2d3748;
	line-height: 1.2;
}

.preset-timer-duration {
	font-size: 0.9rem;
	color: #667eea;
	font-weight: 600;
	background: rgba(102, 126, 234, 0.1);
	padding: 0.25rem 0.75rem;
	border-radius: 20px;
}

/* Timer Chest con dropdown */
.chest-timer {
	cursor: default !important;
}

.chest-timer:hover {
	transform: translateY(-3px) scale(1.02) !important;
	background: rgba(255, 255, 255, 1) !important;
	border-color: rgba(102, 126, 234, 0.5) !important;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
}

.chest-timer-select {
	width: 100%;
	padding: 0.5rem;
	border: 2px solid #e2e8f0;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.9);
	color: #2d3748;
	font-size: 0.9rem;
	font-weight: 600;
	margin-bottom: 0.75rem;
	transition: all 0.3s ease;
}

.chest-timer-select:focus {
	outline: none;
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.chest-timer-btn {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border: none;
	padding: 0.5rem 1.5rem;
	font-size: 0.9rem;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	width: 100%;
}

.chest-timer-btn:hover {
	background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
	transform: translateY(-1px);
}

/* Timer Chief Order con dropdown */
.chief-order-timer {
	cursor: default !important;
}

.chief-order-timer:hover {
	transform: translateY(-3px) scale(1.02) !important;
	background: rgba(255, 255, 255, 1) !important;
	border-color: rgba(102, 126, 234, 0.5) !important;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
}

.chief-order-timer-select {
	width: 100%;
	padding: 0.5rem;
	border: 2px solid #e2e8f0;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.9);
	color: #2d3748;
	font-size: 0.9rem;
	font-weight: 600;
	margin-bottom: 0.75rem;
	transition: all 0.3s ease;
}

.chief-order-timer-select:focus {
	outline: none;
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.chief-order-timer-btn {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border: none;
	padding: 0.5rem 1.5rem;
	font-size: 0.9rem;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	width: 100%;
}

.chief-order-timer-btn:hover {
	background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
	transform: translateY(-1px);
}

/* Timer Pet Skills con dropdown */
.pet-skills-timer {
	cursor: default !important;
}

.pet-skills-timer:hover {
	transform: translateY(-3px) scale(1.02) !important;
	background: rgba(255, 255, 255, 1) !important;
	border-color: rgba(102, 126, 234, 0.5) !important;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
}

.pet-skills-timer-select {
	width: 100%;
	padding: 0.5rem;
	border: 2px solid #e2e8f0;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.9);
	color: #2d3748;
	font-size: 0.9rem;
	font-weight: 600;
	margin-bottom: 0.75rem;
	transition: all 0.3s ease;
}

.pet-skills-timer-select:focus {
	outline: none;
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.pet-skills-timer-btn {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border: none;
	padding: 0.5rem 1.5rem;
	font-size: 0.9rem;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	width: 100%;
}

.pet-skills-timer-btn:hover {
	background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
	transform: translateY(-1px);
}

/* Lista timer con design cards */
.reminder-timer-list {
	list-style: none;
	display: grid;
	gap: 1.5rem;
}

.reminder-timer-list li {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(20px);
	border-radius: 20px;
	padding: 2rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	box-shadow: 
		0 20px 40px -12px rgba(0, 0, 0, 0.15),
		0 0 0 1px rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.3);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.reminder-timer-list li:hover {
	transform: translateY(-5px);
	box-shadow: 
		0 30px 60px -12px rgba(0, 0, 0, 0.25),
		0 0 0 1px rgba(102, 126, 234, 0.3);
	border-color: rgba(102, 126, 234, 0.3);
}

.timer-info {
	flex: 1;
}

.timer-description {
	font-size: 1.3rem;
	font-weight: 700;
	color: #2d3748;
	margin-bottom: 0.5rem;
	line-height: 1.3;
}

.reminder-timer-date {
	font-size: 1rem;
	color: #718096;
	font-weight: 500;
}

.reminder-timer-countdown {
	font-size: 2rem;
	font-weight: 900;
	color: #667eea;
	margin: 0 2rem;
	font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
	text-align: center;
	min-width: 180px;
}

.reminder-timer-expired {
	color: #e53e3e !important;
	animation: pulse-glow 1.5s ease-in-out infinite;
}

@keyframes pulse-glow {
	0%, 100% { 
		opacity: 1; 
		text-shadow: 0 0 5px rgba(229, 62, 62, 0.3);
	}
	50% { 
		opacity: 0.8; 
		text-shadow: 0 0 15px rgba(229, 62, 62, 0.6);
	}
}

.reminder-delete-btn {
	background: linear-gradient(135deg, #fc8181 0%, #e53e3e 100%);
	color: white;
	border: none;
	padding: 0.75rem 1rem;
	border-radius: 12px;
	cursor: pointer;
	font-size: 1.2rem;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

.reminder-delete-btn:hover {
	background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
	transform: translateY(-2px) scale(1.05);
	box-shadow: 0 8px 20px rgba(229, 62, 62, 0.4);
}

/* Animazioni e microinterazioni */
.timer-info, .reminder-timer-countdown, .reminder-delete-btn {
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive design avanzato */
@media (max-width: 768px) {
	.reminder-container {
		padding: 1rem 0.5rem;
	}
	
	.reminder-header h1 {
		font-size: 2.5rem;
	}
	
	.reminder-form {
		padding: 2rem 1.5rem;
		border-radius: 16px;
	}
	
	.form-row {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
	
	.time-inputs {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.75rem;
	}
	
	.reminder-timer-list li {
		flex-direction: column;
		align-items: stretch;
		gap: 1.5rem;
		padding: 1.5rem;
	}
	
	.reminder-timer-countdown {
		margin: 0;
		text-align: center;
		min-width: auto;
		font-size: 1.8rem;
	}
	
	.timer-info {
		text-align: center;
	}
	
	.reminder-delete-btn {
		align-self: center;
	}
	
	.preset-timers-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
}

@media (max-width: 480px) {
	.reminder-header h1 {
		font-size: 2rem;
	}
	
	.time-inputs {
		grid-template-columns: 1fr 1fr;
	}
	
	.submit-btn {
		padding: 1rem 2rem;
		font-size: 1rem;
	}
}