/* CSS Styles for Ads Component */

.ads-component {
    padding: 20px;
}

.ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.ad-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.ad-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.ad-image {
    margin-bottom: 15px;
}

.featured-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.no-image-placeholder {
    width: 100%;
    height: 200px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #999;
    font-style: italic;
}

.ad-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ad-title {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #333;
}

.ad-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9em;
}

.ad-details > div {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.ad-details > div:last-child {
    border-bottom: none;
}

.youtube-link a {
    color: #1976d2;
    text-decoration: none;
    word-break: break-all;
}

.youtube-link a:hover {
    text-decoration: underline;
}

.price {
    color: #2e7d32;
    font-weight: 500;
}

.remaining-views {
    color: #f57c00;
}

.total-views {
    color: #5e35b1;
}

.market {
    color: #d32f2f;
}

.ad-actions {
    margin-top: 15px;
    text-align: center;
}

.advertize-btn {
    background-color: #1976d2;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.advertize-btn:hover {
    background-color: #1565c0;
    color: white;
    text-decoration: none;
}

/* Loading state styles */
.text-center {
    text-align: center;
    padding: 40px 20px;
}

.text-center h1, .text-center h2 {
    margin-bottom: 20px;
    color: #333;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #1976d2;
    color: white;
}

.btn-primary:hover {
    background-color: #1565c0;
}

/* Responsive design */
@media (max-width: 768px) {
    .ads-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .ad-card {
        padding: 12px;
    }
    
    .featured-image, .no-image-placeholder {
        height: 150px;
    }
}

