/**
 * Move To Top Button - Frontend Styles
 * File: assets/css/frontend.css
 */

.mtt-button {
    position: fixed;
    z-index: 9999;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background-color: #333;
    color: #fff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    outline: none;
}

.mtt-button:hover {
    background-color: #000;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    transform: translateY(18px);
}

.mtt-button:focus {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
}

.mtt-button:active {
    transform: translateY(20px) scale(0.95);
}

.mtt-button.mtt-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mtt-button svg {
    width: 24px;
    height: 24px;
    display: block;
}

.mtt-button img {
    max-width: 30px;
    max-height: 30px;
    display: block;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .mtt-button {
        width: 45px;
        height: 45px;
    }
    
    .mtt-button svg {
        width: 20px;
        height: 20px;
    }
    
    .mtt-button img {
        max-width: 25px;
        max-height: 25px;
    }
}

@media screen and (max-width: 480px) {
    .mtt-button {
        width: 40px;
        height: 40px;
    }
    
    .mtt-button svg {
        width: 18px;
        height: 18px;
    }
    
    .mtt-button img {
        max-width: 22px;
        max-height: 22px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .mtt-button {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .mtt-button {
        transition: none;
    }
}