/* 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-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-upload-box {
	background: #f7f8f7;
	padding: 20px;
	border-radius: 10px;
	margin-bottom: 32px;
}

.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;
}

.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%;
	max-height: 240px;
	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;
}

.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-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;
}
