/* ---------------------------------------------------------------
   Modern Professional Theme – Dark + Glassmorphism
   --------------------------------------------------------------- */

/* ==== Root variables (color palette) ==== */
:root {
  /* Dark background shades */
  --bg-primary: #0a0a0a;
  --bg-secondary: #151515;
  --bg-gradient: linear-gradient(180deg, #0a0a0a, #151515);

  /* Accent colors – teal & amber */
  --accent-primary: #0ef9b0;   /* bright teal */
  --accent-secondary: #ffb400; /* warm amber */
  --accent-muted: #6c757d;    /* muted gray for subtle UI */

  /* Glass effect */
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);

  /* Typography */
  --font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --radius: 12px;
}

/* ==== Global resets ==== */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; font-family: var(--font-family); color: #e6eef8; background: var(--bg-gradient); }
body { padding: 2rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* ==== Layout ==== */
.container { max-width: 1240px; margin: 0 auto; }

/* ==== Header / Hero ==== */
header.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.hero-left { flex: 1 1 60%; }
.hero-right { flex: 1 1 35%; }

h1 {
  margin: 0 0 0.5rem 0;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  font-weight: 700;
}

p.lead {
  margin: 0;
  color: var(--accent-muted);
  font-size: 1rem;
}

/* ==== Buttons ==== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-position 0.3s ease;
  background-size: 200% 200%;
  background-position: left center;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.45);
  background-position: right center;
}
.btn.primary {
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  border: none;
}

/* ==== Search Controls ==== */
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  align-items: center;
}
.search {
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
}
.search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: inherit;
  font-size: 1rem;
}
select, .filter-clear {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
}

/* ==== Grid ==== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  contain: layout style; /* performance */
}

/* ==== Card ==== */
.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 220px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  contain: layout style;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.6);
}

.thumb {
  width: 100%;
  height: 150px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--glass-bg);
  position: relative;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.thumb:hover img { transform: scale(1.03); filter: brightness(1.1); }

/* ==== Meta info ==== */
.meta { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.title { font-weight: 700; font-size: 1rem; margin: 0; }
.desc { color: var(--accent-muted); font-size: 0.9rem; margin: 0; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  font-size: 0.78rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: 0 0 6px rgba(14, 249, 176, 0.3);
}

/* ==== Modal ==== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.2s ease-out;
}
.modal-backdrop.active { display: flex; opacity: 1; }
.modal {
  width: 100%;
  max-width: 1100px;
  height: 80vh;
  background: var(--glass-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  transform: scale(0.95) translateY(-10px);
  opacity: 0;
  transition: all 0.2s ease-out;
}
.modal-backdrop.active .modal { transform: scale(1) translateY(0); opacity: 1; }
.modal-header {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.modal iframe { flex: 1; width: 100%; height: 100%; border: 0; }

/* ==== Empty / Footer ==== */
.empty {
  padding: 2.5rem;
  text-align: center;
  color: var(--accent-muted);
  border-radius: var(--radius);
  border: 1px dashed rgba(255,255,255,0.03);
}

/* ==== Responsive tweaks ==== */
@media (max-width: 720px) {
  header.hero { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .hero-left, .hero-right { max-width: 100%; }
  .thumb { height: 130px; }
  .modal { height: 86vh; }
}

/* ==== Loading state for images ==== */
.thumb.loading::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-secondary);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

/* ==== Input disabled visual ==== */
.search input:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ---------------------------------------------------------------
   End of Modern Professional Theme
   --------------------------------------------------------------- */
/* test change */
