/**
 * TopData Company Info & Floating Contact Bar
 * Frontend Styles
 */

/* ==========================================================================
   Mobile Floating Contact Bar
   ========================================================================== */
.mobile-contact-bar {
    display: none;
    position: fixed;
    bottom: 15px;
    bottom: max(15px, env(safe-area-inset-bottom, 15px));
    left: 15px;
    right: 15px;
    z-index: 999999;
    gap: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", sans-serif;
    pointer-events: none;
}

.mobile-contact-bar > * {
    pointer-events: auto;
}

@media (max-width: 767px) {
    .mobile-contact-bar {
        display: flex;
    }
    #top-link {
        display: none !important;
    }
}

.contact-pill {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    border-radius: 24px;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.contact-pill:active {
    transform: scale(0.97);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    filter: brightness(0.95);
}

.zalo-pill {
    background-color: #0068FF;
}

.phone-pill {
    background-color: #00C853;
    position: relative;
    overflow: hidden;
}

.pill-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.pill-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    display: block;
}

/* Hiệu ứng rung chuông điện thoại thu hút chuyển đổi */
.has-ring-effect .phone-pill .pill-icon {
    animation: topdata-phone-ring 1.5s infinite ease-in-out;
}

@keyframes topdata-phone-ring {
    0% { transform: rotate(0) scale(1); }
    10% { transform: rotate(-25deg) scale(1.1); }
    20% { transform: rotate(25deg) scale(1.1); }
    30% { transform: rotate(-25deg) scale(1.1); }
    40% { transform: rotate(25deg) scale(1.1); }
    50% { transform: rotate(0) scale(1); }
    100% { transform: rotate(0) scale(1); }
}

/* ==========================================================================
   Responsive Map & Embed Container
   ========================================================================== */
.topdata-map-responsive {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.topdata-map-responsive iframe {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
    border: 0;
}

/* ==========================================================================
   TopData Social Icons Shortcode
   ========================================================================== */
.topdata-social-list {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.topdata-social-item a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    transition: all 0.25s ease;
}

.topdata-social-item a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.topdata-social-item.facebook a:hover { background: #1877F2; color: #fff; }
.topdata-social-item.tiktok a:hover { background: #000000; color: #fff; }
.topdata-social-item.youtube a:hover { background: #FF0000; color: #fff; }
.topdata-social-item.linkedin a:hover { background: #0A66C2; color: #fff; }
.topdata-social-item.instagram a:hover { background: #E4405F; color: #fff; }

.topdata-social-item svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ==========================================================================
   Company Info Card Widget
   ========================================================================== */
.topdata-company-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.topdata-company-card .company-header h4 {
    margin: 0 0 6px 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: #0f172a;
}

.topdata-company-card .company-header .slogan {
    margin: 0 0 16px 0;
    font-size: 0.88rem;
    color: #64748b;
}

.topdata-company-card .info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.92rem;
    color: #334155;
}

.topdata-company-card .info-row:last-child {
    margin-bottom: 0;
}

.topdata-company-card .info-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #2563eb;
    margin-top: 2px;
}

.topdata-company-card .info-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* ==========================================================================
   Print Optimization: Hide Floating Contact Bar
   ========================================================================== */
@media print {
    .mobile-contact-bar,
    .contact-pill,
    .phone-pill,
    .zalo-pill {
        display: none !important;
    }
}
