/* Secret Drop — realistic hourglass badge positioning.
   The hourglass itself (SVG glass + Canvas sand) is rendered by the
   Realistic Hourglass plugin (rhg-hourglass-wrap/.rhg-stage) — this file
   only positions/sizes that output for the two contexts it's embedded in:
   - .secret-drop-hourglass-slot--card : listing card thumbnail corner
   - .secret-drop-hourglass-slot--form : inline in the "Blind Bidding
     Auction" timer button, next to the numeric countdown text */

/* ── Listing card ──────────────────────────────────────────────────────
   White diagonal cut-out in the top-left corner of the thumbnail (see
   .item-media-thumb.has-secret-drop below) — the hourglass sits inside it,
   anchored with absolute positioning, sized responsively so it scales with
   the card instead of a fixed pixel size. */
.item-media-thumb.has-secret-drop {
    background-color: #fff;
}
.item-media-thumb.has-secret-drop .hover-effect img {
    clip-path: polygon(30% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 55%);
}
@media (max-width: 480px) {
    .item-media-thumb.has-secret-drop .hover-effect img {
        clip-path: polygon(45% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 38%);
    }
}

.secret-drop-hourglass-slot--card {
    position: absolute;
    top: 1%;
    left: 1%;
    z-index: 10;
    width: 10%;
    max-width: 120px;
    min-width: 49px;
    aspect-ratio: 100 / 130;
    pointer-events: none;
}

/* ── Bid form timer "card" ─────────────────────────────────────────────
   Premium redesign: gradient card, soft shadow, hover lift, subtle CSS-only
   shine sweep. Icon + text are the same markup as before — only visual
   styling changed here. */
.secret-drop-timer-btn {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 50px;
    padding: 0px 0px !important;
    min-height: 53px;
    border-radius: 5px !important;
    background: #00000000 !important;
    background-size: 160% 160%;
    background-position: 0% 50%;
    border: 1px solid #b8b8b8d6;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    cursor: default;
    transition: transform 300ms ease, box-shadow 300ms ease, background-position 300ms ease;
}
.secret-drop-timer-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(20, 184, 166, 0.38), 0 4px 10px rgba(20, 184, 166, 0.22);
    background-position: 100% 50%;
}
.secret-drop-timer-btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* Subtle glass shine sweep — pure CSS, transform/opacity only. */
.secret-drop-timer-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    left: -60%;
    width: 40%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: translateX(0) skewX(-20deg);
    animation: rhg-timer-shine 3.2s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}
@keyframes rhg-timer-shine {
    0% { transform: translateX(0) skewX(-20deg); opacity: 0; }
    8% { opacity: 1; }
    45%, 100% { transform: translateX(340%) skewX(-20deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .secret-drop-timer-btn::after {
        animation: none;
        display: none;
    }
}

.secret-drop-hourglass-slot--form {
    display: inline-block;
    width: 38px;
    /* aspect-ratio (not a fixed height) so it exactly matches the 60x78
       canvas resolution passed in secret_drop_render_hourglass() — a
       mismatched box ratio was squashing/stretching the glass shape. */
    aspect-ratio: 60 / 78;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
}

#secret-drop-timer-text {
    position: relative;
    z-index: 1;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.4px;
    line-height: 1;
    color: #585858;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

@media (max-width: 480px) {
    .secret-drop-timer-btn {
        padding: 16px 18px !important;
        gap: 50px;
        min-height: 56px;
        border-radius: 14px !important;
    }
    .secret-drop-hourglass-slot--form {
        width: 28px;
    }
    #secret-drop-timer-text {
        font-size: 16px;
    }
}
