/* © WatchJunk */
/* coded by nya & suzunay */

body {
    font-family: 'Poppins', sans-serif;
    background-color: #080c18 !important;
    background-image: none !important;
    color: #ffffff;
    margin: 0;
  }

  .container1 {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
  }

  @media (max-width: 768px) {
  }

  .filter-form {
    margin: 25px 0 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: #0f172a;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
  }

  .filter-form label {
    margin: 0;
    font-weight: 600;
    color: #cbd5e1;
    font-size: 0.95rem;
  }

  .filter-form select {
    padding: 10px 16px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    background: #1e293b;
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    flex: 1;
    max-width: 300px;
  }

  .filter-form select:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background: #27344A;
  }

  .filter-form select:focus {
    outline: none;
    border-color: #00a3ff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  }

  .news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
  }

  .news-card {
    background: #0f172a;
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
  }

  .news-card:not(.archived):not(.favorited)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
  }

  .news-card:not(.archived):not(.favorited):hover::after {
    opacity: 1;
  }

  .news-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 14px rgba(0, 0, 0, 0.4), 0 0 8px rgba(59, 130, 246, 0.2);
  }

  .news-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s ease;
    filter: brightness(0.95);
  }

  .news-card:hover img {
    transform: scale(1.05);
    filter: brightness(1);
  }

  .news-content {
    padding: 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 2;
  }

  .news-content h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
  }

  .news-card:hover .news-content h3 {
    color: #e0e7ff;
  }

  .news-meta {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0;
    font-weight: 500;
  }

  .news-meta b {
    color: #00a3ff;
    font-weight: 700;
  }

  .news-content p {
    font-size: 0.95rem;
    color: rgba(203, 213, 225, 0.9);
    line-height: 1.6;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .btn-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #33b5ff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    margin-top: 8px;
    width: fit-content;
  }

  .btn-custom:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.5);
    color: #93c5fd;
    transform: translateX(4px);
  }

  .news-card.favorited::before {
    content: "Highlight";
    font-weight: 700;
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.9) 0%, rgba(255, 193, 7, 0.9) 100%);
    color: #000;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    z-index: 20;
    box-shadow: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 1;
    pointer-events: none;
  }

  .news-card.archived::after {
    content: "Archiviert";
    font-weight: 700;
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9) 0%, rgba(220, 38, 38, 0.9) 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    z-index: 20;
    box-shadow: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 1;
    pointer-events: none;
  }

  @media (max-width: 768px) {
    .news-grid {
      grid-template-columns: 1fr;
      gap: 20px;
    }

    .news-card img {
      height: 220px;
    }

    .news-content h3 {
      font-size: 1.15rem;
    }

    .news-meta {
      font-size: 0.8rem;
    }

    .news-content p {
      font-size: 0.9rem;
    }

    .filter-form {
      flex-direction: column;
      align-items: stretch;
    }

    .filter-form select {
      max-width: 100%;
    }
  }

  @media (max-width: 480px) {
    .news-card img {
      height: 200px;
    }

    .news-content {
      padding: 16px 18px;
    }

    .news-content h3 {
      font-size: 1.1rem;
    }

  }
/* ── Spoiler Badge & Hint ── */
.spoiler-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(231, 76, 60, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
    margin-right: 6px;
}
.spoiler-badge i {
    font-size: 0.65rem;
}
.spoiler-hint {
    color: #8b95a5;
    font-style: italic;
    font-size: 0.9rem;
    padding: 12px 16px;
    background: rgba(231, 76, 60, 0.06);
    border: 1px dashed rgba(231, 76, 60, 0.2);
    border-radius: 8px;
}
.spoiler-hint i {
    color: #e74c3c;
    margin-right: 4px;
}

/* ── Shimmer Lazy Loading ── */
img.lazy {
    background: linear-gradient(90deg, #12192b 0%, #1a2542 20%, #243156 40%, #1a2542 60%, #12192b 80%) !important;
    background-size: 200% 100% !important;
    animation: imgShimmer 1.6s ease-in-out infinite !important;
}
img.lazy-loading {
    background: linear-gradient(90deg, #12192b 0%, #1a2542 20%, #243156 40%, #1a2542 60%, #12192b 80%) !important;
    background-size: 200% 100% !important;
    animation: imgShimmer 1.6s ease-in-out infinite !important;
}
