/* WAI-Core: src/app/static/css/shell/footer.css v7 */

footer {
    margin-top: 20px;
}

footer.footer-floating {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    background-color: transparent;
    pointer-events: none;
}

.footer-container {
    position: relative;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 41px;
    margin-right: 41px;
    margin-bottom: 10px;
    pointer-events: none;
}

footer.footer-floating:not(.footer-minimised) .footer-container {
    pointer-events: all;
}

.left-footer-circle,
.right-footer-circle {
    pointer-events: auto;
}

.right-footer-circle {
    overflow: visible !important;
    position: relative;
}

.footer-main {
    background-color: #243f53;
    border-radius: 9999px;
    height: 60px;
    padding: 0 55px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-shadow:
        0px -6px 20px rgba(0, 0, 0, 0.3),
        0px -4px 12px rgba(17, 29, 38, 0.4),
        inset 0px 2px 0px rgba(255, 255, 255, 0.15),
        inset 0px -2px 0px rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    transition: all 0.15s ease, padding 0.15s ease;
    overflow: hidden;
    opacity: 1;
    font-size: 0.618em;
}

.footer-content {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    color: white;
    white-space: nowrap;
    overflow: hidden;
}

.footer-left,
.footer-right {
    padding: 10px;
    flex: 1;
}

.footer-left {
    text-align: left;
}

.footer-right {
    text-align: right;
}

.chat-circle {
    border: none;
    background: none;
    font-size: 36px;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.chat-circle-loader {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: chat-circle-spin 0.9s linear infinite;
    display: none;
}

.chat-circle--loading .chat-circle-loader {
    display: inline-block;
}

.chat-circle--loading .chat-circle-icon {
    display: none;
}

.footer-content a {
    color: white;
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

footer p {
    margin: 6px 0;
}

.social-media-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.social-media-container a {
    margin: 0 15px;
    display: inline-block;
}

.social-media-container img {
    width: 24px;
    height: auto;
    transition: transform 0.3s ease;
}

.social-media-container img:hover {
    transform: scale(1.2);
}

/* === Circles (match nav) === */

.footer-circle {
    position: absolute;
    width: 80px;
    height: 80px;
    cursor: pointer;
    border-radius: 50%;
    background-color: var(--brand-color-header);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    overflow: hidden;
    transition: background-color 0.3s ease, transform 0.3s ease;
    touch-action: none;
    user-select: none;
    box-shadow:
        0px 6px 20px rgba(0, 0, 0, 0.3),
        0px 4px 12px rgba(17, 29, 38, 0.4),
        inset 0px -2px 0px rgba(255, 255, 255, 0.15),
        inset 0px 2px 0px rgba(255, 255, 255, 0.15);
}

.footer-circle:focus {
    outline: none;
}

.footer-circle:focus-visible::before {
    opacity: 0;
    box-shadow: inset 0 0 12px var(--brand-color-highlight);
}

.footer-circle::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    opacity: 0.5;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transition: opacity 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

.footer-circle:hover::before {
    opacity: 0;
    box-shadow: inset 0 0 12px var(--brand-color-highlight);
}

.left-footer-circle {
    left: 0;
    transform: translateX(-40%);
}

.right-footer-circle {
    right: 0;
    transform: translateX(40%);
}

.inner-circle-footer {
    width: 85%;
    height: 85%;
    background-color: var(--brand-color-header);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 1rem;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.right-footer-circle.transcribing {
    transform: translateX(40%) scale(1.08);
}

.right-footer-circle.transcribing .inner-circle-footer {
    transform: scale(1.12);
    overflow: visible;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
    animation: chat-transcribing-breathe 1.4s ease-in-out infinite;
}

.right-footer-circle.transcribing .inner-circle-footer::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    animation: chat-transcribing-pulse 1.4s ease-out infinite;
    pointer-events: none;
}

@keyframes chat-transcribing-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    60% {
        transform: scale(1.5);
        opacity: 0;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes chat-transcribing-breathe {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 0 14px rgba(255, 255, 255, 0);
    }
}

@keyframes chat-circle-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.circle-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

.app-selector-button-footer {
    background: none;
    border: none;
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    justify-content: center;
}

.chat-circle {
    margin: auto;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.left-footer-circle::before {
    top: -5px;
    content: '←';
    font-size: 32px;
    color: white;
    opacity: 1;
    pointer-events: none;
    z-index: 3;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === MINIMISED STATE === */

footer.footer-floating.footer-minimised .footer-main {
    height: 0;
    padding: 0 40px;
    opacity: 0;
    transition: opacity 0.15s ease, height 0.15s ease, padding 0.15s ease;
}

footer p {
    margin: 2px 0;
}

/* === Transparency for footer circles === */
.footer-circle,
.footer-circle .inner-circle-footer {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.left-footer-circle .inner-circle-footer {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.footer-circle:hover,
.footer-circle:hover .inner-circle-footer,
.footer-main:hover ~ .left-footer-circle,
.footer-main:hover ~ .right-footer-circle,
footer.footer-floating:not(.footer-minimised) .footer-circle,
footer.footer-floating:not(.footer-minimised) .footer-circle .inner-circle-footer {
    opacity: 1;
}


/* === MOBILE MENU PLACEHOLDER === */
#footer-mobile-menu {
    display: none;
    border-radius: var(--brand-border-radius) var(--brand-border-radius) 0 0;
    box-shadow:
      inset 2px 0 0 rgba(255, 255, 255, 0.15),   /* Left line */
      inset -2px 0 0 rgba(255, 255, 255, 0.15),  /* Right line */
      inset 0 -2px 10px rgba(0, 0, 0, 0.5);       /* Bottom shadow */
}

#footer-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    margin-right: 0px;
    padding-right: 0px;
    margin-left: 0px;
    padding-left: 0px;
}

.footer-mobile-menu.open {
    display: flex;
    max-height: 80vh;
    overflow-y: auto;
}


footer-mobile-menu p {
    text-align: left;
}

