/**
 * User Stories & Testimonials Styling
 */

/* Variables */
:root {
	--us-primary-color: #ba2026; /* Blood red to match Blessed By His Blood branding */
	--us-primary-hover: #981a1e;
	--us-bg-card: #f9f8f6; /* Warm off-white card background from screenshot */
	--us-border-color: rgba(0, 0, 0, 0.04);
	--us-text-main: #111111;
	--us-text-muted: #666666;
	--us-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
	--us-shadow-hover: 0 15px 35px rgba(186, 32, 38, 0.08);
	--us-radius: 20px; /* Slightly larger border radius for premium cards */
	--us-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Common Styles */
.user-stories-login-prompt,
.user-stories-form-wrapper,
.story-card,
.my-stories-dashboard {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	box-sizing: border-box;
}

.user-stories-login-prompt *,
.user-stories-form-wrapper *,
.story-card *,
.my-stories-dashboard * {
	box-sizing: border-box;
}

/* 1. Login Prompt Styling */
.user-stories-login-prompt {
	max-width: 500px;
	margin: 40px auto;
	padding: 40px;
	text-align: center;
	background: var(--us-bg-card);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid var(--us-border-color);
	border-radius: var(--us-radius);
	box-shadow: var(--us-shadow);
}

.user-stories-login-prompt .prompt-icon {
	width: 70px;
	height: 70px;
	margin: 0 auto 20px;
	background: rgba(99, 102, 241, 0.1);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.user-stories-login-prompt .prompt-icon .dashicons {
	font-size: 32px;
	width: 32px;
	height: 32px;
	color: var(--us-primary-color);
}

.user-stories-login-prompt h3 {
	margin: 0 0 10px;
	font-size: 22px;
	color: var(--us-text-main);
	font-weight: 700;
}

.user-stories-login-prompt p {
	margin: 0 0 25px;
	color: var(--us-text-muted);
	line-height: 1.6;
}

.user-stories-login-prompt .btn-login {
	display: inline-block;
	background: var(--us-primary-color);
	color: #fff !important;
	padding: 12px 30px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	border-radius: 30px;
	transition: var(--us-transition);
	box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.user-stories-login-prompt .btn-login:hover {
	background: var(--us-primary-hover);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* 2. Submission Form Styling */
.user-stories-form-wrapper {
	max-width: 700px;
	margin: 40px auto;
	padding: 40px;
	background: var(--us-bg-card);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid var(--us-border-color);
	border-radius: var(--us-radius);
	box-shadow: var(--us-shadow);
}

.user-stories-form-wrapper .form-header {
	margin-bottom: 30px;
	border-bottom: 1px solid var(--us-border-color);
	padding-bottom: 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.form-header-title {
	flex-grow: 1;
}

.form-header-actions {
	flex-shrink: 0;
}

.btn-back-dashboard,
.btn-back-list {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 1.5px solid var(--us-text-muted);
	color: var(--us-text-muted) !important;
	background: transparent;
	padding: 8px 16px;
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	border-radius: 30px;
	transition: var(--us-transition);
}

.btn-back-dashboard:hover,
.btn-back-list:hover {
	background: rgba(100, 116, 139, 0.05);
	border-color: var(--us-text-main);
	color: var(--us-text-main) !important;
	transform: translateY(-2px);
}

.btn-back-dashboard .dashicons,
.btn-back-list .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
}

.user-stories-form-wrapper .form-header h2 {
	margin: 0 0 8px;
	font-size: 26px;
	font-weight: 700;
	color: var(--us-text-main);
}

.user-stories-form-wrapper .form-header p {
	margin: 0;
	color: var(--us-text-muted);
	line-height: 1.5;
}

.user-stories-form-wrapper .form-group {
	margin-bottom: 22px;
}

.user-stories-form-wrapper label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	font-size: 14px;
	color: var(--us-text-main);
}

.user-stories-form-wrapper label .required {
	color: #ef4444;
}

.user-stories-form-wrapper input[type="text"],
.user-stories-form-wrapper textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--us-border-color);
	background-color: rgba(255, 255, 255, 0.8);
	border-radius: 8px;
	font-size: 15px;
	color: var(--us-text-main);
	transition: var(--us-transition);
}

.user-stories-form-wrapper input[type="text"]:focus,
.user-stories-form-wrapper textarea:focus {
	outline: none;
	border-color: var(--us-primary-color);
	background-color: #fff;
	box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.user-stories-form-wrapper .form-row {
	display: flex;
	gap: 20px;
}

.user-stories-form-wrapper .half-width {
	flex: 1;
}

/* Image Upload Area */
.image-upload-zone {
	border: 2px dashed #cbd5e1;
	background: rgba(248, 250, 252, 0.6);
	border-radius: 12px;
	padding: 30px;
	text-align: center;
	cursor: pointer;
	position: relative;
	transition: var(--us-transition);
}

.image-upload-zone:hover,
.image-upload-zone.dragover {
	border-color: var(--us-primary-color);
	background: rgba(99, 102, 241, 0.03);
}

.image-upload-zone .upload-zone-content .icon {
	font-size: 32px;
	width: 32px;
	height: 32px;
	color: var(--us-text-muted);
	margin-bottom: 12px;
	transition: var(--us-transition);
}

.image-upload-zone:hover .upload-zone-content .icon {
	color: var(--us-primary-color);
	transform: translateY(-2px);
}

.image-upload-zone .zone-text {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 500;
	color: var(--us-text-main);
}

.image-upload-zone .zone-subtext {
	margin: 0;
	font-size: 12px;
	color: var(--us-text-muted);
}

.image-preview-wrapper {
	position: relative;
	max-width: 150px;
	margin: 0 auto;
}

.image-preview-wrapper img {
	width: 120px;
	height: 120px;
	object-fit: cover;
	border-radius: 50%;
	border: 3px solid #fff;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.image-preview-wrapper .btn-remove-image {
	position: absolute;
	top: -5px;
	right: 0;
	background: #ef4444;
	color: #fff;
	border: none;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
	transition: var(--us-transition);
}

.image-preview-wrapper .btn-remove-image:hover {
	background: #dc2626;
	transform: scale(1.1);
}

.image-preview-wrapper .btn-remove-image .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
}

/* Submit button */
.btn-submit {
	width: 100%;
	background: var(--us-primary-color);
	color: #fff;
	border: none;
	padding: 14px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
	transition: var(--us-transition);
	box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.btn-submit:hover {
	background: var(--us-primary-hover);
	box-shadow: 0 6px 18px rgba(99, 102, 241, 0.3);
}

.btn-submit:disabled {
	background: #94a3b8;
	cursor: not-allowed;
	box-shadow: none;
}

.btn-loader {
	border: 3px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top: 3px solid #fff;
	width: 20px;
	height: 20px;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Form Message */
.form-message {
	margin-top: 20px;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
}

.form-message.success {
	background: #f0fdf4;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.form-message.error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

/* 3. Approved Stories Display Grid */
.user-stories-showcase {
	margin: 60px 0 40px;
}

.user-stories-showcase .stories-column-wrapper {
	column-count: 3;
	column-gap: 30px;
	width: 100%;
}

@media (max-width: 991px) {
	.user-stories-showcase .stories-column-wrapper {
		column-count: 2;
		column-gap: 25px;
	}
}

@media (max-width: 767px) {
	.user-stories-showcase .stories-column-wrapper {
		column-count: 1;
		column-gap: 0;
	}
}

.user-stories-showcase .story-card {
	display: inline-block;
	width: 100%;
	margin-bottom: 50px;
	background: var(--us-bg-card);
	border: 1px solid var(--us-border-color);
	border-radius: var(--us-radius);
	box-shadow: var(--us-shadow);
	transition: var(--us-transition);
	position: relative;
	box-sizing: border-box;
	break-inside: avoid;
	padding: 40px 30px 35px;
}

.user-stories-showcase .story-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: linear-gradient(90deg, var(--us-primary-color), #f59e0b);
	opacity: 0;
	transition: var(--us-transition);
	border-radius: var(--us-radius) var(--us-radius) 0 0;
}

.user-stories-showcase .story-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--us-shadow-hover);
}

.user-stories-showcase .story-card:hover::before {
	opacity: 1;
}

.user-stories-showcase .story-card-inner {
	padding: 0;
}

.user-stories-showcase .story-avatar {
	width: 90px;
	height: 90px;
	border-radius: 50%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	margin: 0 auto 25px;
}

.user-stories-showcase .story-avatar.is-placeholder {
	background-size: 70%;
}

.user-stories-showcase .story-content {
	font-size: 14.5px;
	line-height: 1.65;
	color: #2c3e50;
	margin-bottom: 25px;
}

.user-stories-showcase .story-content p {
	margin: 0 0 12px;
}

.user-stories-showcase .story-content p:last-child {
	margin: 0;
}

/* Quote icons around the content paragraphs */
.user-stories-showcase .story-content p:first-child::before {
	content: '“';
	font-weight: bold;
}

.user-stories-showcase .story-content p:last-child::after {
	content: '”';
	font-weight: bold;
}

.user-stories-showcase .story-author-info {
	text-align: left;
}

.user-stories-showcase .story-author-name {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 700;
	color: var(--us-primary-color);
}

.user-stories-showcase .story-author-caption {
	display: block;
	font-size: 12px;
	color: var(--us-text-muted);
	font-weight: 500;
}

.user-stories-showcase .no-stories-found {
	text-align: center;
	padding: 40px;
	background: rgba(248, 250, 252, 0.8);
	border: 1px solid var(--us-border-color);
	border-radius: var(--us-radius);
	color: var(--us-text-muted);
}

/* 4. User Dashboard Styling */
.my-stories-dashboard {
	background: var(--us-bg-card);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid var(--us-border-color);
	border-radius: var(--us-radius);
	box-shadow: var(--us-shadow);
	padding: 30px;
	margin: 40px 0;
}

.dashboard-header {
	margin-bottom: 25px;
	border-bottom: 1px solid var(--us-border-color);
	padding-bottom: 15px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.dashboard-title-area {
	flex-grow: 1;
}

.dashboard-action-area {
	flex-shrink: 0;
}

.btn-add-story {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--us-primary-color);
	color: #fff !important;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	border-radius: 30px;
	transition: var(--us-transition);
	box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.btn-add-story:hover {
	background: var(--us-primary-hover);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}

.btn-add-story .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.btn-view-public-stories {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 1.5px solid var(--us-primary-color);
	color: var(--us-primary-color) !important;
	background: transparent;
	padding: 8px 18px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	border-radius: 30px;
	transition: var(--us-transition);
}

.btn-view-public-stories:hover {
	background: rgba(99, 102, 241, 0.05);
	transform: translateY(-2px);
}

.btn-view-public-stories .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.dashboard-header h2 {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 700;
	color: var(--us-text-main);
}

.dashboard-header p {
	margin: 0;
	color: var(--us-text-muted);
	font-size: 14px;
}

.my-stories-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.my-story-row {
	display: flex;
	align-items: center;
	padding: 15px 20px;
	background: rgba(255, 255, 255, 0.6);
	border: 1px solid var(--us-border-color);
	border-radius: 12px;
	transition: var(--us-transition);
}

.my-story-row:hover {
	background: #fff;
	border-color: var(--us-primary-color);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.story-row-image {
	width: 50px;
	height: 50px;
	border-radius: 8px;
	overflow: hidden;
	margin-right: 15px;
	flex-shrink: 0;
}

.story-row-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.story-row-image .no-image-placeholder {
	width: 100%;
	height: 100%;
	background: #f1f5f9;
	color: #94a3b8;
	display: flex;
	align-items: center;
	justify-content: center;
}

.story-row-image .no-image-placeholder .dashicons {
	font-size: 22px;
	width: 22px;
	height: 22px;
}

.story-row-details {
	flex-grow: 1;
}

.story-row-title {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 600;
	color: var(--us-text-main);
}

.story-row-meta {
	font-size: 12px;
	color: var(--us-text-muted);
}

.story-row-meta .divider {
	margin: 0 8px;
	color: #cbd5e1;
}

.story-row-status {
	margin-left: 20px;
}

/* Status Badges */
.status-badge {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.status-badge.approved {
	background: #e6f4ea;
	color: #137333;
	border: 1px solid #ceead6;
}

.status-badge.pending {
	background: #fef7e0;
	color: #b06000;
	border: 1px solid #feebc8;
}

.status-badge.draft {
	background: #f1f5f9;
	color: #475569;
	border: 1px solid #e2e8f0;
}

.no-my-stories {
	text-align: center;
	padding: 30px;
	color: var(--us-text-muted);
	font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 640px) {
	.user-stories-form-wrapper {
		padding: 20px;
	}
	.user-stories-form-wrapper .form-row {
		flex-direction: column;
		gap: 0;
	}
	.my-story-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
	.story-row-status {
		margin-left: 0;
	}
}

/* Updates Ticker Styling */
.ticker .et_pb_text_inner {
    overflow: hidden;
    white-space: nowrap;
    padding: 4px 0;
}

.ticker .et_pb_text_inner p {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 20s linear infinite;
}

@keyframes ticker {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

/* Updates Separator Spacing */
.bbhb-update-separator {
    padding: 0 15px;
}


