/* User Video Platform — namespaced styles, safe alongside Elementor */

.uvp-wrap * {
	box-sizing: border-box;
}

.uvp-notice {
	padding: 12px 16px;
	background: #f1f4f1;
	border-left: 4px solid #4a7c59;
	border-radius: 4px;
}

/* Forms */
.uvp-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 420px;
}

.uvp-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.uvp-field label {
	font-weight: 600;
	font-size: 14px;
}

.uvp-field input[type="text"],
.uvp-field input[type="email"],
.uvp-field input[type="password"],
.uvp-field input[type="file"],
.uvp-field textarea {
	padding: 10px 12px;
	border: 1px solid #d5d9d5;
	border-radius: 6px;
	font-size: 15px;
	width: 100%;
}

.uvp-password-wrap {
	display: flex;
	align-items: stretch;
	gap: 6px;
}

.uvp-password-wrap input {
	flex: 1 1 auto;
	width: auto !important; /* guards against .uvp-field input{width:100%} overrides breaking the flex layout */
	min-width: 0;
}

.uvp-password-toggle {
	flex: 0 0 auto;
	background: #eceeec;
	border: 1px solid #d5d9d5;
	border-radius: 6px;
	font-size: 16px;
	cursor: pointer;
	opacity: 0.7;
	padding: 0 12px;
	line-height: 1;
}

.uvp-password-toggle:hover,
.uvp-password-toggle.uvp-password-visible {
	opacity: 1;
}

.uvp-forgot-password-link {
	margin: -4px 0 0;
	font-size: 13px;
}

.uvp-forgot-password-link a {
	color: #767676;
	text-decoration: underline;
}

.uvp-forgot-password-link a:hover {
	color: #2f5233;
}

.uvp-help-text {
	font-size: 12px;
	color: #767676;
	margin: 0;
}

.uvp-form-message {
	font-size: 14px;
	min-height: 18px;
}

.uvp-form-message.uvp-success {
	color: #2e7d32;
}

.uvp-form-message.uvp-error {
	color: #c62828;
}

/* Buttons */
.uvp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 20px;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: opacity 0.15s ease;
}

.uvp-btn:hover {
	opacity: 0.85;
}

.uvp-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.uvp-btn-primary {
	background: #2f5233;
	color: #ffffff;
}

.uvp-btn-secondary {
	background: #eceeec;
	color: #2b2b2b;
}

.uvp-btn-danger {
	background: #c62828;
	color: #ffffff;
}

.uvp-btn-small {
	padding: 6px 14px;
	font-size: 13px;
}

/* Dashboard */
.uvp-dashboard-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 24px;
}

.uvp-dashboard-title {
	margin: 0;
}

.uvp-tabs {
	display: flex;
	gap: 4px;
	border-bottom: 2px solid #e6e8e6;
	margin-bottom: 24px;
}

.uvp-tab-btn {
	background: none;
	border: none;
	padding: 10px 18px;
	font-size: 15px;
	font-weight: 600;
	color: #767676;
	cursor: pointer;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
}

.uvp-tab-btn:hover {
	color: #2f5233;
}

.uvp-tab-btn.uvp-tab-active {
	color: #2f5233;
	border-bottom-color: #2f5233;
}

.uvp-upload-box,
.uvp-profile-box {
	background: #f7f8f7;
	padding: 20px;
	border-radius: 10px;
	margin-bottom: 32px;
}

.uvp-avatar-field {
	gap: 10px;
}

.uvp-avatar-current img {
	border-radius: 50%;
	object-fit: cover;
	width: 72px;
	height: 72px;
}

.uvp-upload-progress {
	height: 8px;
	background: #e2e5e2;
	border-radius: 4px;
	overflow: hidden;
}

.uvp-upload-progress-bar {
	height: 100%;
	width: 0%;
	background: #2f5233;
	transition: width 0.2s ease;
}

/* Video grid */
.uvp-video-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

/* Post list — vertical single-column stack, Facebook/Instagram feed style,
   distinct from the video grid which wraps into multiple columns. */
.uvp-post-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.uvp-post-list .uvp-video-card {
	max-width: 480px;
	width: 100%;
}

.uvp-post-image {
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	max-height: none !important;
	object-fit: contain !important;
	display: block;
	background: #f2f2f2;
}

.uvp-post-card .uvp-video-author {
	margin-bottom: 10px;
}

