/* ===========================
   Tarot Reading Plugin Styles
   =========================== */

.tarot-wrapper {
	max-width: 900px;
	margin: 2rem auto;
	font-family: 'Georgia', serif;
	color: #1a1a2e;
}

/* Header */
.tarot-header {
	text-align: center;
	margin-bottom: 2rem;
}

.tarot-header__titulo {
	font-size: 2rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: #2c1654;
	margin: 0 0 0.4rem;
}

.tarot-header__subtipo {
	font-size: 0.95rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #7a5c9e;
	margin: 0;
}

/* Button */
.tarot-controls {
	text-align: center;
	margin-bottom: 2.5rem;
}

.tarot-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	background: linear-gradient(135deg, #2c1654, #7a5c9e);
	color: #fff;
	border: none;
	border-radius: 50px;
	padding: 0.85rem 2.2rem;
	font-size: 1rem;
	font-family: inherit;
	letter-spacing: 0.08em;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
	box-shadow: 0 4px 20px rgba(122, 92, 158, 0.35);
}

.tarot-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 28px rgba(122, 92, 158, 0.45);
}

.tarot-btn:active {
	transform: translateY(0);
}

.tarot-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.tarot-btn__icon {
	font-size: 1.1rem;
	animation: tarot-spin-slow 6s linear infinite;
}

@keyframes tarot-spin-slow {
	from { transform: rotate(0deg); }
	to   { transform: rotate(360deg); }
}

/* Cards grid */
.tarot-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin-bottom: 2rem;
}

@media (max-width: 640px) {
	.tarot-cards {
		grid-template-columns: 1fr;
		max-width: 320px;
		margin-left: auto;
		margin-right: auto;
	}
}

/* Individual card */
.tarot-card {
	display: flex;
	flex-direction: column;
	animation: tarot-fade-up 0.6s ease both;
}

@keyframes tarot-fade-up {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.tarot-card__position {
	text-align: center;
	font-size: 0.7rem;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: #7a5c9e;
	margin-bottom: 0.75rem;
	font-family: 'Arial', sans-serif;
}

/* Card face */
.tarot-card__face {
	background: linear-gradient(160deg, var(--card-color, #2c1654), #1a1a2e);
	border-radius: 14px;
	padding: 1.5rem 1rem;
	text-align: center;
	color: #fff;
	position: relative;
	overflow: hidden;
	box-shadow: 0 6px 24px rgba(0,0,0,0.25);
	aspect-ratio: 2/3;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	transition: transform 0.3s ease;
}

.tarot-card__face::before {
	content: '';
	position: absolute;
	inset: 8px;
	border: 1px solid rgba(255,255,255,0.2);
	border-radius: 8px;
	pointer-events: none;
}

.tarot-card--invertida .tarot-card__face {
	transform: rotate(180deg);
}

.tarot-card--invertida .tarot-card__orientacion {
	transform: rotate(180deg);
}

.tarot-card__simbolo {
	font-size: 2.2rem;
	line-height: 1;
	filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

.tarot-card__arcano {
	font-size: 0.6rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	opacity: 0.7;
	font-family: 'Arial', sans-serif;
}

.tarot-card__numero {
	font-size: 1rem;
	opacity: 0.6;
}

.tarot-card__nombre {
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.2;
}

.tarot-card__orientacion {
	font-size: 0.65rem;
	letter-spacing: 0.1em;
	font-family: 'Arial', sans-serif;
	opacity: 0.8;
	margin-top: 0.5rem;
}

.tarot-card__orientacion--inv {
	color: #f1948a;
}

/* Meaning block */
.tarot-card__significado {
	margin-top: 1rem;
	padding: 0 0.25rem;
}

.tarot-card__palabra {
	display: inline-block;
	font-size: 0.65rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #7a5c9e;
	font-family: 'Arial', sans-serif;
	margin-bottom: 0.35rem;
}

.tarot-card__significado p {
	font-size: 0.88rem;
	line-height: 1.65;
	color: #333;
	margin: 0;
}

/* Loading */
.tarot-loading {
	text-align: center;
	padding: 2rem;
	color: #7a5c9e;
	font-size: 0.9rem;
	letter-spacing: 0.05em;
}

.tarot-loading__dots {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.tarot-loading__dots span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #7a5c9e;
	animation: tarot-dot-pulse 1.2s ease-in-out infinite;
}

.tarot-loading__dots span:nth-child(2) { animation-delay: 0.2s; }
.tarot-loading__dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes tarot-dot-pulse {
	0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
	40%           { transform: scale(1);   opacity: 1; }
}

/* Disclaimer */
.tarot-disclaimer {
	text-align: center;
	margin-top: 1.5rem;
}

.tarot-disclaimer p {
	font-size: 0.72rem;
	color: #aaa;
	font-family: 'Arial', sans-serif;
	letter-spacing: 0.03em;
	margin: 0;
}
