/* ==========================================================================
   Prayer Wall – Styles
   ========================================================================== */

/* Wrapper */
.pw-wrap {
	max-width: 780px;
	margin: 0 auto;
	font-family: inherit;
	color: inherit;
}

/* -------------------------------------------------------------------------
   Tabs
   ------------------------------------------------------------------------- */
.pw-tabs {
	display: flex;
	gap: 4px;
	border-bottom: 2px solid #c5c5c5;
	margin-bottom: 24px;
}

.pw-tab {
	padding: 10px 20px;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
	color: #555;
	transition: color 0.15s, border-color 0.15s;
}

.pw-tab:hover {
	color: #333;
}

.pw-tab--active {
	color: #4a6fa5;
	border-bottom-color: #4a6fa5;
}

/* -------------------------------------------------------------------------
   Tab panels
   ------------------------------------------------------------------------- */
.pw-tab-content {
	display: none;
}

.pw-tab-content--active {
	display: block;
}

/* -------------------------------------------------------------------------
   Prayer cards (wall)
   ------------------------------------------------------------------------- */
.pw-wall {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.pw-card {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 18px 20px;
	box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.pw-card--mine {
	border-left: 4px solid #4a6fa5;
}

.pw-card__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
	flex-wrap: wrap;
	gap: 6px;
}

.pw-card__number {
	font-size: 12px;
	font-family: monospace;
	color: #888;
	letter-spacing: 0.04em;
}

.pw-card__date {
	font-size: 12px;
	color: #aaa;
}

.pw-card__text {
	margin: 0 0 12px;
	line-height: 1.7;
}

.pw-card__update {
	background: #f7f8fa;
	border-left: 3px solid #4a6fa5;
	padding: 10px 14px;
	border-radius: 0 4px 4px 0;
	margin-top: 12px;
	font-size: 14px;
}

.pw-card__update p {
	margin: 6px 0 0;
}

.pw-card__footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 14px;
	flex-wrap: wrap;
	gap: 10px;
}

.pw-card__requester {
	font-size: 13px;
	color: #777;
	font-style: italic;
}

.pw-card__actions {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.pw-btn {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	border-radius: 5px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid transparent;
	transition: background 0.15s, color 0.15s, opacity 0.15s;
	line-height: 1.4;
}

.pw-btn--primary {
	background: #4a6fa5;
	color: #fff;
	border-color: #3d5f90;
}

.pw-btn--primary:hover {
	background: #3d5f90;
}

.pw-btn--secondary {
	background: #f0f0f0;
	color: #333;
	border-color: #ccc;
}

.pw-btn--secondary:hover {
	background: #e0e0e0;
}

.pw-btn--pray {
	background: #2e7d32;
	color: #fff;
	border-color: #256427;
}

.pw-btn--pray:hover {
	background: #256427;
}

.pw-btn--flag {
	background: none;
	border: none;
	color: #bbb;
	font-size: 12px;
	font-weight: 400;
	padding: 4px 8px;
	text-decoration: underline;
	cursor: pointer;
}

.pw-btn--flag:hover {
	color: #c62828;
}

.pw-btn:disabled,
.pw-btn[disabled] {
	opacity: 0.5;
	cursor: default;
}

/* -------------------------------------------------------------------------
   Badges
   ------------------------------------------------------------------------- */
.pw-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
}

.pw-badge--prayed {
	background: #e8f5e9;
	color: #2e7d32;
}

.pw-badge--full {
	background: #f3f3f3;
	color: #999;
}

/* -------------------------------------------------------------------------
   Forms
   ------------------------------------------------------------------------- */
.pw-form {
	max-width: 600px;
}

.pw-form__group {
	margin-bottom: 18px;
}

.pw-form__group label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 14px;
}

.pw-form__group input[type="text"],
.pw-form__group textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 5px;
	font-size: 14px;
	font-family: inherit;
	box-sizing: border-box;
	transition: border-color 0.15s;
}

