/* ================================
   PRODUCTION CLEAN THEME
   ================================ */

/* ---- Color Variables ---- */
:root {
  --bg-main: #050d1c;
  --bg-card: #0d2244;
  --bg-footer: #040b18;

  --text-main: #f1f6ff;
  --text-secondary: #c2d2ee;
  --text-muted: #a9bbdc;
  --text-card: #d6e2ff;

  --accent-primary: #1e90ff;
  --accent-secondary: #00c6ff;
  --border-soft: #173a6a;
}

/* ---- Global ---- */
body {
  background: radial-gradient(ellipse at top, #0b1d3a, var(--bg-main));
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- Loader ---- */
.loader {
	border: 4px solid #f3f3f3;
	border-top: 4px solid #3498db;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
	margin: 10px auto;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

/* ---- Navbar ---- */
.navbar {
  background-color: rgba(5, 13, 28, 0.9);
  backdrop-filter: blur(6px);
}

/* ================================
   Breadcrumb Styling
   ================================ */

/* Custom separator */
.custom-breadcrumb {
  --bs-breadcrumb-divider: '›';
}

/* Breadcrumb base */
.custom-breadcrumb .breadcrumb-item {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Links */
.custom-breadcrumb a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

/* Hover */
.custom-breadcrumb a:hover {
  color: #7cc7ff;
  text-decoration: underline;
}

/* Active item */
.custom-breadcrumb .breadcrumb-item.active {
  color: var(--text-secondary);
}


/* ---- Hero ---- */
.hero {
  padding: 120px 0;
}

.gradient-text {
  background: linear-gradient(
    90deg,
    #4da3ff,
    #7cc7ff
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---- Typography ---- */
p {
  color: var(--text-main);
}

.text-secondary {
  color: var(--text-secondary) !important;
}

small {
  color: var(--text-muted);
}

ol li {
  color: var(--text-card);
}

/* ---- Cards ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
}

.card-title {
  color: var(--text-main);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.card p {
  color: var(--text-card);
}

/* ---- Buttons ---- */
.cta {
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    #0066ff
  );
  border: none;
}

/* ---- Accordion ---- */
.accordion-button {
  color: var(--text-main);
}

.accordion-body {
  color: var(--text-secondary);
}

/* ---- Footer ---- */
footer {
  background: var(--bg-footer);
}

footer h5 {
  color: var(--text-main);
}

footer p,
footer small {
  color: var(--text-secondary);
}

footer hr {
  border-color: var(--border-soft);
}

/* ================================
   Global Link Styling (Production)
   ================================ */

/* Base link style */
a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

/* Hover */
a:hover {
  color: #7cc7ff;
  text-decoration: underline;
}

/* Active / current */
a:active {
  color: var(--accent-primary);
}

/* Breadcrumb active item */
.breadcrumb .active {
  color: var(--text-secondary);
}

/* Links inside cards & content */
.card a,
article a {
  color: var(--accent-primary);
}

/* Footer links */
footer a {
  color: var(--accent-primary);
}

footer a:hover {
  color: #7cc7ff;
}

/* ================================
   Breadcrumb Divider – Force Fix
   ================================ */

.custom-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "»";
  color: var(--text-muted);
  padding: 0 0.5rem;
}

.breadcrumb-wrapper {
  margin-top: 12px; // 72
}


/* ================================
   Breadcrumb – Mobile Visibility (SAFE)
   ================================ */
/*
@media (max-width: 767.98px) {
  .breadcrumb-wrapper {
    display: none;
  }
}
*/

/* ================================
   Paste Button Styling
   ================================ */

#pasteBtn {
  font-weight: 500;
  white-space: nowrap;
}

#pasteBtn:hover {
  background-color: #f1f3f5;
}


/* ================================
   INPUT-GROUP HARD FIX
   ================================ */

/* Force input to always be visible */
.download-group .form-control {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

/* Buttons must not grow */
.download-group .btn {
  flex: 0 0 auto;
}

/* Desktop */
@media (min-width: 768px) {
  .download-group {
    flex-wrap: nowrap;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .download-group {
    flex-wrap: wrap;
  }
  
  /* Input (top) */
  .download-group .form-control {
    border-radius: 0.75rem 0 0 0.75rem !important;
  }
  
   /* Paste button (top right) */
  .download-group .paste-btn {
    border-radius: 0 0.75rem 0.75rem 0 !important;
  }

  /* Download on new line */
  .download-group .download-btn {
    width: 100%;
    margin-top: 0.75rem;
	border-radius: 0.75rem  !important;
  }
}

/* ================================
   Input Group Focus Cleanup
   ================================ */

/* Remove Bootstrap focus glow */
.download-group .form-control:focus {
  box-shadow: none !important;
  border-color: var(--accent-primary);
}

/* Prevent gap between input and paste button */
.download-group .form-control:focus + .btn {
  border-left-color: var(--accent-primary);
}

/* Also fix when clicking Paste */
.download-group .paste-btn:focus {
  box-shadow: none;
}


/* ================================
   Video card
   ================================ */
.thumb-wrapper {
	position: relative;
	overflow: hidden;
	border-radius: 4px;
}

.thumb-wrapper img {
	width: 100%;
	display: block;
}

.video-card {
	font-size: 13px;
}

/* badges */
.hd-badge {
	position: absolute;
	top: 6px;
	right: 6px;
	background: rgba(0,0,0,.8);
	font-size: 11px;
}

.time-badge {
	position: absolute;
	bottom: 6px;
	right: 6px;
	background: rgba(0,0,0,.8);
	font-size: 11px;
}

.like-badge {
	position: absolute;
	top: 6px;
	left: 6px;
	background: #28a745;
	font-size: 11px;
}

.video-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.video-card-link:hover {
	color: inherit;
}

.video-card-link:hover img {
	transform: scale(1.03);
}

/* ================================
   Video preview card
   ================================ */

.video-preview-card {
	background: radial-gradient(ellipse at top, #0b1d3a, var(--bg-main));
	border-radius: 8px;
	padding: 20px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.video-preview-card-title {
	font-size: 1rem;
	font-weight: 600;
}

.video-preview-card-sub {
	font-size: 0.9rem;
	color: var(--text-muted);;
}

.video-preview-card-table td,
        .video-preview-card-table th {
	background: #0b1d3a;
	vertical-align: middle;
	text-align: center;
}

.video-preview-wrapper {
	display: inline-block;
	width: 100%;
}

.video-preview-duration-badge {
	position: absolute;
	bottom: 6px;
	right: 8px;
	background: rgba(0, 0, 0, 0.75);
	color: #fff;
	padding: 3px 7px;
	font-size: 0.8rem;
	border-radius: 3px;
	line-height: 1;
}

.download-btn-large {
	padding: 14px;
	font-size: 1.1rem;
	border-radius: 6px;
}