/* Mansion Raffle Plugin Styles */

/* Admin styles for custom post types and meta boxes */
.form-table th {
    width: 200px;
}

.form-table input[type="number"],
.form-table input[type="text"],
.form-table input[type="url"],
.form-table input[type="email"],
.form-table textarea {
    width: 100%;
    max-width: 400px;
}

.form-table textarea {
    resize: vertical;
}

/* Property gallery preview */
.property-gallery-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.property-gallery-preview img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

/* Frontend raffle card styles */
.raffle-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.raffle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.raffle-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.raffle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.raffle-card:hover .raffle-image img {
    transform: scale(1.05);
}

.raffle-content {
    background: #fff;
}

.raffle-description {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

/* Winner card styles */
.winner-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.winner-photo img {
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.winner-story {
    font-style: italic;
    color: #666;
    font-size: 14px;
}

/* Bonus draw widget */
.bonus-draw-widget {
    border: 2px solid #ffc107;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.bonus-draw-widget h4 {
    color: #856404;
    margin-bottom: 15px;
}

.bonus-draw-widget .fas {
    margin-right: 8px;
}

/* Media coverage placeholders */
.media-logo img {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
    max-height: 60px;
    width: auto;
}

.media-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Charity stats styling */
.charity-stats h3 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 5px;
}

.charity-stats p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 0;
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .raffle-image {
        height: 180px;
    }
    
    .winner-photo img {
        width: 80px;
        height: 80px;
    }
    
    .bonus-draw-widget {
        margin-bottom: 20px;
    }
}