/* Winota Featured Games Grid Layout */

/* Specialized grid for the 'Destacados' section - Desktop Only */
@media (min-width: 901px) {
  .winota-featured-grid {
    display: grid !important;
    /* 12 column grid allows for 3 items (span 4) and 4 items (span 3) rows */
    grid-template-columns: repeat(12, 1fr) !important;
    gap: 15px !important;
  }

  /* Default: All items span 3 columns (4 items per row) */
  .winota-featured-grid .game-card-optimized {
    grid-column: span 3;
    width: 100% !important;
  }

  /* Big Card Styles */
  .winota-featured-grid .game-card-big {
    grid-column: span 4; /* 3 items per row */
    aspect-ratio: 16 / 9; /* Wider aspect ratio for big cards */
    position: relative;
    border-radius: 12px;
    overflow: visible;
    border: 2px solid #ffd700; /* Gold border as per reference */
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
  }

  /* Standard Card Styles inside Featured Grid */
  .winota-featured-grid .game-card-standard {
    grid-column: span 3; /* 4 items per row */
  }

  /* Image styling for Big Cards */
  .winota-featured-grid .game-card-big .game-image-container {
    width: 100%;
    height: 100%;
    overflow: hidden; /* Ensure no spillover from image */
    border-radius: 10px; /* Match parent radius minus border */
  }

  .winota-featured-grid .game-card-big .play-link {
    display: block;
    width: 100%;
    height: 100%;
  }

  .winota-featured-grid .game-card-big .game-image {
    width: 100%;
    height: 100%;
    object-fit: fill; /* Force fill the container (may stretch) as requested */
    /* If user prefers crop but correct aspect ratio, change to 'cover' */
    display: block;
  }

  /* Play Button Overlay for Big Cards */
  .winota-featured-grid .game-card-big .play-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    pointer-events: none; /* Passes clicks to the link behind */
    /* Remove old styles */
    background: none;
    box-shadow: none;
    border: none;
    padding: 0;
  }

  /* Custom 3-part Button Construction */
  .btn-winota-secondary {
    display: flex;
    align-items: stretch;
    height: 44px; /* Adjust height based on image */
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
    cursor: pointer;
    pointer-events: auto; /* Re-enable clicks if button needs action, though parent is anchor */
  }

  .btn-winota-secondary .btn-side {
    width: 22px; /* Width of the end caps */
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-size: 100% 100%;
  }

  .btn-winota-secondary .btn-side-left {
    background-image: url("/media/winota_media/assets/btn-secondary-left.png");
  }

  .btn-winota-secondary .btn-side-right {
    background-image: url("/media/winota_media/assets/btn-secondary-right.png");
  }

  .btn-winota-secondary .btn-content {
    flex-grow: 1;
    background-image: url("/media/winota_media/assets/btn-secondary-center.png");
    background-repeat: repeat-x;
    background-size: auto 100%;
    color: #fff;
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    min-width: 80px;
  }

  /* Hover Effect for Button */
  .game-card-big:hover .btn-winota-secondary {
    transform: scale(1.05);
    transition: transform 0.2s ease;
  }

  /* Top Decoration Image */
  .card-top-decoration {
    position: absolute;
    top: -12px; /* Pull it up slightly to overlap border */
    left: 50%;
    transform: translateX(-50%);
    width: 250px; /* Adjust size based on image */
    height: 50px;
    /* background-image: url("/media/winota_media/assets/footer-top.png"); */
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: 4;
    pointer-events: none;
  }

  @media (max-width: 1024px) {
    .winota-featured-grid .game-card-standard {
      grid-column: span 4; /* 3 items per row */
    }
  }
}

/* Hide Desktop-Only Content on Mobile */
@media (max-width: 900px) {
  .winota-desktop-only {
    display: none !important;
  }
}
