/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 *
 * @package    Back_To_Top_Kissward
 * @subpackage Back_To_Top_Kissward/public/css
 */

/* Container */
.bttk-container {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
}

/* Button */
.bttk-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ffffff;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    pointer-events: auto;
    /* Add subtle border for better visibility */
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.bttk-button.visible {
    opacity: 1;
    visibility: visible;
}

/* Icon */
.bttk-icon {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333333;
}

.bttk-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    /* Make the icon slightly bolder for better visibility */
    stroke-width: 0.5;
    stroke: currentColor;
}

/* Animation Styles */
.bttk-button.animation-slide {
    transform: translateY(20px);
}

.bttk-button.animation-slide.visible {
    transform: translateY(0);
}

.bttk-button.animation-fade {
    opacity: 0;
}

.bttk-button.animation-fade.visible {
    opacity: 1;
}

/* Hover Effects */
.bttk-button {
    transition: all 0.3s ease;
}

/* Branding */
.bttk-branding {
    position: fixed;
    bottom: 5px;
    right: 20px;
    font-size: 10px;
    color: #888;
    opacity: 0.8;
    z-index: 9998;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .bttk-button {
        bottom: 20px;
        right: 20px;
        /* Keep button reasonably sized on mobile */
        width: 45px;
        height: 45px;
    }
    
    .bttk-branding {
        bottom: 5px;
        right: 20px;
    }
}

/* Accessibility */
.bttk-button:focus {
    outline: 2px solid #ff6b00;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .bttk-container {
        display: none !important;
    }
}