/**
 * Obituary Gift Buttons – Button Styles
 *
 * @package Obituary_Gift_Buttons
 */

/* ============================================================
   Button Group Container
   ============================================================ */
.ogb-button-group {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 28px 0;
	align-items: center;
	justify-content: center;
}

.ogb-button-group.ogb-layout-horizontal {
	flex-direction: row;
}

.ogb-button-group.ogb-layout-vertical {
	flex-direction: column;
	align-items: center;
}

/* ============================================================
   Individual Button
   Matches the modal's .ogb-btn-primary for visual consistency
   between the plugin admin/modal and the obituary-page render.
   ============================================================ */
.ogb-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 28px;
	min-width: 180px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.2px;
	color: #ffffff;
	background: #682145;
	background-image: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(0,0,0,0.08) 100%);
	border: none;
	border-radius: 50px;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18), 0 1px 4px rgba(0, 0, 0, 0.1);
	min-height: 52px;
	-webkit-font-smoothing: antialiased;
}

.ogb-button:hover,
.ogb-button:focus-visible {
	filter: brightness(1.12);
	color: #ffffff;
	transform: translateY(-2px) scale(1.02);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.12);
	outline: none;
	text-decoration: none;
}

.ogb-button:active {
	transform: translateY(0) scale(1);
	box-shadow: 0 4px 12px rgba(104, 33, 69, 0.2);
	transition: all 0.1s ease;
}

.ogb-button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

/* Icon */
.ogb-button-icon {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.ogb-button-icon svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

/* ============================================================
   Light a Candle Button
   ============================================================ */
.ogb-candle-button {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	background: #fff8f0;
	color: #7a4e2d;
	border: 2px solid #e8cdb0;
	border-radius: 50px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
	min-height: 52px;
	-webkit-font-smoothing: antialiased;
}

.ogb-candle-button:hover {
	background: #fff0dd;
	border-color: #d4956e;
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(212, 149, 110, 0.28);
	color: #6b3e1e;
}

.ogb-candle-button:active {
	transform: translateY(0);
	transition: all 0.1s ease;
}

.ogb-candle-button.ogb-candle-lit {
	background: linear-gradient(135deg, #f7a94b 0%, #e8763a 100%);
	color: #ffffff;
	border-color: #d4662a;
	box-shadow: 0 4px 20px rgba(232, 118, 58, 0.45);
	animation: ogb-candle-ignite 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.ogb-candle-button.ogb-candle-lit:hover {
	filter: brightness(1.1);
	transform: translateY(-2px);
	color: #ffffff;
}

.ogb-candle-button.ogb-candle-lit .ogb-candle-count {
	background: rgba(255, 255, 255, 0.3);
	color: #ffffff;
}

.ogb-candle-icon {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	line-height: 0;
}

.ogb-candle-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 7px;
	background: rgba(122, 78, 45, 0.12);
	border-radius: 11px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	color: inherit;
	transition: all 0.25s ease;
}

.ogb-candle-count-hidden {
	display: none;
}

@keyframes ogb-candle-ignite {
	0%   { transform: scale(1); }
	45%  { transform: scale(1.09); }
	100% { transform: scale(1); }
}

/* ============================================================
   Toast Notifications
   ============================================================ */
.ogb-toast {
	position: fixed;
	bottom: -80px;
	right: 20px;
	z-index: 1000001;
	padding: 13px 20px;
	max-width: 320px;
	background: #333333;
	color: #ffffff;
	font-size: 14px;
	font-weight: 500;
	border-radius: 6px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
	transition: bottom 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
	pointer-events: none;
}

.ogb-toast.ogb-toast-visible {
	bottom: 20px;
}

.ogb-toast.ogb-toast-success {
	background: #2A9D8F;
}

.ogb-toast.ogb-toast-error {
	background: #E63946;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 600px) {
	.ogb-button-group.ogb-layout-horizontal {
		flex-direction: column;
		align-items: stretch;
	}

	.ogb-button {
		width: 100%;
		min-width: unset;
		justify-content: center;
	}

	.ogb-toast {
		right: 10px;
		left: 10px;
		max-width: unset;
	}
}