/*
  IUV Leaderboard (Elementor) – Single unified card (all devices)
  - One card only
  - Left: Top #1
  - Right: How It Works + CTA (desktop)
  - Stacks on mobile
*/

/* ==========================================================
   FONT (force on every element in the module)
   ========================================================== */
.iuv-community-card,
.iuv-community-card * {
  font-family: "Oxanium", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
}

/* ==========================================================
   BASE CARD
   ========================================================== */
.iuv-community-card {
  background: #ffffff;
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(0,0,0,0.28);
  padding: 26px 22px 26px;
  margin: 26px auto;
  max-width: 1200px;
}

.iuv-community-card__top-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 16px;
}

.iuv-community-card__h3 {
    font-size: 2.25rem !important;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 16px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-family: "Bruno Ace", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.iuv-community-card__updated {
  font-size: 13px;
  opacity: 0.6;
  white-space: nowrap;
}

/* ==========================================================
   LAYOUT (desktop two-column inside ONE card)
   ========================================================== */
.iuv-community-card__content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ==========================================================
   TOP #1 HERO
   ========================================================== */
.iuv-community-card__hero {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Badge overlays image */
.iuv-community-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #ffb300, #ff7a00);
  color: #fff;
  font-weight: 900;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 15px;
  z-index: 3;
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
}

/* Media */
.iuv-community-card__media {
  display: block;
  width: 100%;
  height: 320px;
  border-radius: 18px;
  overflow: hidden;
  background: #e11d2e;
  box-shadow: 0 18px 45px rgba(0,0,0,0.16);
}

.iuv-community-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.iuv-community-card__media--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #fff;
  font-weight: 900;
  letter-spacing: 1px;
}

/* Title + votes */
.iuv-community-card__title {
  display: block;
  margin: 12px 0 6px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.1;

  /* remove underline behavior */
  text-decoration: none;
}

.iuv-community-card__hero:hover .iuv-community-card__title {
  text-decoration: none;
}

.iuv-community-card__votes {
  display: inline-block;
  color: #e11d2e;
  font-weight: 900;
  font-size: 15px;
}

/* Optional text */
.iuv-community-card__cta-text {
  margin: 12px 0 0;
  font-weight: 700;
  opacity: 0.9;
}

/* Empty */
.iuv-community-card__empty {
  padding: 16px 0;
  font-weight: 800;
}

/* ==========================================================
   HOW IT WORKS
   ========================================================== */
.iuv-community-card__how-title {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.iuv-community-card__how-media {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 22px 55px rgba(0,0,0,0.22);
  width: 100%;
  height: 420px; /* big on desktop */
}

.iuv-community-card__how-media img {
  width: 100%;
  height: 100%;
  display: block;

  /* show the full GIF without cropping */
  object-fit: cover;
  background: #111;
}

.iuv-community-card__how-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  text-align: center;
  backdrop-filter: blur(6px);
}

/* CTA button */
.iuv-community-card__cta {
  margin-top: 18px;
}

.iuv-community-card__cta-button {
  background: #e11d2e;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  padding: 18px 28px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-shadow: 0 18px 38px rgba(220,38,38,0.35);
  text-decoration: none;
}

.iuv-community-card__cta-button:hover {
    color: white !important;
}

/* ==========================================================
   MOBILE (stack)
   ========================================================== */
