/* ==========================================================
   FLOATING LOGO - ALWAYS LIGHT MODE + LEFT-SIDE HOVER TEXT
   ========================================================== */

.floating-logo-plate {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    
    /* FORCE LIGHT COLORS */
    background: #ffffff !important;
    border: 2px solid #0d8bb5 !important;
    border-radius: 16px;
    padding: 12px 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2) !important;
    
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Always stays on right side in both LTR and RTL */
.floating-logo-plate[dir="rtl"],
.floating-logo-plate[dir="ltr"] {
    right: 30px;
    left: auto;
}

/* Visible state */
.floating-logo-plate.visible {
    opacity: 1 !important;
    pointer-events: auto;
}

.floating-logo-plate:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 35px rgba(13, 139, 181, 0.3) !important;
}

/* Logo Image */
.floating-logo-img {
    max-width: 60px;
    height: auto;
    display: block;
}

/* Fallback Text */
.floating-logo-text {
    font-size: 1rem;
    font-weight: 700;
    color: #0d3b4c;
    white-space: nowrap;
}

/* Hover Text - ALWAYS ON LEFT (regardless of RTL/LTR) */
.floating-logo-hover-text {
    position: absolute;
    /* Always attach to left side of logo */
    right: 100% !important;
    left: auto !important;
    margin-right: 15px !important;
    margin-left: 0 !important;
    
    background: #0d8bb5;
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Arrow - Always pointing right (towards logo from left) */
.floating-logo-hover-text::after {
    content: '';
    position: absolute;
    top: 50%;
    /* Arrow on right side of tooltip (pointing to logo) */
    left: 100% !important;
    right: auto !important;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #0d8bb5 !important;
    border-right-color: transparent !important;
}

/* Show hover text - slide from left */
.floating-logo-plate:hover .floating-logo-hover-text {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* OVERRIDE: Force left-side position even in RTL mode */
.floating-logo-plate[dir="rtl"] .floating-logo-hover-text {
    right: 100% !important;
    left: auto !important;
    margin-right: 15px !important;
    margin-left: 0 !important;
    transform: translateX(10px);
}

.floating-logo-plate[dir="rtl"] .floating-logo-hover-text::after {
    left: 100% !important;
    right: auto !important;
    border-left-color: #0d8bb5 !important;
    border-right-color: transparent !important;
}

.floating-logo-plate[dir="rtl"]:hover .floating-logo-hover-text {
    transform: translateX(0) !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .floating-logo-plate {
        bottom: 20px;
        right: 20px;
        padding: 10px 12px;
    }
    
    .floating-logo-plate[dir="rtl"],
    .floating-logo-plate[dir="ltr"] {
        right: 20px;
        left: auto;
    }
    
    .floating-logo-img {
        max-width: 50px;
    }
    
    /* Mobile: Show hover text ABOVE instead of left (no space on mobile) */
    .floating-logo-hover-text {
        right: 50% !important;
        left: auto !important;
        margin-right: 0 !important;
        margin-bottom: 10px;
        bottom: 100%;
        top: auto;
        transform: translateX(50%) translateY(10px);
    }
    
    .floating-logo-hover-text::after {
        top: 100% !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%);
        border: 6px solid transparent;
        border-top-color: #0d8bb5 !important;
        border-left-color: transparent !important;
    }
    
    .floating-logo-plate:hover .floating-logo-hover-text,
    .floating-logo-plate[dir="rtl"]:hover .floating-logo-hover-text {
        transform: translateX(50%) translateY(0) !important;
    }
}