/* UC Content Hub — front-end file browser styles */

/* ------------------------------------------------------------------
   WordPress admin button classes are not loaded on the frontend.
   Re-declare them here so file browser and webinar buttons are
   visible regardless of theme.
   ------------------------------------------------------------------ */
.uc-file-browser .button,
.uc-upload-actions .button,
.uc-webinar-slides-link.button {
	display: inline-block;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	border-radius: 3px;
	border: 1px solid #949494;
	background: #f6f7f7;
	color: #333 !important;
	text-decoration: none;
	transition: background .15s, border-color .15s;
}
.uc-file-browser .button:hover,
.uc-upload-actions .button:hover,
.uc-webinar-slides-link.button:hover {
	background: #e9e9e9;
	border-color: #666;
	color: #111 !important;
}
.uc-file-browser .button-primary,
.uc-upload-actions .button-primary {
	background: #233452;
	border-color: #233452;
	color: #fff !important;
}
.uc-file-browser .button-primary:hover,
.uc-upload-actions .button-primary:hover {
	background: #1a2740;
	border-color: #1a2740;
	color: #fff !important;
}

.uc-file-browser {
	font-size: 14px;
	line-height: 1.5;
	color: #333;
}

.uc-fb-notice {
	color: #666;
	font-style: italic;
}

/* ---- Toolbar ---- */
.uc-fb-toolbar {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.uc-fb-search-input {
	flex: 1;
	min-width: 0;
	padding: 6px 10px;
	border: 1px solid #ccc;
	border-radius: 3px;
	font-size: 13px;
	background: #fff;
}

.uc-fb-search-input:focus {
	border-color: #0073aa;
	outline: none;
	box-shadow: 0 0 0 1px #0073aa;
}

.uc-fb-upload-btn .dashicons {
	margin-right: 3px;
	vertical-align: text-bottom;
}

/* ---- Breadcrumb ---- */
.uc-fb-breadcrumb {
	margin-bottom: 8px;
	font-size: 13px;
	color: #555;
}

.uc-fb-crumb-item {
	cursor: pointer;
	color: #0073aa;
}

.uc-fb-crumb-item:hover {
	text-decoration: underline;
}

.uc-fb-crumb-item:last-child {
	color: #333;
	cursor: default;
	font-weight: 600;
}

.uc-fb-crumb-item:last-child:hover {
	text-decoration: none;
}

.uc-fb-crumb-sep {
	color: #999;
	margin: 0 2px;
}

/* ---- Table ---- */
.uc-fb-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.uc-fb-table th {
	padding: 8px 12px;
	text-align: left;
	background: #f5f5f5;
	border-bottom: 2px solid #ddd;
	font-weight: 600;
	color: #444;
	white-space: nowrap;
}

.uc-fb-table td {
	padding: 7px 12px;
	border-bottom: 1px solid #eee;
	vertical-align: middle;
}

.uc-fb-table tr:last-child td {
	border-bottom: none;
}

.uc-fb-table tr:hover td {
	background: #f0f6fc;
}

.uc-fb-col-name {
	word-break: break-word;
}

.uc-fb-col-size,
.uc-fb-col-modified,
.uc-fb-col-by {
	white-space: nowrap;
	color: #555;
}

/* ---- Icons ---- */
.uc-fb-table .dashicons {
	vertical-align: middle;
	margin-right: 5px;
	font-size: 18px;
	width: 18px;
	height: 18px;
	color: #aaa;
}

.uc-fb-folder .dashicons-folder {
	color: #f0b429;
}

/* ---- Copy ID button ---- */
.uc-fb-copy-id {
	background: none;
	border: none;
	padding: 0 0 0 6px;
	margin: 0;
	cursor: pointer;
	vertical-align: middle;
	opacity: 0;
	transition: opacity .15s;
}

.uc-fb-row:hover .uc-fb-copy-id {
	opacity: .45;
}

.uc-fb-copy-id:hover,
.uc-fb-copy-id--copied {
	opacity: 1 !important;
}

.uc-fb-copy-id .dashicons {
	font-size: 15px;
	width: 15px;
	height: 15px;
	color: #555;
	margin: 0;
}

.uc-fb-copy-id--copied .dashicons {
	color: #1e7e34;
}

/* ---- Folder & file links ---- */
.uc-fb-folder-link {
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	font-size: inherit;
	color: #0073aa;
	cursor: pointer;
	text-decoration: underline;
	vertical-align: middle;
}

.uc-fb-folder-link:hover {
	color: #005177;
}

.uc-fb-table a {
	color: #0073aa;
}

.uc-fb-table a:hover {
	color: #005177;
}

/* ---- Loading / empty / error states ---- */
.uc-fb-loading {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 20px 0;
	color: #666;
}

.uc-fb-loading .spinner {
	float: none;
	margin: 0;
}

.uc-fb-empty {
	color: #888;
	font-style: italic;
	padding: 16px 0;
	margin: 0;
}

.uc-fb-error {
	color: #d63638;
	padding: 8px 0;
	margin: 0;
}

/* ---- Upload panel ---- */
.uc-fb-upload-panel {
	margin-top: 16px;
	padding: 16px 20px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #fafafa;
}

.uc-upload-title {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 600;
}

.uc-upload-field {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 10px 0;
	flex-wrap: wrap;
}

.uc-upload-actions {
	display: flex;
	gap: 8px;
	margin-top: 10px;
}

/* ---- Progress bar ---- */
.uc-upload-progress {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 10px 0;
}

.uc-progress-bar {
	flex: 1;
	height: 8px;
	background: #e0e0e0;
	border-radius: 4px;
	overflow: hidden;
}

.uc-progress-fill {
	height: 100%;
	width: 0;
	background: #0073aa;
	border-radius: 4px;
	transition: width 0.15s ease;
}

.uc-progress-text {
	font-size: 12px;
	min-width: 32px;
	color: #555;
}

/* ---- Upload status message ---- */
.uc-upload-message {
	margin-top: 8px;
	font-size: 13px;
	min-height: 1.4em;
}

/* =========================================================
   Webinar styles
   ========================================================= */

/* ---- Archive / shortcode list ---- */
.uc-webinar-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
	margin: 20px 0;
}

