/*
 * Chamspace Dock CSS
 */

/* ===============================
   DESKTOP DOCK
   =============================== */
#chamspace-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding-left: calc(var(--sidebar-width) + var(--gap) * 2);
    padding-right: var(--gap);
    padding-bottom: clamp(12px, 1.6vh, 20px);
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.dock-inner {
    background: linear-gradient(180deg, rgba(30,30,30,0.88) 0%, rgba(15,15,15,0.96) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 -10px 50px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.15);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* TOP BAR */
.dock-top {
    display: flex;
    align-items: center;
    padding: 10px 24px;
    width: 100%;
    box-sizing: border-box;
}

/* Brand: fixed left */
.dock-brand {
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    padding-right: 15px;
    border-right: 1px solid rgba(255,255,255,0.2);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Categories: scroll ngang */
.dock-cats-scroll {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
}
.dock-cats-scroll::-webkit-scrollbar { display: none; }

.dock-cat {
    color: #888;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 100px;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}
.dock-cat:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* Right group: phone + chat + hamburger, fixed */
.dock-right-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

/* Điện thoại */
.dock-contact {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}
.dock-contact-icon {
    width: 14px; height: 14px;
    flex-shrink: 0;
}
.dock-contact:hover { color: rgba(255,255,255,0.8); }

/* Chat AI — circle with ✦ + green dot (matches mobile style) */
.dock-chat-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent !important;
    transition: background 0.2s;
    color: rgba(255,255,255,0.7);
    font-size: 16px;
}
.dock-chat-btn:hover,
.dock-chat-btn:active { background: rgba(255,255,255,0.12); }
.dock-chat-btn .chat-dot {
    position: absolute;
    top: 4px; right: 4px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34,197,94,0.6);
    animation: onlinePulse 2s ease-in-out infinite;
}

/* Language */
.dock-lang {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    white-space: nowrap;
}
.dock-lang a { color: #888; text-decoration: none; }
.dock-lang a:first-child { color: #fff; }
.dock-lang span { color: #555; }

/* Hamburger */
.dock-hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.dock-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

/* ===============================
   EXPAND PANEL
   =============================== */
.dock-bottom {
    display: none;
    height: 0;
    overflow: hidden;
    transition: height 0.5s ease;
}

.dock-bottom-grid {
    display: flex;
    gap: 40px;
    padding: 30px 32px 20px 32px;
}

.dock-bottom-left {
    flex: 1;
}

.dock-bottom-right {
    flex: 1;
}

.dock-bottom-right h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 20px 0;
}

.dock-bottom-cats {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}
.dock-bottom-cats a {
    color: #888;
    text-decoration: none;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dock-bottom-info {
    display: flex;
    gap: 32px;
}
.dock-bottom-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px 0;
}
.dock-bottom-info p {
    font-size: 13px;
    color: #aaa;
    margin: 0;
    line-height: 1.6;
}

.dock-copyright {
    font-size: 11px;
    color: #666;
    margin-top: 24px;
}

/* Contact Form in dock */
.dock-bottom-right form p { margin-bottom: 12px; }
.dock-bottom-right input,
.dock-bottom-right textarea {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    box-sizing: border-box;
}
.dock-bottom-right textarea { min-height: 80px; resize: vertical; }
.dock-bottom-right input[type="submit"] {
    background: #fff;
    color: #111;
    border: none;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 24px;
    border-radius: 100px;
    width: auto;
}
.dock-bottom-right input[type="submit"]:hover { background: #e60000; color: #fff; }

/* ===============================
   MOBILE DOCK
   =============================== */
#chamspace-dock-mobile {
    display: none;
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 100;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow: hidden;
    border-radius: 28px;
}
.dock-mobile-inner {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(30,30,30,0.88) 0%, rgba(15,15,15,0.96) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 -10px 50px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.15);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
.dock-mobile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    flex-shrink: 0;
    position: relative;
}
.dock-mobile-brand { color: #fff; font-weight: 700; font-size: 16px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
/* Center wrapper — pushes chat btn to absolute center */
.dock-mobile-chat-btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent !important;
    transition: background 0.2s;
    color: rgba(255,255,255,0.7);
    font-size: 17px;
    line-height: 1;
}
.dock-mobile-chat-btn:hover,
.dock-mobile-chat-btn:active { background: rgba(255,255,255,0.12); }
.dock-mobile-chat-btn .online-dot {
    position: absolute;
    top: 4px; right: 4px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34,197,94,0.6);
    animation: onlinePulse 2s ease-in-out infinite;
}
@keyframes onlinePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@media (max-width: 1024px) {
    #chamspace-dock { display: none !important; }
    #chamspace-dock-mobile { display: block !important; }
}

/* ===== Footer redesign ===== */
.dock-bottom-left {
    flex: 0 0 25%;
    padding-right: 24px;
    border-right: 1px solid rgba(255,255,255,0.06);
}
.dock-bottom-right {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.dock-logo {
    font-size: 26px; font-weight: 800; color: #fff;
    text-decoration: none; display: inline-block; margin-bottom: 6px;
}
.dock-tagline {
    font-size: 12px; color: rgba(255,255,255,0.35); margin: 0 0 14px;
    font-style: italic;
}
.dock-about-text {
    font-size: 12px; color: rgba(255,255,255,0.4); line-height: 1.6; margin: 0;
}
.dock-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 18px;
}
.dock-f-col h4 {
    font-size: 12px; font-weight: 700; color: #fff;
    margin: 0 0 10px; letter-spacing: 0.05em;
    text-align: left;
}
.dock-f-list {
    list-style: none; padding: 0; margin: 0;
    text-align: left;
}
.dock-f-list li { margin-bottom: 4px; }
.dock-f-list li:last-child { margin-bottom: 0; }
.dock-f-list a {
    font-size: 12px; color: rgba(255,255,255,0.45); text-decoration: none;
    transition: color .15s;
}
.dock-f-list a:hover { color: #fff; }
/* Dot + vertical line (submenu-style) */
.dock-f-list li {
    position: relative;
    padding-left: 16px;
}
.dock-f-list li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: background 0.2s, transform 0.2s;
    z-index: 2;
}
.dock-f-list li:hover::before {
    background: #e60000;
    transform: translate(-50%, -50%) scale(1.4);
}
.dock-f-list li::after {
    content: '';
    position: absolute;
    left: 2px;
    top: 12px;
    bottom: -4px;
    width: 1px;
    background: rgba(255,255,255,0.08);
    z-index: 1;
}
.dock-f-list li:last-child::after {
    display: none;
}

.dock-see-all { color: rgba(255,255,255,0.4) !important; font-weight: 600; }
.dock-social {
    display: flex; gap: 8px; flex-wrap: wrap;
}
.dock-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,0.08); text-decoration: none;
    font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.55);
    transition: background .2s, color .2s;
}
.dock-social a:hover { background: rgba(255,255,255,0.18); color: #fff; }
.dock-info-rows {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}
.dock-info-rows p {
    font-size: 12px; color: rgba(255,255,255,0.4); margin: 0; line-height: 1.5;
}
.dock-info-rows a { color: rgba(255,255,255,0.45); text-decoration: none; }
.dock-info-rows a:hover { color: #fff; }

/* Location red pin icon inline */
.dock-info-rows p svg {
    width: 12px; height: 12px;
    vertical-align: middle; margin-right: 4px;
    position: relative; top: -1px;
}

/* Hotline - big white, bottom row */
.dock-hotline {
    margin: 0 0 14px;
}
.dock-hotline a {
    font-size: 15px; font-weight: 700; color: #fff;
    text-decoration: none;
}
.dock-hotline a:hover { opacity: 0.8; }
.dock-map { margin-top: 0; }
.dock-copyright {
    font-size: 11px; color: rgba(255,255,255,0.2); margin-top: auto;
    padding-top: 14px;
}

/* Mobile overlay */
/* Icon sizing in dock section headers */
.dock-bottom-left h4 svg,
.dock-f-col h4 svg {
    width: 14px; height: 14px;
    vertical-align: middle; margin-right: 4px;
    position: relative; top: -1px;
}
.dock-bottom-left h4 {
    font-size: 12px; font-weight: 700; color: #fff;
    margin: 0 0 14px; letter-spacing: 0.05em;
}
.dock-bottom-left h4 svg {
    width: 16px; height: 16px;
}

/* Shorter copyright spacing */
.dock-copyright {
    font-size: 11px; color: rgba(255,255,255,0.2); margin-top: 6px;
    padding-top: 8px;
}



/* ===== Mobile Hamburger Button ===== */
.dock-mobile-hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent !important;
}
.dock-mobile-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}


/* ===== Mobile Panel — expands upward inside pillshape (like DD dock-bottom) ===== */
.dock-mobile-panel {
    display: none;
    height: 0;
    overflow: hidden;
    transition: height 0.5s ease;
    background: linear-gradient(0deg, rgba(20,20,20,0.96) 0%, rgba(30,30,30,0.88) 100%);
}

/* Inherit dock-bottom-grid layout from desktop, override for mobile */
.dock-mobile-panel .dock-bottom-grid {
    flex-direction: column !important;
    gap: 20px !important;
    padding: 24px 24px 16px 24px !important;
}
.dock-mobile-panel .dock-bottom-left {
    flex: auto !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-right: 0 !important;
    padding-bottom: 16px !important;
}
.dock-mobile-panel .dock-footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
}
.dock-mobile-panel .dock-info-rows {
    grid-template-columns: 1fr 1fr !important;
}
.dock-mobile-panel .dock-map iframe {
    height: 100px !important;
    border-radius: 12px !important;
}