@media (max-width: 768px) {
    
    .iuv-community-card__h3 {
        font-size: 1.5rem !important;
        font-weight: 800;
        color: #ffffff;
        text-transform: uppercase;
        text-align: center;
        margin: 0 0 16px;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
        font-family: "Bruno Ace", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    }

  .iuv-community-card {
    margin: 20px auto 24px;
    max-width: 420px;
    padding: 26px 22px 30px;
  }

  .iuv-community-card__h3 {
    font-size: 24px;
  }

  .iuv-community-card__content {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .iuv-community-card__media {
    height: 175px;
  }

  .iuv-community-card__how-title {
    font-size: 22px;
    margin: 0 0 12px;
  }

  .iuv-community-card__how-media {
    height: 260px;
    border-radius: 18px;
  }

  .iuv-community-card__how-caption {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 14px;
  }
}

.iuv-gallery-module__btn:hover {
    color: white !important;
}

/* ==========================================================
   THEME LAYER (Bruno Ace / dark overlay / hero vibe)
   Paste this at the BOTTOM of your CSS file
   ========================================================== */

/* Optional: swap headings to Bruno Ace vibe (only headings) */
.iuv-community-card__h3,
.iuv-community-card__how-title,
.iuv-gallery-module__title,
.iuv-gallery-module__how-title {
  font-family: "Bruno Ace", "Oxanium", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* Card container: tighter radius + stronger shadow like your sample */
.iuv-community-card,
.iuv-gallery-module__panel {
  border-radius: 18px !important;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35) !important;
  overflow: hidden; /* helps with overlays */
}

/* ==========================================================
   TOP #1 HERO IMAGE: make it feel like a leaderboard hero card
   ========================================================== */

/* Ensure the hero media can host overlay text */
.iuv-community-card__media,
.iuv-leader-item__media {
  position: relative;
  overflow: hidden;
  border-radius: 18px !important;
}

/* Add a bottom gradient overlay like your sample */
.iuv-community-card__media::after,
.iuv-leader-item__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.05) 55%, transparent 75%);
  pointer-events: none;
}

/* Make the badge pop and sit ON the image */
.iuv-community-card__badge,
.iuv-leader-item__rank {
  text-decoration: none !important;
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
}

/* If anything is underlined (links), kill it globally for this module */
.iuv-gallery-module a,
.iuv-leader-item {
  text-decoration: none !important;
}

/* Title/votes overlay styling (gives that “text on image” vibe)
   This assumes your title/votes are BELOW the image currently.
   If you want them ON the image, I’ll give you that version too. */
.iuv-community-card__title {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.05;
}

.iuv-community-card__votes {
  font-weight: 800;
}

/* ==========================================================
   HOW IT WORKS: larger + dark framed media like your sample
   ========================================================== */

.iuv-community-card__how-media,
.iuv-gallery-module__how-media {
  background: #0b0b0b !important;
  border-radius: 18px !important;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0,0,0,0.30) !important;
}

/* Make GIF feel “bigger” and clearer */
.iuv-community-card__how-media img,
.iuv-gallery-module__how-media img,
.iuv-community-card__how-media video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* covers the frame */
  display: block;
  filter: brightness(0.98) contrast(1.05);
}

.iuv-community-card__how-media video{
  max-height: 520px;
}

/* Desktop: give the GIF a real hero height */
@media (min-width: 769px) {
  .iuv-community-card__how-media,
  .iuv-gallery-module__how-media {
    height: 520px; /* tweak this: 480–620 is a good range */
  }
}

/* Mobile: keep it reasonable */
@media (max-width: 768px) {
  .iuv-community-card__how-media {
    height: 260px;
  }
}

/* Caption overlay like your sample */
.iuv-community-card__how-caption,
.iuv-gallery-module__how-caption {
  background: rgba(0,0,0,0.65) !important;
  color: #fff !important;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  font-weight: 900 !important;
  border-radius: 14px !important;
}

/* ==========================================================
   BUTTON: match your vibrant red / hover lift style
   ========================================================== */

.iuv-community-card__cta-button,
.iuv-gallery-module__btn {
  background: #dc2626 !important;
  border-radius: 14px !important;
  font-weight: 900 !important;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.iuv-community-card__cta-button:hover,
.iuv-gallery-module__btn:hover {
  background: #b91c1c !important;
  transform: translateY(-2px);
  color: #fff !important;
}

/* Timestamp: subtle */
.iuv-community-card__updated,
.iuv-gallery-module__updated {
  opacity: 0.65;
  font-weight: 700;
}