/* Marketplace Listings Styles */
.marketplace-listings {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.marketplace-listings h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.listing-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.listing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.listing-card h4 {
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.listing-card p {
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.listing-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.listing-details span {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.price {
    background: #e8f5e8;
    color: #2d6a2d;
    font-weight: 600;
}

.category {
    background: #e3f2fd;
    color: #1565c0;
    text-transform: capitalize;
}

.seller {
    background: #f3e5f5;
    color: #7b1fa2;
    font-style: italic;
}

/* Posts and Dashboard Styles */
.community-posts {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.community-posts h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.post-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: transform 0.2s ease;
}

.post-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.post-header strong {
    color: #2c3e50;
}

.post-type {
    background: #e74c3c;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    text-transform: capitalize;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #666;
}

.post-meta span {
    padding: 2px 6px;
    background: #f0f0f0;
    border-radius: 4px;
    text-transform: capitalize;
}

/* Event Styles */
.upcoming-events {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.upcoming-events h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.event-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.event-card h4 {
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.event-details {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #666;
    flex-wrap: wrap;
}

.event-details span {
    padding: 2px 6px;
    background: #f0f0f0;
    border-radius: 4px;
}

/* Calendar Styles */
.calendar-view {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.calendar-view h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.calendar-event {
    display: flex;
    gap: 15px;
    padding: 15px;
    margin-bottom: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.event-date {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.event-info h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
}

.event-meta {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #666;
    flex-wrap: wrap;
}

.event-meta span {
    padding: 2px 6px;
    background: #f0f0f0;
    border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .listings-grid {
        grid-template-columns: 1fr;
    }
    
    .listing-details {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .event-details {
        flex-direction: column;
        gap: 5px;
    }
    
    .calendar-event {
        flex-direction: column;
    }
    
    .event-date {
        width: auto;
        text-align: left;
    }
}
