/**
 * CSS cho Tong Luc Contact Sidebar
 */

.tongluc-contact-sidebar {
    align-items: center;
    background-image: 
        radial-gradient(circle, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 8px 8px;
    background-position: 0 0, 0 0;
    background-repeat: repeat;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    justify-content: space-between;
    padding: 28px 0;
    position: fixed;
    top: 40%;
    width: 41px; /* Mặc định, có thể override bằng inline style */
    z-index: 999;
    border-radius: 8px 0 0 8px;
    transition: all 0.3s ease;
}

/* Nếu có file sidebar-bg.png, sẽ override background */
/* Lưu ý: Đường dẫn này sẽ được override bằng inline style từ PHP nếu cần */

.tongluc-contact-sidebar.tlc-right {
    right: 0;
    border-radius: 8px 0 0 8px;
}

.tongluc-contact-sidebar.tlc-left {
    left: 0;
    border-radius: 0 8px 8px 0;
}

.tongluc-contact-sidebar .tlc-icon-link {
    display: block;
    transition: transform 0.3s ease;
    text-decoration: none;
    position: relative;
    margin: 2px 0;
}

.tongluc-contact-sidebar .tlc-icon-link:hover {
    transform: scale(1.15);
}

.tongluc-contact-sidebar .tlc-icon-link img {
    height: 24px; /* Mặc định, có thể override bằng inline style */
    width: 24px; /* Mặc định, có thể override bằng inline style */
    object-fit: contain;
    display: block;
    border-radius: 50%;
    background: #fff;
    padding: 2px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

.tongluc-contact-sidebar .tlc-icon-link:hover img {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

/* Tooltip */
.tongluc-contact-sidebar .tlc-icon-link::after {
    content: attr(data-tooltip);
    position: absolute;
    background: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.tongluc-contact-sidebar.tlc-right .tlc-icon-link::after {
    right: 50px;
    top: 50%;
    transform: translateY(-50%) translateX(-5px);
}

.tongluc-contact-sidebar.tlc-left .tlc-icon-link::after {
    left: 50px;
    top: 50%;
    transform: translateY(-50%) translateX(5px);
}

.tongluc-contact-sidebar .tlc-icon-link:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Arrow cho tooltip */
.tongluc-contact-sidebar.tlc-right .tlc-icon-link::before {
    content: '';
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: #333;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1001;
}

.tongluc-contact-sidebar.tlc-left .tlc-icon-link::before {
    content: '';
    position: absolute;
    left: 45px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: #333;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1001;
}

.tongluc-contact-sidebar .tlc-icon-link:hover::before {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .tongluc-contact-sidebar {
        display: none; /* Ẩn trên mobile nếu cần */
    }
}
