/* ==============================
   Global Styles
   ============================== */
body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  background: #f9fafb;
  color: #1a202c;
  box-sizing: border-box;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ==============================
   Header
   ============================== */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-wrap,
.header-inner,
.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  flex-wrap: wrap;
  gap: 10px;
}

.logo {
  font-weight: 700;
  font-size: 20px;
  color: #007bff;
  display: flex;
  align-items: center;
}

.brand-tagline {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}

.filters-right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.filters-right label {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
}

button,
select {
  border: 1px solid #ddd;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
}

button {
  background: #007bff;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: #0056b3;
}

.donate-btn {
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
}

#refreshBtn,
#refreshBtnMobile {
  background: #ff0000;
}

/* ==============================
   Main Container
   ============================== */
.container {
  padding: 24px 0;
}

/* ==============================
   Highlight Cards (Hero Section)
   ============================== */
.highlight {
  margin-bottom: 20px;
}

.highlight-card {
  display: flex;
  position: relative;
  color: #fff;
  border-radius: 16px;
  overflow: hidden;
  min-height: 360px;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.highlight-card:hover {
  transform: scale(1.02);
}

.highlight-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  text-align: center;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.6;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.play-icon:hover {
  opacity: 1;
}

/* ==============================
   Grid Cards
   ============================== */
.grid,
#videoGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.card,
.video-card {
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
}

.card:hover,
.video-card:hover {
  transform: translateY(-3px);
}

.card video,
.video-thumb {
  width: 100%;
  aspect-ratio: 16 / 9; /* Prevent CLS */
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.card h4,
.card p,
.card a,
.video-body h3,
.video-body p {
  margin: 6px 0;
}

.card a:hover {
  text-decoration: underline;
  color: #007bff;
}

/* ==============================
   Footer
   ============================== */
.site-footer {
  background: #1a202c;
  color: #f9fafb;
  padding: 20px 0;
  text-align: center;
}

.site-footer a {
  color: #007bff;
  margin: 0 5px;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ==============================
   Shimmer Loader
   ============================== */
.shimmer {
  position: relative;
  overflow: hidden;
  background: #e2e2e2;
}

.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
  0% { left: -150%; }
  50% { left: 150%; }
  100% { left: -150%; }
}

/* ==============================
   Modal (Contact Form)
   ============================== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background: #fff;
  margin: auto;
  top: 50%;
  transform: translateY(-50%);
  position: relative;
  padding: 30px;
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
}

.contact-form h2 {
  margin-bottom: 20px;
  text-align: center;
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

input,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

textarea {
  resize: vertical;
}

button[type="submit"] {
  width: 100%;
  padding: 10px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
}

button[type="submit"]:hover {
  background: #0056b3;
}

.success {
  color: green;
  text-align: center;
  margin-bottom: 15px;
}

.error {
  color: red;
  text-align: center;
  margin-bottom: 15px;
}

/* ==============================
   Mobile Layout
   ============================== */
@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .mobile-donate {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .donate-group {
    display: none;
  }

  .mobile-platform-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .mobile-platform-row a {
    padding: 8px 10px;
    border-radius: 6px;
    background: #f5f5f5;
    border: 1px solid #e6e6e6;
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-platform-row a.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
  }

  .mobile-controls-row {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
  }

  .mobile-controls-row .mobile-filters {
    display: flex;
    gap: 8px;
    flex: 1;
  }

  .mobile-controls-row select {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #fff;
    width: 100%;
  }

  .mobile-controls-row .mobile-filters select {
    width: 48%;
  }

  .mobile-controls-row .mobile-refresh {
    white-space: nowrap;
  }

  .toolbar {
    display: none;
  }
}

/* ===== Header ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 20px;
  color: #007bff;
  text-decoration: none;
}

.filters-right {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.filters-right a {
  text-decoration: none;
  color: #007bff;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.3s;
}

.filters-right a:hover {
  background: #f0f0f0;
}

.filters-right a.active {
  background: #007bff;
  color: #fff;
}

/* ===== Footer ===== */
.site-footer {
  background: #1a202c;
  color: #f9fafb;
  padding: 20px 0;
  text-align: center;
}

.site-footer .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-footer a {
  color: #007bff;
  margin: 0 5px;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ===== Container for page content ===== */
.container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 16px;
}

