/* =========================
   MOBILE.CSS – bis 992px
   ========================= */

/* Mobile sichtbar, Desktop verstecken */
.mobile-nav,
.mobile-footer,
#filter-modal {
  display: block;
}

.desktop-nav,
.desktop-footer,
#filter-sidebar {
  display: none !important;
}

/* === Grundsicherung gegen Überlauf === */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header */
.top-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem;
  background: linear-gradient(90deg, #d16ba5, #86a8e7, #5ffbf1);
}

.header-logo {
  max-width: 150px;
  height: auto;
  display: inline-block;
}

/* Artikel-Grid (2 Spalten) */
.icon-hot {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 1rem;
  z-index: auto;
  text-shadow: 0 0 5px rgba(0,0,0,0.6);
}

#article-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem;
  box-sizing: border-box;
  max-width: 100vw;
  overflow: hidden;
}

.article-card {
background: #2c2c3e;
  overflow: hidden;
  border: 0.2rem solid rgb(198, 138, 227);
  border-radius: 1rem;
  z-index:auto;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
  will-change: opacity, transform;
}

.article-card:not(.revealed) {
  opacity: 0;
  transform: translateY(6px);
}

.article-card.revealed {
  opacity: 1;
  transform: none;
}

/* Barrierefreiheit: reduziert Bewegungen */
@media (prefers-reduced-motion: reduce) {
  .article-card { transition: none; }
}

.article-card img {
  width: 100%;
  height: auto;
  display: block;
  z-index: auto;
}

.article-card h3 {
  flex: 1;
  padding: 0.5rem;
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.2;
  background: #2c2c3e;
  color: #f0f0f0;
}

.article-card > * {
  background: #2c2c3e;

}


/* Mobile Footer Navigation */
.mobile-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, #d16ba5, #86a8e7, #5ffbf1);
  padding: 0.5rem 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  z-index: 999;
}

.mobile-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.mobile-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  color: #fff;
  font-size: 0.75rem;
  text-align: center;
  transition: background 0.2s;
}

.mobile-nav a:hover {
  background: rgba(0,0,0,0.8);
}

.mobile-footer .nav-btn {
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.mobile-footer .nav-btn:hover {
  transform: scale(1.1);
}

/* Icons */
.mobile-footer .nav-btn span {
  font-size: 24px;
  margin-bottom: 4px;
}

#top10-btn-mobile {
  display: flex;
  flex-direction: column; /* Icon über Text */
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  font-size: 0.75rem;
  padding: 6px 8px;
  gap: 2px; /* kleiner Abstand zwischen Icon und Text */
}

#top10-btn-mobile .season-icon {
  font-size: 1.3rem;
  line-height: 1;
}

#top10-btn-mobile .season-label {
  font-size: 0.8rem;
  text-transform: capitalize;
}

#shiba-footer-anchor {
  position: fixed;
  bottom: 20%;
  right: 10%;
  width: 0;
  height: 0;
  z-index: 100;
}

.shiba-bark {
  width: 100px;
  height: 150px;
  background-image: url('assets/icons/shiba_mob.png');
  background-size: cover;
  background-repeat: no-repeat;
  will-change: background-image;
}

#shiba-modal {
  top: auto;
  bottom: 90px;
  right: 10px;
  width: 90vw;
  max-width: 320px;
  padding: 0.8rem;
  z-index: 3000;
}

/* Modal Hintergrund */
#filter-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  background: #2a2a2a;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 5000;
  padding: 1rem;
  border-radius: 50px 50px 0 0;
  box-shadow:
    0 -4px 12px rgba(0,0,0,0.4),
    0 0 15px rgba(255, 102, 204, 0.5),
    0 0 25px rgba(51, 204, 204, 0.5);
}

#filter-modal.active {
  transform: translateY(0);
}

#filter-modal h3 {
  text-align: center;
  margin-bottom: 1rem;
  color: #ececff;
}

.filter-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.filter-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.filter-badge.active {
  background: linear-gradient(90deg, #ff66cc, #33cccc);
}

.filter-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-around;
}

