/* Floating Widget Styles */
.floating-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    animation: slideInUp 0.5s ease-out;
}

.floating-button {
    background: #2c2c2c;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 500;
    flex-direction: column;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 160px;
    position: relative;
    overflow: hidden;
}

.floating-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    background: #3a3a3a;
}

.floating-button:active {
    transform: translateY(0);
}

.floating-button .icon {
    width: 130px;
    height: 50px;
    display: flex;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
    overflow: hidden;
}

.floating-button .icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.floating-button .text {
    flex: 1;
    text-align: left;
}

.floating-button .text .main {
    font-weight: 600;
    font-size: 13px;
    line-height: 1.2;
}

.floating-button .text .sub {
    font-size: 11px;
    opacity: 0.8;
    line-height: 1.2;
}

.floating-button .arrow {
    font-size: 16px;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.floating-button:hover .arrow {
    transform: translateX(2px);
    opacity: 1;
}

/* Ripple effect */
.floating-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.floating-button:active::before {
    width: 100%;
    height: 100%;
}

/* Animation */
@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .floating-widget {
        bottom: 15px;
        right: 15px;
    }

    .floating-button {
        min-width: 100px;
        padding: 10px 16px;
        font-size: 13px;
    }

    .floating-button .icon {
        width: 50px;
        height: 42px;
    }

    .floating-button .text .main {
        font-size: 12px;
    }

    .floating-button .text .sub {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .floating-widget {
        bottom: 80px;
        right: 10px;
    }

    .floating-button {
        min-width: 80px;
        padding: 8px 12px;
    }

    .floating-button .icon {
        width: 100%;
        height: 38px;
    }
}

/* --- Modern Horizontal Floating Bookmark Widget --- */
.floating-bookmark-widget {
    position: fixed;
    top: 90%;
    right: 0;
    left: auto;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    background: #2b2b2b;
    color: #fff;
    border-radius: 1.5rem 0 0 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    padding: 0.7rem 1.2rem 0.7rem 0.7rem;
    text-decoration: none;
    min-width: 180px;
    min-height: 64px;
    max-width: 320px;
    font-family: 'Roboto', 'Arial', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, width 0.35s cubic-bezier(.4, 0, .2, 1);
    overflow: visible;
    gap: 0.8rem;
    width: 220px;
    height: 100px;
    transform-origin: right center;
}

.floating-bookmark-widget:hover {
    background: #3a3a3a;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
    width: 320px;
}


.floating-bookmark-widget:hover .floating-bookmark-text {
    display: none;
}

.floating-bookmark-icon {
    width: 100%;
    height: 100%;
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 50%;
    overflow: hidden;
}

.floating-bookmark-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.floating-bookmark-text {
    display: block;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    white-space: nowrap;
    text-align: left;
    margin-left: 0.1rem;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.10);
}

@media (max-width: 700px) {
    .floating-bookmark-widget {
        top: 80%;
        right: 0;
        left: auto;
        transform: translateY(-50%);
        min-width: 120px;
        min-height: 44px;
        padding: 0.4rem 0.7rem 0.4rem 0.4rem;
        font-size: 0.95rem;
        width: 140px;
        border-radius: 1.2rem 0 0 1.2rem;
    }

    .floating-bookmark-widget:hover {
        width: 220px;
    }

    .floating-bookmark-icon {
        width: 100%;
        height: 100%;
        min-width: 32px;
        min-height: 32px;
    }

    .floating-bookmark-text {
        font-size: 0.8rem;
    }
}