/**
 * Styles for the reaction system
 */

/* Position for the reaction button and panel */
.ai-image-img,
.ai-model-view,
.ai-image,
.ai-model {
    position: relative;
}

/* Individual reaction item in the panel */
.reaction-item {
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s;
    padding: 5px;
}

.reaction-item:hover {
    transform: scale(1.2);
}

/* Reaction bar (showing counts) */
.reaction-bar {
    position: absolute;
    bottom: 10px;
    left: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    padding: 5px 10px;
    display: flex;
    gap: 10px;
    z-index: 9;
}

/* Individual reaction count in the bar */
.reaction-count {
    font-size: 14px;
    color: white;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Make clickable reaction counts appear interactive */
.reaction-count.clickable {
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    padding: 2px 5px;
    border-radius: 10px;
}

.reaction-count.clickable:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.2);
}

/* Highlight user's own reactions */
.reaction-count.user-reacted {
    font-weight: bolder;
    text-shadow: 0 0 3px rgba(128, 128, 255, 0.5);
    color: #71e375;
}

/* Make sure the reaction components don't interfere with other elements */
.ai-image-img .spinner-border,
.ai-model-view model-viewer,
.ai-image img,
.ai-model model-viewer {
    z-index: 1;
}

/* Make sure the home page hover elements don't interfere with reactions */
.ai-image-hover {
    z-index: 8;
}



/* Expand icon positioning */
.model-expand-icon,
.image-expand-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    transition: all 0.3s ease;
}

.model-download-btn, .image-download-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 15;
}


.model-expand-icon:hover,
.image-expand-icon:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    transform: scale(1.1);
}

.image-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.image-prompt-text, .model-prompt-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(24, 29, 32, 0.8);
    padding: 20px;
    color: white;
    z-index: 12;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.image-prompt-text p, .model-prompt-text p {
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    overflow: auto;
}

.ml-2 {
    margin-left: 0.5rem;
}

.visibility-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    transition: all 0.3s ease;
}

.visibility-icon.public {
    color: #14b44f;
}

.visibility-icon.private {
    color: #ba120f;
}

/* Reset button styles for visibility icon buttons */
button.visibility-icon {
    border: none;
    outline: none;
    cursor: pointer;
    padding: 5px;
    margin: 0;
    font-size: inherit;
    font-family: inherit;
    line-height: 1;
}


/* Coin reward notification */
.coin-reward-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffd700; /* Gold color for coins */
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.coin-reward-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.coin-reward-notification i {
    color: #ffd700;
    font-size: 18px;
}

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

    .reaction-item {
        font-size: 16px;
    }

    .reaction-bar {
        left: 40px;
        padding: 3px 8px;
    }

    .reaction-count {
        font-size: 12px;
    }

    .coin-reward-notification {
        font-size: 14px;
        padding: 8px 15px;
    }

    .coin-reward-notification i {
        font-size: 16px;
    }
}
