/* LunaCode Display Dust Data Styles */

/* Container Styles */
.dust-camps-container,
.dust-art-container,
.dust-schedule-container,
.dust-music-container {
    margin: 20px 0;
}

/* Grid Layout */
.dust-camps-grid,
.dust-art-grid,
.dust-schedule-grid,
.dust-music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* List Layout */
.dust-camps-list,
.dust-art-list,
.dust-schedule-list,
.dust-music-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.dust-camps-list .dust-camps-item,
.dust-art-list .dust-art-item,
.dust-schedule-list .dust-schedule-item,
.dust-music-list .dust-music-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.dust-camps-list .dust-camps-image,
.dust-art-list .dust-art-image,
.dust-schedule-list .dust-schedule-image {
    flex: 0 0 200px;
}

.dust-camps-list .dust-camps-content,
.dust-art-list .dust-art-content,
.dust-schedule-list .dust-schedule-content,
.dust-music-list .dust-music-content {
    flex: 1;
}

/* Item Styles */
.dust-camps-item,
.dust-art-item,
.dust-schedule-item,
.dust-music-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.dust-camps-item:hover,
.dust-art-item:hover,
.dust-schedule-item:hover,
.dust-music-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Image Styles */
.dust-camps-image,
.dust-art-image,
.dust-schedule-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

.dust-camps-image img,
.dust-art-image img,
.dust-schedule-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dust-camps-item:hover .dust-camps-image img,
.dust-art-item:hover .dust-art-image img,
.dust-schedule-item:hover .dust-schedule-image img {
    transform: scale(1.05);
}

/* Content Styles */
.dust-camps-content,
.dust-art-content,
.dust-schedule-content,
.dust-music-content {
    padding: 20px;
}

.dust-camps-name,
.dust-art-name,
.dust-schedule-title,
.dust-music-title {
    margin: 0 0 15px 0;
    font-size: 1.4em;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.dust-camps-description,
.dust-art-description,
.dust-schedule-description {
    margin: 0 0 15px 0;
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

.dust-camps-description p,
.dust-art-description p,
.dust-schedule-description p {
    margin: 0 0 0.5em 0;
}

.dust-camps-description p:last-child,
.dust-art-description p:last-child,
.dust-schedule-description p:last-child {
    margin-bottom: 0;
}

/* Specific Content Styles */
.dust-art-artist,
.dust-schedule-camp,
.dust-schedule-location,
.dust-schedule-day,
.dust-schedule-time,
.dust-music-camp,
.dust-music-location,
.dust-music-day,
.dust-music-who,
.dust-music-time {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #555;
}

.dust-art-artist strong,
.dust-schedule-camp strong,
.dust-schedule-location strong,
.dust-schedule-day strong,
.dust-schedule-time strong,
.dust-music-camp strong,
.dust-music-location strong,
.dust-music-day strong,
.dust-music-who strong,
.dust-music-time strong {
    color: #333;
}

/* Coordinates */
.dust-camps-coordinates,
.dust-art-coordinates {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 5px;
    font-size: 13px;
    color: #555;
    border-left: 3px solid #007cba;
}

.dust-camps-coordinates strong,
.dust-art-coordinates strong {
    color: #333;
}

.dust-camps-map-link,
.dust-art-map-link {
    margin-top: 8px;
}

.dust-camps-map-link a,
.dust-art-map-link a {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
}

.dust-camps-map-link a:hover,
.dust-art-map-link a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {

    .dust-camps-grid,
    .dust-art-grid,
    .dust-schedule-grid,
    .dust-music-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 15px;
    }

    .dust-camps-list .dust-camps-item,
    .dust-art-list .dust-art-item,
    .dust-schedule-list .dust-schedule-item,
    .dust-music-list .dust-music-item {
        flex-direction: column;
    }

    .dust-camps-list .dust-camps-image,
    .dust-art-list .dust-art-image,
    .dust-schedule-list .dust-schedule-image {
        flex: none;
        width: 100%;
    }

    .dust-camps-content,
    .dust-art-content,
    .dust-schedule-content,
    .dust-music-content {
        padding: 15px;
    }

    .dust-camps-name,
    .dust-art-name,
    .dust-schedule-title,
    .dust-music-title {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {

    .dust-camps-grid,
    .dust-art-grid,
    .dust-schedule-grid,
    .dust-music-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .dust-camps-image,
    .dust-art-image,
    .dust-schedule-image {
        height: 180px;
    }

    .dust-camps-content,
    .dust-art-content,
    .dust-schedule-content,
    .dust-music-content {
        padding: 12px;
    }

    .dust-camps-coordinates,
    .dust-art-coordinates {
        padding: 10px;
        font-size: 12px;
    }
}

/* Loading States */
.dust-camps-loading,
.dust-art-loading,
.dust-schedule-loading,
.dust-music-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.dust-camps-error,
.dust-art-error,
.dust-schedule-error,
.dust-music-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #f5c6cb;
    margin: 20px 0;
}

/* No results */
.dust-camps-no-results,
.dust-art-no-results,
.dust-schedule-no-results,
.dust-music-no-results {
    text-align: center;
    padding: 40px;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

/* Additional Utility Classes */
.dust-camps-uid,
.dust-art-uid,
.dust-schedule-uid,
.dust-music-uid {
    font-size: 11px;
    color: #999;
    font-family: monospace;
    margin-top: 5px;
}

.dust-camps-count,
.dust-art-count,
.dust-schedule-count,
.dust-music-count {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

/* Schedule Tabs Styles */
.dust-schedule-tabs-container {
    margin: 20px 0;
}

.dust-schedule-display-toggle {
    margin-bottom: 15px;
    display: flex;
    gap: 5px;
}

.dust-schedule-toggle-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    color: #666;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.dust-schedule-toggle-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.dust-schedule-toggle-btn.active {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.dust-schedule-tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.dust-schedule-tab-btn {
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.dust-schedule-tab-btn:hover {
    background: #f8f9fa;
    color: #333;
}

.dust-schedule-tab-btn.active {
    background: #007cba;
    color: white;
}

.dust-schedule-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #007cba;
}

.dust-schedule-tab-content {
    position: relative;
}

.dust-schedule-tab-pane {
    display: none;
}

.dust-schedule-tab-pane.active {
    display: block;
}

.dust-schedule-export-button {
    text-align: right;
    margin-bottom: 15px;
}

.dust-schedule-export-button .dust-ics-export-btn {
    margin: 0;
}

@media (max-width: 768px) {
    .dust-schedule-tab-nav {
        flex-direction: column;
    }
    
    .dust-schedule-tab-btn {
        text-align: left;
        border-radius: 4px;
    }
    
    .dust-schedule-display-toggle {
        flex-direction: column;
    }
}

/* Custom themes can override these variables */
:root {
    --dust-events-primary-color: #007cba;
    --dust-events-border-color: #ddd;
    --dust-events-background: #fff;
    --dust-events-hover-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

    /* Backward compatibility */
    --dust-camp-primary-color: var(--dust-events-primary-color);
    --dust-camp-border-color: var(--dust-events-border-color);
    --dust-camp-background: var(--dust-events-background);
    --dust-camp-hover-shadow: var(--dust-events-hover-shadow);
}