/* ==========================================================================
   Mascoteria Core - Frontend Styles
   ========================================================================== */

/* WhatsApp Button */
.mascoteria-whatsapp-btn {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 60px;
	height: 60px;
	background-color: #25d366;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	z-index: 9999;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	text-decoration: none;
}

.mascoteria-whatsapp-btn:hover {
	transform: scale(1.1);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Dashboard Widgets */
.mascoteria-dashboard-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin: 24px 0;
}

.dashboard-widget {
	background: #f9f9f9;
	border-radius: 12px;
	padding: 24px;
	text-align: center;
	border: 1px solid #e8e8e3;
}

.dashboard-widget h3 {
	margin: 0 0 8px;
	font-size: 14px;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.dashboard-widget .widget-number {
	font-size: 36px;
	font-weight: 800;
	color: #2d6a4f;
	line-height: 1.2;
}

.dashboard-widget .widget-sublabel {
	font-size: 13px;
	color: #888;
	margin: 4px 0 12px;
}

.dashboard-widget a {
	font-size: 14px;
	color: #2d6a4f;
	text-decoration: none;
	font-weight: 600;
}

.dashboard-widget a:hover {
	text-decoration: underline;
}

/* Pet Cards */
.mascoteria-pets-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
	margin-bottom: 32px;
}

.mascoteria-pet-card {
	background: #ffffff;
	border: 1px solid #e8e8e3;
	border-radius: 12px;
	overflow: hidden;
	transition: box-shadow 0.2s ease;
}

.mascoteria-pet-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pet-card-header {
	background: linear-gradient(135deg, #2d6a4f, #40916c);
	color: #fff;
	padding: 16px 20px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.pet-type-icon {
	font-size: 28px;
}

.pet-card-header h3 {
	margin: 0;
	font-size: 18px;
	color: #fff;
}

.pet-card-body {
	padding: 16px 20px;
}

.pet-card-body p {
	margin: 6px 0;
	font-size: 14px;
	color: #444;
}

.pet-card-actions {
	padding: 12px 20px;
	border-top: 1px solid #e8e8e3;
	display: flex;
	gap: 8px;
}

.pet-card-actions .button {
	font-size: 13px;
	padding: 6px 16px;
	border-radius: 6px;
	text-decoration: none;
}

.pet-card-actions .button-danger {
	color: #d32f2f;
	border-color: #d32f2f;
}

/* Pet Form */
.mascoteria-pet-form {
	background: #f9f9f9;
	border-radius: 12px;
	padding: 24px;
	border: 1px solid #e8e8e3;
}

.mascoteria-pet-form h3 {
	margin-top: 0;
}

.mascoteria-pet-form .woocommerce-Input,
.mascoteria-pet-form input[type="text"],
.mascoteria-pet-form select,
.mascoteria-pet-form textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 14px;
}

.mascoteria-pet-form select {
	appearance: auto;
}

/* Points */
.mascoteria-points-summary {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 24px;
}

.points-balance,
.points-value {
	background: linear-gradient(135deg, #2d6a4f, #40916c);
	color: #fff;
	border-radius: 12px;
	padding: 28px;
	text-align: center;
}

.points-balance .points-number,
.points-value .points-number {
	display: block;
	font-size: 42px;
	font-weight: 800;
	line-height: 1.2;
}

.points-balance .points-label,
.points-value .points-label {
	display: block;
	font-size: 14px;
	opacity: 0.85;
	margin-top: 4px;
}

.mascoteria-points-info {
	background: #f9f9f9;
	border-radius: 8px;
	padding: 16px 20px;
	margin-bottom: 24px;
	border: 1px solid #e8e8e3;
}

.mascoteria-points-info p {
	margin: 4px 0;
	font-size: 14px;
}

.points-positive {
	color: #2d6a4f;
	font-weight: 600;
}

.points-negative {
	color: #d32f2f;
	font-weight: 600;
}

/* Membership */
.mascoteria-membership {
	max-width: 500px;
}

.membership-card {
	border-radius: 16px;
	padding: 32px;
	color: #fff;
	margin-bottom: 24px;
	position: relative;
	overflow: hidden;
}

.membership-card::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -30%;
	width: 200px;
	height: 200px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
}

.membership-basico {
	background: linear-gradient(135deg, #546e7a, #78909c);
}

.membership-plata {
	background: linear-gradient(135deg, #757575, #bdbdbd);
}

.membership-oro {
	background: linear-gradient(135deg, #f9a825, #fdd835);
	color: #333;
}

.membership-level {
	font-size: 28px;
	font-weight: 800;
	margin-bottom: 8px;
}

.membership-name {
	font-size: 16px;
	opacity: 0.9;
	margin-bottom: 16px;
}

.membership-stats {
	display: flex;
	gap: 20px;
	font-size: 14px;
	opacity: 0.85;
}

.membership-progress {
	margin-bottom: 24px;
}

.progress-bar {
	background: #e0e0e0;
	border-radius: 8px;
	height: 12px;
	overflow: hidden;
	margin: 8px 0;
}

.progress-fill {
	background: linear-gradient(90deg, #2d6a4f, #40916c);
	height: 100%;
	border-radius: 8px;
	transition: width 0.5s ease;
}

.progress-text {
	font-size: 13px;
	color: #666;
}

.membership-benefits ul {
	list-style: none;
	padding: 0;
}

.membership-benefits li {
	padding: 8px 0 8px 28px;
	position: relative;
	font-size: 14px;
	border-bottom: 1px solid #f0f0f0;
}

.membership-benefits li::before {
	content: '\2713';
	position: absolute;
	left: 0;
	color: #2d6a4f;
	font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
	.mascoteria-points-summary {
		grid-template-columns: 1fr;
	}

	.mascoteria-pets-grid {
		grid-template-columns: 1fr;
	}

	.mascoteria-dashboard-widgets {
		grid-template-columns: 1fr;
	}

	.mascoteria-whatsapp-btn {
		bottom: 16px;
		right: 16px;
		width: 52px;
		height: 52px;
	}

	.mascoteria-whatsapp-btn svg {
		width: 28px;
		height: 28px;
	}
}
