/* =============================================
   Kodla Sticky Footer Menu - Frontend Styles
   ============================================= */

.ksfm-footer-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--ksfm-bg-color, #8B0000);
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    z-index: 999999;
    height: var(--ksfm-bar-height, 60px);
    box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.25);
    padding: 0;
    box-sizing: border-box;
}

.ksfm-sticky-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: var(--ksfm-text-color, #ffffff) !important;
    flex: 1;
    height: 100%;
    padding: 6px 2px;
    box-sizing: border-box;
    transition: opacity 0.2s ease, transform 0.2s ease;
    position: relative;
}

.ksfm-sticky-box:hover,
.ksfm-sticky-box:focus {
    opacity: 0.85;
    text-decoration: none !important;
    color: var(--ksfm-text-color, #ffffff) !important;
}

.ksfm-sticky-box:active {
    transform: scale(0.95);
}

.ksfm-sticky-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
}

.ksfm-sticky-icon i {
    font-size: var(--ksfm-icon-size, 18px);
    color: var(--ksfm-icon-color, #ffffff);
    line-height: 1;
}

.ksfm-sticky-text {
    font-size: var(--ksfm-font-size, 10px);
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Center / Top Box (Raised Button) */
.ksfm-sticky-box.ksfm-top-box {
    position: relative;
}

.ksfm-sticky-box.ksfm-top-box .ksfm-sticky-icon {
    width: var(--ksfm-center-size, 60px);
    height: var(--ksfm-center-size, 60px);
    background: var(--ksfm-center-bg, #ffffff);
    border-radius: 50%;
    border: 3px solid var(--ksfm-center-border, #8B0000);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: var(--ksfm-center-offset, -38px);
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ksfm-sticky-box.ksfm-top-box:hover .ksfm-sticky-icon {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.3);
}

.ksfm-sticky-box.ksfm-top-box:active .ksfm-sticky-icon {
    transform: translateX(-50%) scale(0.95);
}

.ksfm-sticky-box.ksfm-top-box .ksfm-sticky-icon i {
    font-size: calc(var(--ksfm-icon-size, 18px) + 6px);
    color: var(--ksfm-center-icon, #8B0000);
}

.ksfm-sticky-box.ksfm-top-box .ksfm-sticky-text {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
}

/* Pulse animation for center button */
.ksfm-sticky-box.ksfm-top-box .ksfm-sticky-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--ksfm-center-border, #8B0000);
    animation: ksfm-pulse 2s ease-out infinite;
    opacity: 0;
}

@keyframes ksfm-pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Ensure no conflict with other themes */
.ksfm-footer-sticky * {
    box-sizing: border-box;
}

.ksfm-footer-sticky a,
.ksfm-footer-sticky a:visited,
.ksfm-footer-sticky a:link {
    text-decoration: none !important;
    outline: none !important;
}
