/* ============================================
   VidCam - Stylesheet
   ============================================ */

:root {
	--primary-color: #0d6efd;
	--secondary-color: #6c757d;
	--danger-color: #dc3545;
	--success-color: #198754;
	--sidebar-width: 200px;
}

* {
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	background-color: #f5f5f5;
}

/* FEJLÉC */
.navbar {
	border-bottom: 1px solid #ddd;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
	font-size: 1.5rem;
	font-weight: bold;
}

.countdown-display {
	white-space: nowrap;
}

/* OLDALSÁV */
.sidebar-videos {
	background-color: #fff;
	padding: 15px;
	border-right: 1px solid #ddd;
	max-height: calc(100vh - 80px);
	overflow-y: auto;
}

.video-group-card {
	border-left: 4px solid var(--primary-color);
}

.video-item {
	cursor: pointer;
	transition: all 0.2s;
	background-color: #f9f9f9;
}

.video-item:hover {
	background-color: #f0f0f0;
	transform: translateX(5px);
}

.video-thumb {
	box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.video-title {
	color: #333;
	font-weight: 500;
}

/* FŐTARTALOM */
.main-content {
	background-color: #fff;
	padding: 20px;
	border-radius: 4px;
}

.video-player-wrapper {
	background-color: #f9f9f9;
	border-radius: 8px;
	padding: 20px;
}

.youtube-player {
	background-color: #000;
	border-radius: 8px;
	overflow: hidden;
}

.video-details {
	margin-top: 20px;
}

/* FULLSCREEN */
.fullscreen-player-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #000;
	z-index: 9999;
	display: flex;
	flex-direction: column;
}

.fullscreen-header {
	background-color: rgba(0,0,0,0.7);
	color: #fff;
	padding: 10px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #333;
}

.fullscreen-title {
	font-size: 1.1rem;
	font-weight: 600;
}

.fullscreen-controls {
	display: flex;
	align-items: center;
	gap: 10px;
}

#fullscreen-countdown {
	color: #fff;
	font-weight: bold;
	min-width: 60px;
}

.fullscreen-player-content {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 20px;
}

.fullscreen-player-content iframe {
	width: 100%;
	height: 100%;
	border: none;
	border-radius: 4px;
}

/* LÁBLÉC */
footer {
	margin-top: 40px !important;
	padding: 15px 20px !important;
	clear: both;
}

footer .row {
	align-items: center;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	width: 100%;
}

footer .col-md-6 {
	padding: 5px 10px;
}

footer small {
	display: block;
	margin-bottom: 5px;
	font-size: 0.85rem;
}

footer a {
	transition: opacity 0.2s;
	margin: 0 8px;
}

footer a:hover {
	opacity: 0.7;
}

/* ADMIN */
.admin-settings-panel,
.admin-videos-panel {
	background-color: #fff;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.admin-settings-panel h3,
.admin-videos-panel h3 {
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--primary-color);
}

/* FORM */
.form-control,
.form-select {
	border-radius: 4px;
	border: 1px solid #ddd;
}

.form-control:focus,
.form-select:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* BUTTON */
.btn {
	border-radius: 4px;
	transition: all 0.2s;
}

.btn-primary {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
}

.btn-primary:hover {
	background-color: #0b5ed7;
	border-color: #0b5ed7;
}

/* TABLA */
table {
	border-collapse: collapse;
}

table th {
	background-color: #f5f5f5;
	font-weight: 600;
	border-bottom: 2px solid #ddd;
}

table td {
	border-bottom: 1px solid #eee;
	padding: 12px 8px;
}

table tbody tr:hover {
	background-color: #f9f9f9;
}

/* RESPONSIVE */
@media (max-width: 768px) {
	.sidebar-videos {
		display: none;
	}

	.main-content {
		padding: 10px;
	}

	.countdown-display,
	.autoplay-controls {
		display: none !important;
	}

	.navbar-brand {
		font-size: 1.2rem;
	}
}

/* UTILITIES */
.cursor-pointer {
	cursor: pointer;
}

.min-vh-100 {
	min-height: 100vh;
}

.text-muted {
	color: #999 !important;
}

.alert-info {
	background-color: #d1ecf1;
	border-color: #bee5eb;
	color: #0c5460;
}

/* SCROLLBAR */
.sidebar-videos::-webkit-scrollbar {
	width: 8px;
}

.sidebar-videos::-webkit-scrollbar-track {
	background: #f1f1f1;
}

.sidebar-videos::-webkit-scrollbar-thumb {
	background: #888;
	border-radius: 4px;
}

.sidebar-videos::-webkit-scrollbar-thumb:hover {
	background: #555;
}

/* DARK MODE */
body.dark-mode {
	background-color: #1a1a1a;
	color: #e0e0e0;
}

body.dark-mode .navbar {
	background-color: #1f1f1f !important;
	border-bottom-color: #333;
}

body.dark-mode .sidebar-videos {
	background-color: #2a2a2a;
	border-right-color: #333;
	color: #e0e0e0;
}

body.dark-mode .video-item {
	background-color: #333;
	color: #e0e0e0;
}

body.dark-mode .video-item:hover {
	background-color: #444;
}

body.dark-mode .main-content {
	background-color: #2a2a2a;
	color: #e0e0e0;
}

body.dark-mode .video-player-wrapper {
	background-color: #1a1a1a;
}

body.dark-mode .video-details {
	color: #e0e0e0;
}

body.dark-mode h1, body.dark-mode h2, body.dark-mode h3,
body.dark-mode h4, body.dark-mode h5, body.dark-mode h6 {
	color: #e0e0e0;
}

body.dark-mode .card {
	background-color: #2a2a2a;
	border-color: #444;
	color: #e0e0e0;
}

body.dark-mode .card-header {
	background-color: #333;
	border-bottom-color: #444;
}

body.dark-mode .form-control,
body.dark-mode .form-select {
	background-color: #333;
	color: #e0e0e0;
	border-color: #444;
}

body.dark-mode .form-control:focus,
body.dark-mode .form-select:focus {
	background-color: #333;
	color: #e0e0e0;
	border-color: var(--primary-color);
}

body.dark-mode footer {
	background-color: #1a1a1a !important;
	color: #e0e0e0;
}

body.dark-mode .alert {
	background-color: #333;
	border-color: #444;
	color: #e0e0e0;
}

body.dark-mode .text-muted {
	color: #999 !important;
}

body.dark-mode .list-unstyled li {
	color: #e0e0e0;
}

body.dark-mode .admin-settings-panel,
body.dark-mode .admin-videos-panel {
	background-color: #2a2a2a;
	color: #e0e0e0;
	box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

body.dark-mode table th {
	background-color: #333;
	border-bottom-color: #444;
}

body.dark-mode table td {
	border-bottom-color: #333;
}

body.dark-mode table tbody tr:hover {
	background-color: #333;
}

#dark-mode-btn {
	background-color: rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: white;
	transition: all 0.3s ease;
}

#dark-mode-btn:hover {
	background-color: rgba(255, 255, 255, 0.3);
	border-color: rgba(255, 255, 255, 0.5);
}

body.dark-mode #dark-mode-btn {
	background-color: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.2);
}
