/* BMG Bonuses Frontend Styles */

/* Default styles are injected via PHP from settings */
/* This file contains additional frontend styles */

.bmg-bonus-meta-single {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    border: 1px solid #e3e3e3;
}

.bmg-exclusive-badge {
    text-align: center;
    margin-bottom: 20px;
}

.bmg-bonus-details h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.3rem;
}

.bmg-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.bmg-detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bmg-detail-item strong {
    color: #333;
    font-size: 0.9rem;
}

.bmg-detail-item span {
    color: #666;
}

.bmg-promo-code {
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
    border: 1px solid #ddd;
}

.bmg-time-left {
    font-weight: bold;
}

.bmg-bonus-tags {
    margin-bottom: 20px;
}

.bmg-bonus-tags strong {
    display: block;
    margin-bottom: 8px;
    color: #333;
}

.bmg-tag {
    display: inline-block;
    background: #e3e3e3;
    color: #666;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 8px;
    margin-bottom: 4px;
}

.bmg-bonus-actions {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e3e3e3;
}

.bmg-cta-large {
    display: inline-block;
    background: #d22;
    color: #fff;
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    margin-bottom: 10px;
    transition: background 0.2s;
}

.bmg-cta-large:hover {
    background: #b11;
    color: #fff;
}

.bmg-source-link {
    display: inline-block;
    color: #0073aa;
    text-decoration: none;
    font-size: 0.9rem;
    margin-left: 15px;
}

.bmg-source-link:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .bmg-details-grid {
        grid-template-columns: 1fr;
    }
    
    .bmg-bonus-actions {
        text-align: center;
    }
    
    .bmg-source-link {
        display: block;
        margin-left: 0;
        margin-top: 10px;
    }
}

/* Archive page styles */
.bmg-archive .page-title {
    margin-bottom: 20px;
    color: #333;
}

.bmg-filter-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Filter dropdown styles */
.bmg-filters select {
    margin-right: 10px;
    margin-bottom: 10px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 0.9rem;
}

.bmg-filters select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

/* Loading states */
.bmg-loading {
    opacity: 0.6;
    pointer-events: none;
}

.bmg-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: bmg-spin 1s linear infinite;
}

@keyframes bmg-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error states */
.bmg-error {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #ffcdd2;
    margin: 20px 0;
}

/* Success states */
.bmg-success {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #c8e6c9;
    margin: 20px 0;
}

/* Expired bonus styling */
.bmg-bonus-card.expired {
    opacity: 0.7;
}

.bmg-bonus-card.expired .bmg-cta {
    background: #999;
    cursor: not-allowed;
}

.bmg-bonus-card.expired .bmg-cta:hover {
    background: #999;
}

.bmg-meta.expired {
    color: #d32f2f;
    font-weight: bold;
}
