/*
 * Past Winner Component Styles
 * All classes prefixed with .past-winner-
 * Author: PIFster Team
 * 
 * Note: These styles are scoped to their parent container using the data-instance-id attribute
 * to prevent conflicts when multiple instances exist on the same page.
 */

/* Card container styles now inherited from .pifster-charity-card in pifster-shared.css */

/* Debug styles */
.past-winner-card {
    border: 1px solid rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* Note: Green outline hover effect moved to pifster-charities-shared.css */
/* Instance-specific styles for .past-winner-card[data-instance-id] now handled in shared CSS */

/* Description content styling - inheriting from shared CSS */
/* Note: Using shared CSS values for .past-winner-description-content and .past-winner-description-content.open */
/* No component-specific overrides needed - see pifster-charities-shared.css */

/* Base styles for all past winner cards */
.past-winner-card {
    /* Reset any conflicting styles */
    isolation: isolate;
    position: relative;
}

/* Scoped styles using attribute selector for better specificity */
/* Note: This selector is used for JS targeting; CSS styles now use class-based approach */

/* Base styles outside the scoped block */
.past-winner-aspect-16-9 {
    aspect-ratio: 16/9;
    width: 100%;
    background: #f8f8f8;
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.past-winner-aspect-16-9 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.past-winner-content {
    padding: 1.1rem 1.5rem 1rem;
}

.past-winner-meta-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 15px;
    background-color: #f8f6ea;
    border-radius: 4px;
    margin-bottom: 10px;
}

.past-winner-meta-row .meta-col {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.past-winner-winning-month-label,
.past-winner-donation-total-label {
    font-weight: 500;
}

.past-winner-donation-total-value {
    color: #f26922;
    font-weight: 600;
}

.past-winner-title {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 0.5rem;
    margin-bottom: 0.4rem;
    color: #22223b;
}

/* Subtitle styles moved to shared CSS */

.past-winner-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em;
    align-items: center;
    margin: 0.2rem 0 1em;
    font-size: 1.06rem;
    font-weight: 500;
    justify-content: space-between;
    background: linear-gradient(90deg, #fffbe6 0%, rgb(255 251 230 / 0%) 100%);
    border-radius: 6px 6px 0 0;
    padding: 0.5em 1em;
    margin-bottom: 0.5em;
}

.past-winner-winning-month {
    font-weight: 700;
    color: #2d3748;
}

.past-winner-historical-donation {
    font-weight: 500;
    color: #4a5568;
}

.past-winner-historical-donation .label {
    font-weight: 500;
    color: #4a5568;
}

.past-winner-historical-donation .amount {
    font-weight: 600;
    color: #2d3748;
}

.past-winner-btn-row {
    display: flex;
    gap: 0.5em;
    margin-bottom: 1em;
    justify-content: center;
}

/* Ensure modals and other dynamic elements are properly scoped */
.past-winner-card [id^="pifster-modal-"] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
    /* Other modal styles */
}

.past-winner-btn {
    display: flex;
    align-items: center;
    gap: 0.5em;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.65rem 1.5rem;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    color: #fff;
    margin-bottom: 0;
    line-height: 1.1;
}

.past-winner-btn.donation {
    background: #4299e1;
    width: 100%;
}

.past-winner-btn.donation:hover {
    background: #2563eb;
}

.past-winner-btn {
    width: 100%;
}

.past-winner-donate-btn:hover {
    background: #2563eb;
}

.past-winner-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1em;
    padding: 0.75em 1em;
    padding-left: 1.5em;
    padding-right: 1.5em;
    background: linear-gradient(90deg, rgb(218 165 32 / 16%) 0%, rgb(218 165 32 / 7%) 70%, rgb(218 165 32 / 0%) 100%);
    border-radius: 10px 10px 0 0;
    font-weight: 600;
    font-size: 1.08em;
}

.past-winner-winning-month-label,
.past-winner-donation-total-label {
    color: #555;
    margin-right: 0.25em;
}

.past-winner-winning-month-value,
.past-winner-donation-total-value {
    color: #ff6347;
    font-weight: 700;
}

.past-winner-meta-row .past-winner-meta-label {
    font-weight: 700;
    opacity: 0.94;
}

.past-winner-meta-row .past-winner-meta-amount {
    font-weight: 700;
    opacity: 0.97;
}

.past-winner-donate-btn {
    background: #4299e1;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.65rem 1.5rem;
    cursor: pointer;
    margin-bottom: 0;
    width: 100%;
    margin-right: 0;
    text-align: center;
    /* Removed margin-top to ensure consistent spacing with other buttons */
}

.past-winner-donate-btn:hover {
    background: #2563eb;
}

.past-winner-donation-total {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    padding: 0.5rem 0;
    background: none;
    border-radius: 6px;
    font-size: 1rem;
}

.past-winner-donation-total .label {
    color: #4a5568;
    font-weight: 500;
    margin-right: 0.25em;
}

.past-winner-donation-total .amount {
    font-weight: 600;
    color: #2d3748;
}

.past-winner-section-title {
    font-size: 1.13rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 0.7em;
    margin-left: 0.3em;
}

.pifster-action-label {
    text-align: center;
    font-size: 0.98rem;
    color: #22223b;
    opacity: 0.82;
    margin-top: 0.1em;
    margin-bottom: 0.2em;
}

.meta-col {
    display: flex;
    gap: 0.25em;
    white-space: nowrap;
}

/* All dropdown/accordion description styles have been moved to pifster-shared.css for unified maintenance. */
