@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;800&display=swap');

.a2t-page {
	font-family: "Titillium Web", arial, helvetica, sans-serif;
}

.a2t-app h3 {
	font-family: "Cinzel", "Titillium Web", serif;
}

.a2t-loading,
.a2t-empty {
	padding: 2em 0;
	color: #888;
	text-align: center;
}

.a2t-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.a2t-tab {
	padding: 8px 18px;
	border: 2px solid var(--cat-color, #ccc);
	border-radius: 999px;
	background: #fff;
	color: var(--cat-color, #555);
	font-weight: 700;
	font-size: 0.85em;
	cursor: pointer;
	opacity: 0.55;
	transition: all 0.15s ease;
}

.a2t-tab:first-child {
	border-color: #333;
	color: #333;
}

.a2t-tab.is-active {
	opacity: 1;
	background: var(--cat-color, #333);
	color: #fff;
	border-color: var(--cat-color, #333);
}

.a2t-add-btn {
	display: block;
	margin: 0 0 18px;
	padding: 0.7em 1.3em;
	border: none;
	border-radius: 999px;
	background: linear-gradient(135deg, #e8c675, #d1a44a);
	color: #1a1400;
	font-weight: 800;
	font-size: 0.85em;
	cursor: pointer;
	transition: filter 0.15s ease;
}

.a2t-add-btn:hover {
	filter: brightness(1.08);
}

.a2t-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
}

.a2t-card {
	position: relative;
	padding: 18px 20px;
	background: #fff;
	border: 2px solid #eee;
	border-top: 4px solid var(--cat-color, #ccc);
	border-radius: 14px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.a2t-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.a2t-card.is-active {
	border-color: var(--cat-color, #ccc);
	background: linear-gradient(180deg, #fffdf6, #fff);
}

.a2t-card-head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}

.a2t-card-icon {
	font-size: 1.4em;
}

.a2t-card-cat {
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--cat-color, #ccc);
	color: #fff;
	font-size: 0.7em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.a2t-card-delete {
	margin-left: auto;
	width: 24px;
	height: 24px;
	border: none;
	border-radius: 50%;
	background: #f4d4d0;
	color: #a13a2e;
	font-size: 0.75em;
	cursor: pointer;
}

.a2t-card-delete:hover {
	background: #e05a4e;
	color: #fff;
}

.a2t-card-title {
	margin: 0 0 6px;
	font-size: 1.05em;
	color: #222;
}

.a2t-card-desc {
	margin: 0 0 10px;
	color: #666;
	font-size: 0.82em;
	line-height: 1.5;
}

.a2t-countdown {
	font-family: "Cinzel", serif;
	font-size: 1.5em;
	font-weight: 800;
	color: var(--cat-color, #333);
	letter-spacing: 0.02em;
}

.a2t-card.is-active .a2t-countdown {
	color: #c0392b;
	animation: a2t-pulse 1.4s ease-in-out infinite;
}

@keyframes a2t-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.55; }
}

.a2t-card-at {
	margin-top: 4px;
	color: #999;
	font-size: 0.75em;
}

.a2t-card-upcoming {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px dashed #eee;
	color: #999;
	font-size: 0.72em;
}

.a2t-source {
	margin: 20px 2px 0;
	color: #aaa;
	font-size: 0.72em;
	line-height: 1.5;
}

/* ---------- Modale ---------- */

.a2t-modal-overlay[hidden] {
	display: none;
}

.a2t-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(10, 15, 25, 0.6);
}

.a2t-modal {
	position: relative;
	width: 100%;
	max-width: 420px;
	padding: 26px 28px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.a2t-modal h3 {
	margin: 0 0 16px;
}

.a2t-modal label {
	display: block;
	margin-bottom: 12px;
	font-size: 0.82em;
	font-weight: 700;
	color: #444;
}

.a2t-modal input,
.a2t-modal textarea {
	box-sizing: border-box;
	width: 100%;
	margin-top: 5px;
	padding: 0.6em 0.8em;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 0.9em;
	font-weight: 400;
	font-family: inherit;
}

.a2t-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 999px;
	background: #f3f3f3;
	font-size: 1.2em;
	cursor: pointer;
}

.a2t-form-submit {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 0.75em 1em;
	border: none;
	border-radius: 10px;
	background: linear-gradient(135deg, #2c6fa8, #6dc3ff);
	color: #fff;
	font-weight: 800;
	cursor: pointer;
}