.filter-actions button {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #ff66cc, #33cccc);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.filter-close-button {
  position: absolute;
  top: -10px;
  right: 20px;
  width: 2.6rem;
  height: 2.6rem;
  border: none;
  border-radius: 50%;
  background-color: #2a2a2a;
  background-image: url("assets/icons/close_pink.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1.4rem;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  transition: transform 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  z-index: 6000;
}

.filter-close-button:hover {
  transform: scale(1.1);
  background-color: #3b3f54;
}

/* Für das Modal-Innenlayout (falls nötig) */
.filter-modal-content {
  position: relative;
}

.hidden { display: none; }

/* Mehr Modal Bottom */
#more-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  background: #2a2a2a;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 5000;
  padding: 1rem;
  color: #fff;
  border: 3px solid transparent;
  border-radius: 50px 50px 0 0;
  box-shadow:
    0 -4px 12px rgba(0,0,0,0.4),
    0 0 15px rgba(255, 102, 204, 0.5),
    0 0 25px rgba(51, 204, 204, 0.5);
}

#more-modal.active {
  transform: translateY(0);
}

.more-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.more-list li {
  margin: 0.8rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 102, 204, 0.4);
}

.more-list li:last-child { border-bottom: none; }

.more-list a {
  display: block;
  padding: 0.6rem 0;
  font-size: 1.1rem;
  color: #ffedf7;
  font-weight: 500;
  text-align: center;
  border-radius: 8px;
  background: rgba(255, 102, 204, 0.1);
}

.more-list a.active {
  background: linear-gradient(90deg, #ff66cc, #33cccc);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
}

.more-list a:hover { color: #5ffbf1; }

.more-actions {
  margin-top: 1rem;
  text-align: center;
}

.more-actions button {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #ff66cc, #33cccc);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

/* Mobile Footer Padding Fix */
body {
  padding-bottom: 80px;
}

/* Modal Layout */
.modal {
  align-items: flex-end;
}

.modal-content {
  width: 100vw;
  max-width: 450px;
  height: min(92vh, 700px);
  border-radius: 16px 16px 0 0;
  padding: 16px;
}

#modal-body {
  max-width: 450px;
}

  .tb-affiliate-card {
    font-size: 0.85rem;
    padding: 12px;
    border-radius: 12px;
  }

@supports (padding: max(0px)) {
  .modal-content {
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
}

/* ===============================
   Mobile Fav-Banner (TrendBiest)
   =============================== */
#fav-banner.tb-banner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(145deg, #1d1d2b, #27273f);
  color: #f5f5ff;
  box-shadow: 0 0 10px rgba(180, 80, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease-in-out;
  will-change: transform, opacity;
}

#fav-banner span {
  display: block;
  text-align: center;
  color: #d6d6ff;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

#fav-banner .btn {
  width: 100%;
  text-align: center;
  border-radius: 10px;
  font-weight: 600;
  padding: 10px 14px;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  min-width: 0;
  flex: 1 1 100%;
  word-break: keep-all;
}

#fav-banner .btn-accent {
  background: linear-gradient(90deg, #00e0ff, #00ffa3);
  color: #101020;
  box-shadow: 0 0 8px rgba(0, 255, 200, 0.4);
}

#fav-banner .btn-accent:hover {
  box-shadow: 0 0 12px rgba(0, 255, 200, 0.6);
  transform: translateY(-1px);
}

#fav-banner .btn-ghost {
  background: transparent;
  color: #a7a7ff;
  border: 1px solid rgba(160, 120, 255, 0.4);
}

#fav-banner .btn-ghost:hover {
  color: #fff;
  border-color: #b077ff;
  box-shadow: 0 0 8px rgba(176, 119, 255, 0.3);
}

#fav-banner .btn.danger {
  background: linear-gradient(90deg, #ff2b75, #ff5277);
  color: #fff;
  box-shadow: 0 0 8px rgba(255, 80, 130, 0.35);
}

#fav-banner .btn.danger:hover {
  box-shadow: 0 0 12px rgba(255, 90, 150, 0.55);
  transform: translateY(-1px);
}

#fav-banner .btn + .btn {
  margin-top: 8px;
}

#fav-banner, #fav-banner * {
  max-width: 100%;
  box-sizing: border-box;
}

/* === Grid Fallback für sehr kleine Displays === */
@media (max-width: 340px) {
  #article-container {
    grid-template-columns: 1fr !important; /* nur bei wirklich winzigen Displays */
  }
}

/* === Performance & Touch === */
* {
  -webkit-tap-highlight-color: transparent;
}

#fav-banner,
#filter-modal,
#more-modal {
  transform: translateZ(0);
}



/* ===========================
   TB Event Modal – Pink Close Button
   =========================== */