.pw-form__group input[type="text"]:focus,
.pw-form__group textarea:focus {
	border-color: #4a6fa5;
	outline: none;
	box-shadow: 0 0 0 3px rgba(74,111,165,.15);
}

.pw-form__char-count {
	display: block;
	text-align: right;
	font-size: 12px;
	color: #999;
	margin-top: 4px;
}

.pw-required {
	color: #c62828;
}

/* Honeypot – must be visually hidden but not with display:none (some bots check) */
.pw-honeypot {
	position: absolute;
	left: -9999px;
	top: -9999px;
	opacity: 0;
	height: 0;
	overflow: hidden;
}

/* -------------------------------------------------------------------------
   Alerts
   ------------------------------------------------------------------------- */
.pw-alert {
	padding: 12px 16px;
	border-radius: 5px;
	margin-bottom: 16px;
	font-size: 14px;
}

.pw-alert--success {
	background: #e8f5e9;
	border: 1px solid #a5d6a7;
	color: #1b5e20;
}

.pw-alert--error {
	background: #ffebee;
	border: 1px solid #ef9a9a;
	color: #b71c1c;
}

.pw-alert--info {
	background: #e3f2fd;
	border: 1px solid #90caf9;
	color: #0d47a1;
}

/* -------------------------------------------------------------------------
   Prayer number display (after submission)
   ------------------------------------------------------------------------- */
.pw-prayer-number-box {
	background: #fffde7;
	border: 2px solid #f9a825;
	border-radius: 8px;
	padding: 20px 24px;
	margin-bottom: 24px;
	text-align: center;
}

.pw-prayer-number {
	display: block;
	font-size: 22px;
	font-family: monospace;
	letter-spacing: 0.08em;
	margin: 10px 0;
	color: #333;
}

.pw-note {
	font-size: 13px;
	color: #666;
	margin: 8px 0 0;
}

/* -------------------------------------------------------------------------
   Empty state
   ------------------------------------------------------------------------- */
.pw-empty {
	text-align: center;
	color: #999;
	font-size: 15px;
	padding: 40px 0;
}

/* -------------------------------------------------------------------------
   Pagination
   ------------------------------------------------------------------------- */
.pw-pagination {
	display: flex;
	gap: 6px;
	margin-top: 24px;
	justify-content: center;
	flex-wrap: wrap;
}

.pw-pagination__link {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	text-decoration: none;
	color: #4a6fa5;
	font-size: 14px;
}

.pw-pagination__link--active {
	background: #4a6fa5;
	color: #fff;
	border-color: #4a6fa5;
}

/* -------------------------------------------------------------------------
   Confirmation modal
   ------------------------------------------------------------------------- */
.pw-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pw-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.55);
}

.pw-modal__box {
	position: relative;
	background: #fff;
	border-radius: 10px;
	padding: 32px 36px;
	max-width: 420px;
	width: 90%;
	box-shadow: 0 8px 30px rgba(0,0,0,.2);
	z-index: 1;
}

.pw-modal__message {
	font-size: 16px;
	margin: 0 0 20px;
	line-height: 1.5;
	text-align: center;
}

.pw-modal__actions {
	display: flex;
	gap: 12px;
	justify-content: center;
}

/* -------------------------------------------------------------------------
   Divider
   ------------------------------------------------------------------------- */
.pw-divider {
	border: none;
	border-top: 1px solid #eee;
	margin: 24px 0;
}

/* -------------------------------------------------------------------------
   Admin status badges
   ------------------------------------------------------------------------- */
.pw-status--active    { color: #2e7d32; font-weight: 600; }
.pw-status--fulfilled { color: #b45309; font-weight: 600; }
.pw-status--spam      { color: #c62828; font-weight: 600; }

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 560px) {
	.pw-card__footer {
		flex-direction: column;
		align-items: flex-start;
	}
	.pw-modal__box {
		padding: 24px 20px;
	}
	.pw-tabs {
		flex-wrap: wrap;
	}
}
