/* RocketWP Donation - Public Styles */

/* ========== Donation Button ========== */
.rocketwp-donation-wrapper {
	margin: 20px 0;
}

.rocketwp-donation-amounts {
	margin-bottom: 15px;
}

.rocketwp-donation-amount-options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-bottom: 10px;
}

.rocketwp-donation-amount-btn {
	padding: 10px 20px;
	border: 2px solid #0070ba;
	background: #fff;
	color: #0070ba;
	border-radius: 4px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	transition: all 0.2s ease;
}

.rocketwp-donation-amount-btn:hover,
.rocketwp-donation-amount-btn.active {
	background: #0070ba;
	color: #fff;
}

.rocketwp-donation-custom-amount {
	padding: 10px 15px;
	border: 2px solid #ddd;
	border-radius: 4px;
	font-size: 16px;
	width: 150px;
	text-align: center;
}

.rocketwp-donation-custom-amount:focus {
	border-color: #0070ba;
	outline: none;
	box-shadow: 0 0 0 1px #0070ba;
}

.rocketwp-donation-options {
	margin-bottom: 15px;
	text-align: center;
}

.rocketwp-donation-wall-option {
	font-size: 14px;
	color: #666;
	cursor: pointer;
	display: inline-block;
}

/* ========== PayPal Button Container ========== */
.rocketwp-donation-paypal-container {
	margin-top: 20px;
	max-width: 360px;
	margin-left: auto;
	margin-right: auto;
}

/* ========== Recurring Toggle - Segment Control ========== */
.rocketwp-donation-recurring-toggle {
	display: inline-flex;
	border: 2px solid #0070ba;
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: 15px;
}

.rocketwp-donation-recurring-option {
	position: relative;
	cursor: pointer;
	padding: 8px 20px;
	font-size: 14px;
	font-weight: 600;
	color: #0070ba;
	background: #fff;
	transition: all 0.2s ease;
	user-select: none;
}

.rocketwp-donation-recurring-option:first-child {
	border-right: 1px solid #0070ba;
}

.rocketwp-donation-recurring-option input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.rocketwp-donation-recurring-option:has(input:checked) {
	background: #0070ba;
	color: #fff;
}

.rocketwp-donation-recurring-option:hover:not(:has(input:checked)) {
	background: #e8f4fd;
}

/* ========== Submit Buttons - 7 Preset Styles ========== */
.rocketwp-donation-submit {
	padding: 10px 36px;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 700;
	transition: all 0.3s ease;
	display: inline-block;
	text-align: center;
	min-width: 180px;
	line-height: 1.4;
}

/* 1. Classic Blue */
.rocketwp-donation-style-classic-blue {
	background: #0070ba;
	color: #fff;
	box-shadow: 0 2px 4px rgba(0,112,186,0.3);
}
.rocketwp-donation-style-classic-blue:hover {
	background: #005ea6;
	box-shadow: 0 4px 8px rgba(0,112,186,0.4);
	transform: translateY(-1px);
}

