/* ============================================================
   FAB - Yüzen Butonlar (Quick Contact + Scroll Top + Hours Modal)
   Aybuge Frontend
   ============================================================ */

/* ── Yüzen Buton Grubu ── */
.quick-fab-stack {
    position: fixed;
    right: 18px;
    bottom: 20px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

body.is-drawer-open .quick-fab-stack,
body.is-filter-open .quick-fab-stack,
body.is-search-open .quick-fab-stack {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
}

.quick-contact-menu { position: relative; }

/* Ana toggle butonu + scroll-top ortak stiller */
.quick-contact-menu__toggle,
.scroll-top-fab {
    width: 52px;
    height: 52px;
    border: 1px solid rgba(220, 212, 197, .92);
    border-radius: 18px;
    background: rgba(255, 252, 247, .94);
    color: #1098a2;
    box-shadow: 0 18px 40px rgba(24, 24, 27, .12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, opacity .18s ease;
}

.quick-contact-menu__toggle:hover,
.scroll-top-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(24, 24, 27, .16);
    border-color: rgba(16, 152, 162, .46);
}

.quick-contact-menu__toggle svg,
.scroll-top-fab svg,
.quick-contact-menu__item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Panel (açılır menü) */
.quick-contact-menu__panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px) scale(.96);
    transform-origin: bottom right;
    transition: opacity .18s ease, transform .18s ease;
}

.quick-contact-menu.is-open .quick-contact-menu__panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.quick-contact-menu.is-open .quick-contact-menu__toggle {
    color: #fff;
    background: #1098a2;
    border-color: #1098a2;
}

/* Panel öğeleri */
.quick-contact-menu__item {
    height: 46px;
    padding: 0 16px 0 12px;
    gap: 10px;
    border: 1px solid rgba(220, 212, 197, .92);
    border-radius: 16px;
    background: rgba(255, 252, 247, .96);
    box-shadow: 0 14px 30px rgba(24, 24, 27, .10);
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.quick-contact-menu__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(24, 24, 27, .14);
    border-color: rgba(16, 152, 162, .46);
}

.quick-contact-menu__label {
    font-size: 13px;
    font-weight: 500;
    color: #3d2f1a;
    letter-spacing: .01em;
}

.quick-contact-menu__item--linkedin  { color: #0a66c2; }
.quick-contact-menu__item--whatsapp  { color: #15803d; }
.quick-contact-menu__item--hours     { color: #b88b39; }

/* ── AI Chat FAB butonu ── */
.ai-chat-fab {
    width: 52px;
    height: 52px;
    border: 1px solid rgba(220, 212, 197, .92);
    border-radius: 18px;
    background: rgba(255, 252, 247, .94);
    color: #1098a2;
    box-shadow: 0 18px 40px rgba(24, 24, 27, .12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    position: relative;
    flex-shrink: 0;
}

.ai-chat-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(24, 24, 27, .16);
    border-color: rgba(16, 152, 162, .46);
}

.ai-chat-fab svg {
    width: 22px;
    height: 22px;
}

/* Pulsing glow ring */
.ai-chat-fab::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 22px;
    border: 2px solid rgba(16, 152, 162, .3);
    animation: aiFabPulse 2.4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes aiFabPulse {
    0%, 100% { opacity: .5; transform: scale(1); }
    50%       { opacity: 0;  transform: scale(1.12); }
}

@media (max-width: 640px) {
    .ai-chat-fab { width: 48px; height: 48px; border-radius: 16px; }
    .ai-chat-fab svg { width: 20px; height: 20px; }
}

/* Scroll-top — sadece scroll sonrası görünür */
.scroll-top-fab {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
}
.scroll-top-fab.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ── Çalışma Saatleri Modal ── */
.hours-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}
.hours-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}
.hours-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 37, 64, .50);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.hours-modal__dialog {
    position: relative;
    width: min(100%, 320px);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 28px 72px rgba(15, 10, 5, .18);
    padding: 24px 22px 22px;
    transform: translateY(16px) scale(.97);
    transition: transform .22s ease;
}
.hours-modal.is-open .hours-modal__dialog {
    transform: translateY(0) scale(1);
}
.hours-modal__close {
    position: absolute;
    top: 14px; right: 14px;
    width: 30px; height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(10, 37, 64, .06);
    color: #7a6345;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s;
}
.hours-modal__close:hover { background: rgba(16, 152, 162, .12); color: #1098a2; }
.hours-modal__close svg { width: 14px; height: 14px; }

/* Bugün */
.hours-modal__today { display: flex; flex-direction: column; gap: 10px; }
.hours-modal__today-meta { display: flex; flex-direction: column; gap: 2px; }
.hours-modal__today-dayname { font-size: 22px; font-weight: 700; color: #0a2540; line-height: 1.1; }
.hours-modal__today-date { font-size: 13px; color: #8898aa; }
.hours-modal__today-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    width: fit-content;
}
.hours-modal__today-badge.is-open  { background: rgba(21, 128, 61, .10); color: #15803d; }
.hours-modal__today-badge.is-closed { background: rgba(185, 28, 28, .09); color: #b91c1c; }
.hours-modal__today-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
    animation: fab-pulse 2s ease-in-out infinite;
}
@keyframes fab-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.hours-modal__divider { height: 1px; background: #e8edf2; margin: 16px 0 12px; }

.hours-modal__next-open {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 14px; border-radius: 12px;
    background: linear-gradient(135deg, rgba(16,152,162,.08) 0%, rgba(16,152,162,.03) 100%);
    border: 1px solid rgba(16,152,162,.15);
    color: #0a2540;
    font-size: 13px; font-weight: 500; line-height: 1.4;
}
.hours-modal__next-open__icon {
    flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
    background: rgba(16,152,162,.12);
    display: flex; align-items: center; justify-content: center;
    color: #1098a2;
}
.hours-modal__next-open__text { display: flex; flex-direction: column; gap: 1px; }
.hours-modal__next-open__label {
    font-size: 10px; font-weight: 600;
    letter-spacing: .06em; text-transform: uppercase;
    color: #1098a2; opacity: .8;
}
.hours-modal__next-open__time { font-size: 13.5px; font-weight: 600; color: #0a2540; }

/* Haftalık liste */
.hours-modal__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.hours-modal__row {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 13.5px; color: #8898aa;
    padding: 6px 8px; border-radius: 10px;
}
.hours-modal__row.is-today { background: rgba(16,152,162,.07); color: #0a2540; font-weight: 600; }
.hours-modal__day { flex: 1; }
.hours-modal__time { font-variant-numeric: tabular-nums; font-size: 13px; color: #0a2540; }
.hours-modal__row.is-today .hours-modal__time { color: #1098a2; font-weight: 700; }
.hours-modal__closed { font-size: 13px; color: #b91c1c; }

/* ── Mobil ── */
@media (max-width: 640px) {
    .quick-fab-stack { right: 14px; bottom: 16px; gap: 8px; }
    .quick-contact-menu__toggle, .scroll-top-fab { width: 48px; height: 48px; border-radius: 16px; }
    .quick-contact-menu__item { height: 42px; padding: 0 14px 0 10px; border-radius: 14px; }
    .quick-contact-menu__label { font-size: 12px; }
    .quick-contact-menu__toggle svg, .scroll-top-fab svg, .quick-contact-menu__item svg { width: 18px; height: 18px; }
}
