/*
 * Monthly Charity Component Styles
 * All classes prefixed with .monthly-charity-
 * 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.
 */

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

/* Scoped styles using attribute selector for better specificity */
.monthly-charity-card[data-instance-id] {
    /* Instance-specific styles can be added here when needed */
    /* All styles are properly scoped to the instance */
    display: block; /* Ensure the element is visible */
}

/* Base styles outside the scoped block */

.monthly-charity-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;
}

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

.monthly-charity-play-icon {
    position: absolute;
    bottom: 14px;
    right: 18px;
    background: rgb(0 0 0 / 30%);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: auto;
    transition: background 0.18s;
}

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

.monthly-charity-play-icon:hover {
    background: rgb(0 0 0 / 85%);
}

.monthly-charity-play-launch {
    cursor: pointer;
    pointer-events: auto;
}

.monthly-charity-content {
    padding: 1.1rem 1.5rem 1rem;
}

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

/* Subtitle styles moved to shared CSS */

.monthly-charity-donate-btn, .monthly-charity-vote-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;
}

.monthly-charity-donate-btn:hover, .monthly-charity-vote-btn:hover {
    background: #2563eb;
}

.monthly-charity-vote-total, .monthly-charity-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;
}

.monthly-charity-vote-total .label, .monthly-charity-donation-total .label {
    color: #4a5568;
    font-weight: 500;
    margin-right: 0.25em;
}

.monthly-charity-vote-total .amount, .monthly-charity-donation-total .amount {
    font-weight: 600;
    color: #2d3748;
}

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

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