.uvp-video-card {
	flex: 1 1 300px;
	max-width: 360px;
	background: #ffffff;
	border: 1px solid #e6e8e6;
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.uvp-video-player {
	width: 100%;
	height: 320px;
	object-fit: contain;
	background: #000000;
	display: block;
}

.uvp-video-card-body {
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.uvp-video-title {
	margin: 0;
	font-size: 16px;
}

.uvp-video-desc {
	margin: 0;
	font-size: 14px;
	color: #555555;
	cursor: pointer;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.uvp-video-desc.uvp-desc-expanded {
	display: block;
	-webkit-line-clamp: unset;
	overflow: visible;
}

.uvp-status-pill {
	font-size: 11px;
	font-weight: 600;
	color: #a26b00;
	background: #fff3d6;
	padding: 2px 8px;
	border-radius: 10px;
	margin-left: 6px;
}

.uvp-empty-state {
	color: #767676;
	font-style: italic;
}

/* Feed specific */
.uvp-video-author {
	display: flex;
	align-items: center;
	gap: 8px;
}

.uvp-video-author img {
	border-radius: 50%;
}

.uvp-video-author-name {
	font-weight: 600;
	font-size: 13px;
}

/* .uvp-post-like-btn previously had no color/background of its own (only the
   video system's .uvp-like-btn class had styling) — it was inheriting
   whatever the theme's default <button> text/background colors happen to be,
   which made it invisible on this site. Explicit colors guarantee it always
   renders visibly regardless of theme defaults. */
.uvp-post-like-btn {
	background: #eceeec !important;
	color: #2b2b2b !important;
}

.uvp-post-like-btn.uvp-liked {
	background: #ffe3e3 !important;
	color: #c62828 !important;
}

.uvp-post-card .uvp-video-actions,
.uvp-post-card .uvp-video-actions .uvp-btn {
	display: flex !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.uvp-video-actions {
	display: flex;
	gap: 10px;
	margin-top: 4px;
}

.uvp-like-btn {
	background: #eceeec;
	color: #2b2b2b;
}

.uvp-like-btn.uvp-liked {
	background: #ffe3e3;
	color: #c62828;
}

.uvp-like-icon {
	font-size: 15px;
}

/* Comments */
.uvp-comments-section {
	margin-top: 10px;
	border-top: 1px solid #eeeeee;
	padding-top: 10px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.uvp-comments-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: 200px;
	overflow-y: auto;
}

.uvp-comment {
	display: flex;
	gap: 8px;
}

.uvp-comment img {
	border-radius: 50%;
	flex-shrink: 0;
}

.uvp-comment-author {
	font-weight: 600;
	font-size: 13px;
	display: block;
}

.uvp-comment-text {
	margin: 2px 0 0;
	font-size: 13px;
	color: #444444;
}

.uvp-comment-form {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.uvp-comment-form textarea {
	padding: 8px 10px;
	border: 1px solid #d5d9d5;
	border-radius: 6px;
	font-size: 13px;
	resize: vertical;
}

.uvp-load-more-wrap {
	display: flex;
	justify-content: center;
	margin-top: 24px;
}

/* ============================= Reels View ============================= */

.uvp-reels-wrap {
	position: relative;
	width: 100%;
	height: 100vh;
	height: 100dvh;
	overflow-y: scroll;
	scroll-snap-type: y mandatory;
	scroll-behavior: smooth;
	background: #000000;
	-webkit-overflow-scrolling: touch;
}

.uvp-reels-wrap::-webkit-scrollbar {
	display: none;
}

.uvp-reel-item {
	position: relative;
	width: 100%;
	height: 100vh;
	height: 100dvh;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	background: #000000;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.uvp-reel-empty {
	color: #ffffff;
}

.uvp-reel-video {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #000000;
}

.uvp-reel-mute-btn {
	position: absolute;
	top: 20px;
	right: 20px;
	background: rgba(0, 0, 0, 0.5);
	border: none;
	color: #ffffff;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	font-size: 16px;
	cursor: pointer;
	z-index: 3;
}

.uvp-reel-overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	padding: 20px;
	padding-bottom: 32px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
	color: #ffffff;
	z-index: 2;
	pointer-events: none;
}

.uvp-reel-overlay a,
.uvp-reel-overlay button,
.uvp-reel-overlay .uvp-video-desc {
	pointer-events: auto;
}

.uvp-reel-info {
	flex: 1 1 auto;
	max-width: 78%;
}

.uvp-reel-info .uvp-video-author-name {
	color: #ffffff;
}

.uvp-reel-info .uvp-video-title {
	color: #ffffff;
	margin: 8px 0 4px;
}

.uvp-reel-info .uvp-video-desc {
	color: rgba(255, 255, 255, 0.85);
	cursor: pointer;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.uvp-reel-info .uvp-video-desc.uvp-desc-expanded {
	display: block;
	-webkit-line-clamp: unset;
	overflow: visible;
}

.uvp-reel-actions {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
}

.uvp-reel-action-btn {
	background: none;
	border: none;
	color: #ffffff;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	font-size: 24px;
	cursor: pointer;
	padding: 0;
}

.uvp-reel-action-btn.uvp-like-btn,
.uvp-reel-action-btn.uvp-toggle-comments-btn {
	background: none !important;
	border: none !important;
}

.uvp-reel-action-btn span:last-child {
	font-size: 12px;
	font-weight: 600;
}

.uvp-reel-action-btn.uvp-liked {
	color: #ff4d6d;
}

.uvp-reel-comments {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	max-height: 60%;
	background: rgba(20, 20, 20, 0.95);
	color: #ffffff;
	padding: 16px;
	border-radius: 16px 16px 0 0;
	z-index: 4;
}

.uvp-reel-comments .uvp-comment-author {
	color: #ffffff;
}

.uvp-reel-comments .uvp-comment-text {
	color: rgba(255, 255, 255, 0.8);
}

.uvp-reel-comments .uvp-comment-input {
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.2);
}

@media (min-width: 700px) {
	.uvp-reels-wrap {
		max-width: 460px;
		margin: 0 auto;
	}
}

