/* =================================================================
   FSEA AWARD BADGE COMPONENT
   Reusable animated foil badge for Gold Leaf Award winners
   ================================================================= */

/* Base badge - positioned for corner placement */
.award-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 50px;
    height: 50px;
    z-index: 20;
    pointer-events: none;
}

/* Foil effect layer using pseudo-element */
.award-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Gold gradient (default) */
    background: linear-gradient(
        120deg,
        #8B6914 0%,
        #CD9B1D 15%,
        #FFD700 30%,
        #FFEC8B 45%,
        #FFF8DC 50%,
        #FFEC8B 55%,
        #FFD700 70%,
        #CD9B1D 85%,
        #8B6914 100%
    );
    background-size: 300% 100%;
    animation: award-chrome-sweep 3s ease-in-out infinite;

    /* Use FSEA logo as mask */
    -webkit-mask-image: url('../../Layering Assets/Leaf_for_placement_FSEAknockout_GOLD-new.webp');
    mask-image: url('../../Layering Assets/Leaf_for_placement_FSEAknockout_GOLD-new.webp');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

/* Chrome sweep animation */
@keyframes award-chrome-sweep {
    0%, 100% {
        background-position: 100% 0;
    }
    50% {
        background-position: 0% 0;
    }
}

/* =================================================================
   COLOR VARIANTS
   ================================================================= */

/* Silver Foil */
.award-badge--silver::before {
    background: linear-gradient(
        120deg,
        #4a4a4a 0%,
        #7a7a7a 12%,
        #a8a8a8 24%,
        #c8c8c8 36%,
        #e8e8e8 44%,
        #ffffff 50%,
        #e8e8e8 56%,
        #c8c8c8 64%,
        #a8a8a8 76%,
        #7a7a7a 88%,
        #4a4a4a 100%
    );
    background-size: 300% 100%;
}

/* Copper Foil */
.award-badge--copper::before {
    background: linear-gradient(
        120deg,
        #8B5A33 0%,
        #A86B3D 15%,
        #B87333 30%,
        #C07D47 45%,
        #DA8A67 50%,
        #C07D47 55%,
        #B87333 70%,
        #A86B3D 85%,
        #8B5A33 100%
    );
    background-size: 300% 100%;
}

/* =================================================================
   SIZE VARIANTS
   ================================================================= */

/* Small - for thumbnail cards */
.award-badge--sm {
    width: 40px;
    height: 40px;
    top: 6px;
    right: 6px;
}

/* Medium - default size (explicit class) */
.award-badge--md {
    width: 50px;
    height: 50px;
}

/* Large - for hero sections */
.award-badge--lg {
    width: 100px;
    height: 100px;
    top: 15px;
    right: 15px;
}

/* Extra Large - for featured displays */
.award-badge--xl {
    width: 140px;
    height: 140px;
    top: 20px;
    right: 20px;
}

/* =================================================================
   POSITION VARIANTS
   ================================================================= */

.award-badge--top-left {
    top: 8px;
    right: auto;
    left: 8px;
}

.award-badge--bottom-right {
    top: auto;
    bottom: 8px;
    right: 8px;
}

.award-badge--bottom-left {
    top: auto;
    right: auto;
    bottom: 8px;
    left: 8px;
}

/* Inline display (for text flow) */
.award-badge--inline {
    position: relative;
    display: inline-block;
    top: auto;
    right: auto;
    vertical-align: middle;
}

/* =================================================================
   ANIMATION CONTROL
   ================================================================= */

/* Pause animation until hover (for performance on grids) */
.award-badge--hover-animate::before {
    animation-play-state: paused;
}

.award-badge--hover-animate:hover::before,
.sample-card:hover .award-badge--hover-animate::before {
    animation-play-state: running;
}

/* Static foil look (no animation) */
.award-badge--static::before {
    animation: none;
    background-position: 50% 0;
}

/* =================================================================
   ACCESSIBILITY
   ================================================================= */

/* Screen reader only label */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =================================================================
   RESPONSIVE ADJUSTMENTS
   ================================================================= */

/* Tablet and below */
@media (max-width: 768px) {
    .award-badge {
        width: 45px;
        height: 45px;
        top: 6px;
        right: 6px;
    }

    .award-badge--lg {
        width: 80px;
        height: 80px;
        top: 12px;
        right: 12px;
    }

    .award-badge--xl {
        width: 100px;
        height: 100px;
        top: 15px;
        right: 15px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .award-badge {
        width: 36px;
        height: 36px;
        top: 5px;
        right: 5px;
    }

    .award-badge--sm {
        width: 30px;
        height: 30px;
    }

    .award-badge--lg {
        width: 60px;
        height: 60px;
        top: 10px;
        right: 10px;
    }

    .award-badge--xl {
        width: 80px;
        height: 80px;
        top: 12px;
        right: 12px;
    }
}
