/**
 * Blues Events Widgets Styles
 * Additional widget-specific styles
 */

/* ===== Countdown Widget ===== */
.blues-countdown {
    padding: 20px;
}

.countdown-full {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.countdown-number {
    font-size: 48px;
    font-weight: bold;
    color: #0073aa;
    line-height: 1;
}

.countdown-label {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-simple {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.countdown-compact {
    text-align: center;
    font-size: 32px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #0073aa;
}

.countdown-started {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #28a745;
    padding: 20px;
    background: #d4edda;
    border-radius: 8px;
}

/* ===== Event Details Widget ===== */
.blues-event-details-widget {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.detail-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-icon {
    font-size: 24px;
    color: #0073aa;
    margin-right: 15px;
    flex-shrink: 0;
}

.detail-content {
    flex: 1;
}

.detail-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.detail-value {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.detail-value a {
    color: #0073aa;
    text-decoration: none;
}

.detail-value a:hover {
    text-decoration: underline;
}

/* ===== Musicians Widget ===== */
.blues-musicians-widget {
    padding: 20px 0;
}

.musicians-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.musician-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.musician-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
}

.musician-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.musician-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.musician-name a {
    color: #333;
    text-decoration: none;
}

.musician-name a:hover {
    color: #0073aa;
}

.musician-category {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.musician-bio {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* ===== Venues Widget ===== */
.blues-venues-widget {
    padding: 20px 0;
}

.venues-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.venue-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.venue-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.venue-image {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.venue-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.venue-info {
    flex: 1;
}

.venue-name {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.venue-name a {
    color: #333;
    text-decoration: none;
}

.venue-name a:hover {
    color: #0073aa;
}

.venue-address {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.6;
}

.venue-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #0073aa;
    text-decoration: none;
    font-size: 14px;
}

.venue-link:hover {
    text-decoration: underline;
}

/* ===== Filter Widget ===== */
.blues-filter-widget {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.filter-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.filter-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.filter-button {
    flex: 1;
    padding: 10px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.filter-button:hover {
    background: #005177;
}

.filter-button.secondary {
    background: #666;
}

.filter-button.secondary:hover {
    background: #444;
}

/* ===== Submission Form Widget ===== */
.blues-submission-form-widget {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-intro {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.form-intro h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.form-intro p {
    color: #666;
    line-height: 1.6;
}

/* ===== Lazy Loading States ===== */
img[data-src],
[data-bg] {
    background: #f0f0f0;
}

img[data-src].loading,
[data-bg].loading {
    position: relative;
}

img[data-src].loading:after,
[data-bg].loading:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

img[data-src].loaded {
    animation: fadeIn 0.5s ease-in-out;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .countdown-full {
        gap: 15px;
    }
    
    .countdown-item {
        min-width: 60px;
    }
    
    .countdown-number {
        font-size: 36px;
    }
    
    .musicians-grid {
        grid-template-columns: 1fr;
    }
    
    .venue-card {
        flex-direction: column;
    }
    
    .venue-image {
        width: 100%;
        height: 200px;
    }
}

/* ===== Print Styles ===== */
@media print {
    .widget-loading,
    .load-more-events,
    .filter-actions {
        display: none !important;
    }
}