/* 2. Gold */
.rocketwp-donation-style-gold {
	background: linear-gradient(135deg, #f5af19, #f12711);
	color: #fff;
	box-shadow: 0 2px 4px rgba(245,175,25,0.3);
}
.rocketwp-donation-style-gold:hover {
	box-shadow: 0 4px 12px rgba(245,175,25,0.5);
	transform: translateY(-1px);
}

/* 3. Green */
.rocketwp-donation-style-green {
	background: linear-gradient(135deg, #11998e, #38ef7d);
	color: #fff;
	box-shadow: 0 2px 4px rgba(17,153,142,0.3);
}
.rocketwp-donation-style-green:hover {
	box-shadow: 0 4px 12px rgba(17,153,142,0.5);
	transform: translateY(-1px);
}

/* 4. Red Heart */
.rocketwp-donation-style-red-heart {
	background: linear-gradient(135deg, #e74c3c, #c0392b);
	color: #fff;
	border-radius: 50px;
	box-shadow: 0 2px 4px rgba(231,76,60,0.3);
}
.rocketwp-donation-style-red-heart:hover {
	box-shadow: 0 4px 12px rgba(231,76,60,0.5);
	transform: scale(1.05);
}

/* 5. Minimal White */
.rocketwp-donation-style-minimal-white {
	background: #fff;
	color: #333;
	border: 2px solid #333;
	box-shadow: none;
}
.rocketwp-donation-style-minimal-white:hover {
	background: #333;
	color: #fff;
}

/* 6. Dark */
.rocketwp-donation-style-dark {
	background: #2c3e50;
	color: #ecf0f1;
	box-shadow: 0 2px 4px rgba(44,62,80,0.3);
}
.rocketwp-donation-style-dark:hover {
	background: #34495e;
	box-shadow: 0 4px 12px rgba(44,62,80,0.5);
	transform: translateY(-1px);
}

/* 7. Rainbow */
.rocketwp-donation-style-rainbow {
	background: linear-gradient(135deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
	background-size: 300% 300%;
	color: #fff;
	animation: rainbow-shift 3s ease infinite;
	box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.rocketwp-donation-style-rainbow:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.3);
	transform: translateY(-1px);
}

@keyframes rainbow-shift {
	0% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}

/* Custom image button */
.rocketwp-donation-custom-btn {
	min-height: 50px;
	min-width: 200px;
	border: none;
	padding: 0;
}

/* ========== Donation Wall ========== */
.rocketwp-donation-wall {
	margin: 30px 0;
}

.rocketwp-donation-wall-title {
	text-align: center;
	font-size: 24px;
	margin-bottom: 30px;
	color: #333;
}

.rocketwp-donation-wall-grid {
	display: grid;
	gap: 20px;
}

.rocketwp-donation-wall-columns-1 { grid-template-columns: repeat(1, 1fr); }
.rocketwp-donation-wall-columns-2 { grid-template-columns: repeat(2, 1fr); }
.rocketwp-donation-wall-columns-3 { grid-template-columns: repeat(3, 1fr); }
.rocketwp-donation-wall-columns-4 { grid-template-columns: repeat(4, 1fr); }
.rocketwp-donation-wall-columns-5 { grid-template-columns: repeat(5, 1fr); }
.rocketwp-donation-wall-columns-6 { grid-template-columns: repeat(6, 1fr); }

.rocketwp-donation-wall-item {
	text-align: center;
	padding: 20px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rocketwp-donation-wall-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.rocketwp-donation-wall-avatar {
	position: relative;
	display: inline-block;
	margin-bottom: 10px;
}

.rocketwp-donation-wall-avatar-letter {
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: #fff;
	font-weight: 700;
	text-transform: uppercase;
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
	transition: transform 0.2s ease;
}

.rocketwp-donation-wall-item:hover .rocketwp-donation-wall-avatar-letter {
	transform: scale(1.05);
}

.rocketwp-donation-wall-avatar img {
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid #eee;
}

.rocketwp-donation-wall-badge {
	position: absolute;
	top: -5px;
	right: -5px;
	padding: 3px 8px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	animation: badge-float 2s ease-in-out infinite;
}

.rocketwp-donation-wall-badge.badge-bronze { background: #CD7F32; }
.rocketwp-donation-wall-badge.badge-silver { background: #C0C0C0; color: #333; }
.rocketwp-donation-wall-badge.badge-gold { background: #FFD700; color: #333; }

@keyframes badge-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-2px); }
}

.rocketwp-donation-wall-name {
	font-weight: 600;
	font-size: 14px;
	color: #333;
	margin-bottom: 5px;
}

.rocketwp-donation-wall-amount {
	font-size: 16px;
	font-weight: 700;
	color: #0070ba;
	margin-bottom: 3px;
}

.rocketwp-donation-wall-date {
	font-size: 12px;
	color: #999;
}

/* ========== Wall Donate Button ========== */
.rocketwp-donation-wall-donate-action {
	text-align: right;
	margin-bottom: 25px;
}

.rocketwp-donation-wall-donate-btn .dashicons {
	vertical-align: middle;
	margin-right: 4px;
	font-size: 18px;
	width: 18px;
	height: 18px;
	line-height: 1;
}

.rocketwp-donation-wall-empty {
	text-align: center;
	color: #999;
	padding: 40px;
	font-size: 16px;
	grid-column: 1 / -1;
}

/* Message area */
.rocketwp-donation-message {
	margin-top: 15px;
	padding: 10px;
	border-radius: 4px;
	text-align: center;
}

.rocketwp-donation-message.success {
	background: #d4edda;
	color: #155724;
}

.rocketwp-donation-message.error {
	background: #f8d7da;
	color: #721c24;
}

/* Widget */
.rocketwp-donation-widget-description {
	font-size: 14px;
	color: #666;
	margin-bottom: 15px;
	line-height: 1.5;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
	.rocketwp-donation-wall-columns-4,
	.rocketwp-donation-wall-columns-5,
	.rocketwp-donation-wall-columns-6 {
		grid-template-columns: repeat(2, 1fr);
	}

	.rocketwp-donation-wall-columns-3 {
		grid-template-columns: repeat(2, 1fr);
	}

	.rocketwp-donation-submit {
		width: 100%;
	}

	.rocketwp-donation-custom-amount {
		width: 100%;
	}
}

@media (max-width: 480px) {
	.rocketwp-donation-wall-grid {
		grid-template-columns: repeat(1, 1fr) !important;
	}

	.rocketwp-donation-amount-options {
		flex-direction: column;
	}

	.rocketwp-donation-amount-btn {
		width: 100%;
	}
}
