/**
 * Highlights Enhancements CSS
 *
 * Styles for featured highlights, badges, filter buttons, and transitions.
 *
 * @package SaintsCore
 * @subpackage Highlights
 * @version 1.1.0
 * @since 1.7.0
 */

/* ==========================================================================
   Highlight Auxiliary Filter
   ========================================================================== */

/**
 * Filter button container
 */
.saints-highlight-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 16px;
    margin-bottom: 20px;
    padding-left: 3vw;
    padding-right: 3vw;
}

/**
 * Filter button base styles
 * Uses gold/warm tones to match highlight branding
 */
.saints-highlight-filter .saints-filter-btn {
    padding: 12px 24px;
    border: 2px solid #333333;
    color:#333333;
    border-radius: 50px;
    background-color: transparent !important;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 20px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.saints-highlight-filter .saints-filter-btn:hover {
    border-color: #D4AF37;
    color: #D4AF37;
}

.saints-highlight-filter .saints-filter-btn.active {
    background-color: #D4AF37 !important;
    color: #333333;
    border-color: #D4AF37;
}

.saints-highlight-filter .saints-filter-btn:focus {
    outline: 2px solid #D4AF37;
    outline-offset: 2px;
}

/* ==========================================================================
   Featured Highlights
   ========================================================================== */

/**
 * Featured highlight card styling
 * Only applied to loop items, NOT single highlight pages
 */
.e-loop-item.highlight-featured > .e-con,
.e-loop-item.highlight-featured > a.e-con {
    position: relative;
    border-right: #D4AF37 solid 5px !important;
}

/**
 * Featured badge - appears in top-right corner
 */
.highlight-featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #D4AF37, #F4D03F);
    color: #333333;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Highlight Badges
   ========================================================================== */

/**
 * Base badge styles
 */
.highlight-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #D4AF37;
    color: #333333;
    padding: 3px 8px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 6px;
    margin-bottom: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/**
 * Badge container
 */
.highlight-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/**
* Single page styles
*/
.highlight-gallery .e-gallery-item {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Stake Highlight Badge
   ========================================================================== */

/**
 * Stake highlight badge - appears on stake-level highlights shown on ward pages
 * Use [highlight_stake_badge] shortcode in Elementor loop template
 */
.highlight-stake-badge {
    display: inline-block;
    background: rgba(11, 39, 73, 0.8);
    border: solid 2px #fff;
    color: #fff;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   Filter Transitions
   ========================================================================== */

/**
 * Base transition for highlight items
 */
.e-loop-item {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/**
 * Visible state (default)
 */
.e-loop-item.filter-visible {
    opacity: 1;
    transform: translateY(0);
}

/**
 * Hidden state (fading out)
 */
.e-loop-item.filter-hidden {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
}

/**
 * Container during filtering (prevents layout jump)
 */
.elementor-loop-container.is-filtering,
.e-loop.is-filtering {
    min-height: 200px;
}

/**
 * Empty state message
 */
.saints-highlight-filter-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-top: 20px;
}

.saints-highlight-filter-empty p {
    margin: 0;
}
/* ==========================================================================
   Pagination Enhancements
   ========================================================================== */
.highlight-loop .page-numbers.prev {
    background: #fff;
    border: 1px solid #fff;
    color: #333333 !important;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 800;
    transition: background 0.3s ease;
}

.highlight-loop .page-numbers.prev:hover {
    background: #D4AF37;
    border: 1px solid #fff;
    color: #fff !important;
}

.ward-template-ward-highlights .highlight-loop .page-numbers.prev {
    border: 1px solid #D4AF37;
}

.highlight-loop .page-numbers.next {
    background: #fff;
    border: 1px solid #fff;
    color: #333333 !important;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 800;
    transition: background 0.3s ease;
}

.highlight-loop .page-numbers.next:hover {
    background: #D4AF37;
    border: 1px solid #fff;
    color: #fff !important;
}

.ward-template-ward-highlights .highlight-loop .page-numbers.next {
    border: 1px solid #D4AF37;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    /**
     * Hide filter buttons in print
     */
    .saints-highlight-filter {
        display: none !important;
    }

    /**
     * Badges in print
     */
    .highlight-badges {
        margin-bottom: 12pt;
    }

    .highlight-badge {
        background: none !important;
        color: #000 !important;
        border: 1pt solid #666 !important;
        padding: 2pt 6pt;
    }

    /**
     * Featured styling in print
     */
    .highlight-featured-badge {
        background: none !important;
        color: #000 !important;
        border: 1pt solid #000 !important;
    }

    /**
     * Stake badge styling in print
     */
    .highlight-stake-badge {
        background: none !important;
        color: #000 !important;
        border: 1pt solid #333 !important;
        padding: 2pt 6pt;
    }
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 1024px) {
    /**
     * Filter button container
     */
    .saints-highlight-filter {
        padding-left: 6.5vw;
        padding-right: 6.5vw;
    }
}

@media (max-width: 768px) {
    .saints-highlight-filter {
        gap: 16px 6px;
    }

    .highlight-badges {
        gap: 4px;
    }

    .highlight-badge {
        font-size: 10px;
        padding: 2px 8px;
    }

    .highlight-featured-badge {
        font-size: 10px;
        padding: 3px 8px;
    }

    .highlight-stake-badge {
        font-size: 10px;
        padding: 2px 6px;
    }
}

@media (max-width: 585px) {
    .saints-highlight-filter {
        justify-content: center;
        gap: 16px 16px;
        flex-wrap: nowrap;
        flex-direction: column;
        padding-left: 30px;
        padding-right: 30px;
    }
}
