/* gsgallery-tools/moods/moods.css */

.gsgallery-mood-board-container {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    padding: 20px;
    margin-top: 20px;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    width:80%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    box-sizing: border-box;
}
.gsgallery-mood-board-container h2 {
    color: #333;
    font-size: 1.8em;
    margin-bottom: 10px;
}
.gsgallery-mood-board-container p {
    color: #666;
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 15px;
}
.gsgallery-mood-board-controls {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
}
.gsgallery-mood-board-controls label {
    font-weight: bold;
    color: #555;
}
.gsgallery-mood-board-controls select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

.gsgallery-color-bars-container {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 1000px;
    height: 400px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 25px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #ccc;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
}

.gsgallery-color-bar {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: white;
    font-weight: bold;
    font-size: 1.2em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    cursor: pointer;
    min-width: 50px;
}
.gsgallery-color-bar span {
    position: absolute;
    background-color: rgba(0,0,0,0.3);
    padding: 5px 10px;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}
.gsgallery-color-bar:hover span {
    background-color: rgba(0,0,0,0.5);
}

.gsgallery-palette-info {
    margin-top: 20px;
    font-size: 0.9em;
    color: #555;
    font-family: monospace;
    text-align: center;
    word-break: break-all;
}

.gsgallery-image-bar {
    flex-basis: 20%;
    flex-shrink: 0;
    flex-grow: 0;
    background-color: #eee;
    border-right: 1px solid #ccc;
    position: relative;
    z-index: 1;
    transition: z-index 0.3s ease;
    overflow: hidden;
}
.gsgallery-image-bar:hover {
    z-index: 10;
}

.gsgallery-image-bar #gsgallery-uploaded-image-thumbnail {
    width: auto;
    height: 100%;
    object-fit: scale-down;
    border-radius: 0;
    box-shadow: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    transition: transform 0.3s ease-in-out;
    z-index: 1;
}

.gsgallery-image-bar:hover #gsgallery-uploaded-image-thumbnail {
    transform: scale(2);
}

.gsgallery-image-bar-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: fit-content;
    min-width: 150px;
    max-width: 90%;
    text-align: center;
    background-color: rgba(0,0,0,0.4);
    color: white;
    font-size: 0.9em;
    padding: 10px 15px;
    border-radius: 5px;
    opacity: 1;
    transition: background-color 0.3s ease;
    pointer-events: none;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    box-sizing: border-box;
}

.gsgallery-image-bar:hover .gsgallery-image-bar-overlay {
    background-color: rgba(0,0,0,0.6);
}

/* --- Media Queries for Mobile Responsiveness --- */
@media (max-width: 768px) {
    .gsgallery-mood-board-container {
        padding: 15px;
        margin-top: 15px;
    }
    .gsgallery-mood-board-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .gsgallery-mood-board-controls label,
    .gsgallery-mood-board-controls select,
    .gsgallery-mood-board-controls button {
        width: 100%;
        box-sizing: border-box;
    }
    .gsgallery-mood-board-controls button {
        white-space: normal;
        padding: 10px 15px;
    }

    .gsgallery-color-bars-container {
        height: 250px;
        margin-top: 15px;
    }
    .gsgallery-color-bar {
        font-size: 1em;
    }
    .gsgallery-image-bar {
        flex-basis: 30%;
    }
    .gsgallery-image-bar-overlay {
        font-size: 0.8em;
        padding: 8px 12px;
        min-width: unset;
        width: fit-content;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .gsgallery-mood-board-container {
        padding: 10px;
    }
    .gsgallery-color-bars-container {
        height: 180px;
    }
    .gsgallery-color-bar {
        font-size: 0.8em;
    }
    .gsgallery-color-bar span {
        padding: 3px 5px;
    }
    .gsgallery-image-bar {
        flex-basis: 40%;
    }
     .gsgallery-image-bar-overlay {
        font-size: 0.7em;
        padding: 6px 10px;
    }
}