/**
 * Utilities Module - Misc Helper Styles
 * News pinning, room likes, modal images, join log enhancements
 */

/* ===== NEWS PINNING ===== */
.pinned_icon {
    color: #007cba;
    margin-left: 5px;
}

/* ===== ROOM LIKES ===== */
.room_like_btn {
    background: transparent;
    border: none;
    padding: 4px 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
}

.room_like_btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ff6b6b;
    transform: scale(1.1);
}

.room_like_btn.liked {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.room_like_btn.liked:hover {
    background: rgba(255, 107, 107, 0.2);
    transform: scale(1.15);
}

.room_like_btn i {
    font-size: 12px;
    transition: all 0.3s ease;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

/* ===== MODAL IMAGE VIEWER ===== */
.modal_image_container {
    width: 100%;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 5px 5px 0 0;
    overflow: hidden;
}

.modal_image_actions {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0 0 5px 5px;
}

/* ===== JOIN LOG ENHANCEMENTS ===== */
/* Sparkle emoji for join messages */
.system__join .chat_system::before {
    content: '✨ ';
}

/* Override purple username color to match topic text */
.system__join .sysname {
    color: inherit;
}

/* ===== ORPHANED ADDON CONTENT FIX ===== */
/* Handle content from uninstalled addons - constrain ONLY chat message images */

/* Target ONLY drink images IN CHAT (not in modals) */
.chat_log img[src*="/drink_images/"],
.chat_log img[src*="/category_images/"],
.chat_log img[src*="/DSG_Drinks_Menu/uploads/"],
.drink_chat_icon {
    max-width: 50px !important;
    max-height: 50px !important;
    width: 50px !important;
    height: 50px !important;
    object-fit: cover;
    border-radius: 5px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}

/* Drink text - minimal styling */
.drink_name,
.drink_req_name {
    font-weight: bold;
}

.drink_meta {
    display: none;
}
