/* * MT Contact Bar Styles
 * Plugin styles for the floating contact bar
 * Author: Your Name
 * Version: 1.1.3
 */

/* ========================================= */
/* BASE STYLES - Áp dụng chung cho cả hai chế độ */
/* ========================================= */
#mt-contact-bar {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.5;
    z-index: 9999;
    box-sizing: border-box;
}

.mtcb-icon {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-direction: column;
}

.mtcb-icon img {
    flex-shrink: 0;
    line-height: 1;
    object-fit: contain;
}

.mtcb-text {
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
}

/* ========================================= */
/* THÊM MÀU SẮC ĐẶC TRƯNG CHO TỪNG ICON */
/* ========================================= */
.mtcb-icon.phone {
    color: #28a745;
}

.mtcb-icon.zalo {
    color: #007a7e;
}

.mtcb-icon.messenger {
    color: #0084ff;
}

.mtcb-icon.map {
    color: #ea4335;
}

/* ========================================= */
/* THAY ĐỔI: DESKTOP STYLES (Vertical Bar - Từ 768px trở lên) */
/* ========================================= */
@media (min-width: 768px) {
    #mt-contact-bar {
        position: fixed;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .mtcb-icon {
        padding: 10px; /* Giảm padding xuống 10px */
        margin-bottom: 8px;
        border-radius: 8px 0 0 8px;
        background-color: #f8f9fa;
        box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.1);
        transform: translateX(0);
        width: 100px;
        height: 100px;
    }

    .mtcb-icon:hover {
        transform: translateX(-8px);
        box-shadow: -4px 4px 15px rgba(0, 0, 0, 0.15);
    }

    .mtcb-icon img {
        width: 35px;
        height: 35px;
        margin-bottom: 5px;
    }

    .mtcb-text {
        font-size: 12px;
    }

    /* --- Light Mode for Desktop --- */
    #mt-contact-bar.mtcb-theme-light .mtcb-icon {
        background-color: #f8f9fa;
        color: inherit;
    }

    /* --- Dark Mode for Desktop --- */
    #mt-contact-bar.mtcb-theme-dark .mtcb-icon {
        background-color: #212529;
        box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.3);
    }

    #mt-contact-bar.mtcb-theme-dark .mtcb-icon:hover {
        background-color: #343a40;
        box-shadow: -4px 4px 15px rgba(0, 0, 0, 0.4);
    }
}

/* ========================================= */
/* MOBILE STYLES (Horizontal Bar - Dưới 768px) */
/* ========================================= */
@media (max-width: 767px) {
    #mt-contact-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 8px 0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        background-color: #fff;
    }

    .mtcb-icon {
        padding: 5px 0;
        border-radius: 0;
        flex-grow: 1;
        margin-bottom: 0;
    }
    
    .mtcb-icon:hover {
        transform: translateY(-3px);
    }

    .mtcb-icon img {
        width: 35px;
        height: 35px;
        margin-bottom: 5px;
        margin-right: 0;
    }

    .mtcb-text {
        font-size: 11px;
    }

    /* --- Light Mode for Mobile --- */
    #mt-contact-bar.mtcb-theme-light {
        background-color: #ffffff;
        color: inherit;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }
    
    #mt-contact-bar.mtcb-theme-light .mtcb-icon:hover {
        background-color: #e9ecef;
    }

    /* --- Dark Mode for Mobile --- */
    #mt-contact-bar.mtcb-theme-dark {
        background-color: #212529;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.4);
    }

    #mt-contact-bar.mtcb-theme-dark .mtcb-icon {
        color: #ecf0f1;
    }

    #mt-contact-bar.mtcb-theme-dark .mtcb-icon:hover {
        background-color: #343a40;
    }
}