.uc-webinar-archive-header {
	margin-bottom: 24px;
}

.uc-webinar-archive-title {
	font-size: 1.8em;
	margin: 0 0 8px;
}

.uc-webinar-archive-desc {
	color: #555;
	font-size: 0.95em;
}

/* ---- Card ---- */
.uc-webinar-card {
	display: flex;
	flex-direction: column;
	border: 1px solid #ddd;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.15s;
}

.uc-webinar-card:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.uc-webinar-thumb img {
	display: block;
	width: 100%;
	height: 160px;
	object-fit: cover;
}

.uc-webinar-body {
	padding: 16px;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* ---- Date ---- */
.uc-webinar-date {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #0073aa;
}

.uc-webinar-date--lg {
	font-size: 14px;
}

/* ---- Title ---- */
.uc-webinar-title {
	margin: 0;
	font-size: 1em;
	line-height: 1.4;
}

.uc-webinar-title a {
	color: #111;
	text-decoration: none;
}

.uc-webinar-title a:hover {
	color: #0073aa;
}

/* ---- Presenter ---- */
.uc-webinar-presenter {
	font-size: 13px;
	color: #444;
	margin: 0;
}

.uc-webinar-presenter--lg {
	font-size: 15px;
}

.uc-webinar-org {
	color: #666;
}

/* ---- Topic tags ---- */
.uc-webinar-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-top: 2px;
}

.uc-webinar-tag {
	display: inline-block;
	padding: 2px 8px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	background: #e8f4fb;
	color: #0073aa;
	border-radius: 20px;
}

/* ---- Card actions ---- */
.uc-webinar-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 10px;
}

.uc-webinar-link {
	font-size: 13px;
	color: #0073aa;
	text-decoration: underline;
}

.uc-webinar-badge {
	font-size: 11px;
	padding: 2px 7px;
	border-radius: 3px;
	font-weight: 600;
}

.uc-webinar-badge--recording {
	background: #e6f4ea;
	color: #1e7e34;
}

.uc-webinar-none {
	color: #888;
	font-style: italic;
}

/* ---- Single page ---- */
.uc-webinar-single {
	max-width: 800px;
}

.uc-webinar-single__header {
	margin-bottom: 28px;
}

.uc-webinar-single__title {
	font-size: 2em;
	margin: 6px 0 10px;
	line-height: 1.2;
}

.uc-webinar-recording {
	margin-bottom: 32px;
}

.uc-webinar-embed {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	height: 0;
	overflow: hidden;
	border-radius: 4px;
}

.uc-webinar-embed iframe,
.uc-webinar-embed object,
.uc-webinar-embed embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.uc-webinar-video {
	width: 100%;
	border-radius: 4px;
}

.uc-webinar-recording-link {
	display: inline-block;
	padding: 10px 18px;
	background: #0073aa;
	color: #fff;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 600;
}

.uc-webinar-recording-link:hover {
	background: #005177;
	color: #fff;
}

.uc-webinar-single__content {
	margin-bottom: 32px;
}

.uc-webinar-single__footer {
	border-top: 1px solid #eee;
	padding-top: 20px;
	margin-top: 32px;
}

.uc-webinar-resources {
	margin-bottom: 16px;
}

.uc-webinar-slides-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.uc-webinar-back {
	margin-top: 16px;
}

.uc-webinar-back a {
	color: #0073aa;
}
