/* Stage 2, task 2: footer, approved logos and social links. */
.fox-footer {
    width: calc(100% - 28px);
    max-width: 1412px;
    min-height: 76px;
    margin: 0 auto 14px;
    border-color: var(--fox-line);
    border-radius: 10px;
    background: rgba(var(--fox-rgb-as2l1, 8, 6, 14), .88);
    box-shadow: 0 10px 34px rgba(0, 0, 0, .42), inset 0 0 0 1px rgba(var(--fox-rgb-gs4l14, 177, 100, 255), clamp(0, calc(.08 * var(--fox-glow-strength, 1)), 1));
    backdrop-filter: blur(14px);
}

.fox-navbar .fox-logo-mini {
    flex-basis: 84px;
    height: 66px;
}

.fox-navbar .fox-logo-mini img {
    width: 62px;
    height: auto;
    max-height: 62px;
}

.fox-footer-center { min-width: 0; }

.fox-footer .fox-footer-logo {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
}

.fox-footer .fox-footer-logo img {
    width: 58px;
    height: auto;
    max-height: 58px;
}

.fox-footer .fox-social {
    padding: 0;
    border-color: rgba(var(--fox-social-rgb), .34);
    background: rgba(var(--fox-social-rgb), .075);
    color: rgb(var(--fox-social-rgb));
    cursor: pointer;
}

.fox-footer .fox-social--telegram { --fox-social-rgb: 89, 202, 255; }
.fox-footer .fox-social--vk { --fox-social-rgb: 109, 168, 255; }
.fox-footer .fox-social--discord { --fox-social-rgb: 172, 139, 255; }
.fox-footer .fox-social--youtube { --fox-social-rgb: 255, 107, 118; }

.fox-footer .fox-social:hover,
.fox-footer .fox-social:focus-visible {
    border-color: rgba(var(--fox-social-rgb), .82);
    background: rgba(var(--fox-social-rgb), .15);
    color: rgb(var(--fox-social-rgb));
    box-shadow: 0 0 16px rgba(var(--fox-social-rgb), .24);
}

.fox-footer .fox-social:focus-visible,
.fox-footer .fox-footer-logo:focus-visible {
    outline: 2px solid var(--fox-tone-as4l17, #d6a7ff);
    outline-offset: 3px;
}

.fox-youtube-modal .modal-dialog {
    width: min(420px, calc(100% - 24px));
    max-width: 420px;
    margin: 12px auto;
}

.fox-youtube-modal .modal-content {
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    border: 1px solid rgba(198, 124, 255, .68);
    border-radius: 14px;
    background: #171023;
    box-shadow: 0 0 28px rgba(151, 70, 228, .25), 0 24px 65px rgba(0, 0, 0, .52);
    color: #f5edff;
}

.fox-youtube-modal .modal-header {
    align-items: center;
    padding: 18px 20px 12px;
    border-bottom-color: rgba(198, 124, 255, .22);
}

.fox-youtube-modal .modal-title { font-size: 19px; font-weight: 800; }
.fox-youtube-modal .modal-body { padding: 18px 20px 12px; }
.fox-youtube-modal .modal-body p { margin: 0; color: #d8cae8; line-height: 1.5; }
.fox-youtube-modal .modal-footer { justify-content: flex-end; padding: 10px 20px 18px; border-top: 0; }
.fox-youtube-modal .close { color: #ead6ff; opacity: .9; text-shadow: none; }

.fox-youtube-modal__close {
    min-height: 38px;
    padding: 7px 16px;
    border: 1px solid rgba(198, 124, 255, .6);
    border-radius: 8px;
    background: rgba(140, 63, 214, .24);
    color: #fff;
    cursor: pointer;
}

.fox-youtube-modal__close:hover,
.fox-youtube-modal__close:focus-visible {
    background: rgba(140, 63, 214, .42);
    box-shadow: 0 0 14px rgba(151, 70, 228, .25);
}

.fox-youtube-modal button:focus-visible { outline: 2px solid #d6a7ff; outline-offset: 2px; }

@media (max-width: 1199px) {
    .fox-navbar .fox-logo-mini { flex: 0 0 auto; width: 100%; height: 62px; }
    .fox-navbar .fox-logo-mini img { width: 56px; max-height: 56px; }
}

@media (max-width: 768px) {
    .fox-footer { width: calc(100% - 20px); }
}

@media (max-width: 650px) {
    .fox-footer .fox-footer-logo { flex-basis: 54px; width: 54px; height: 54px; }
    .fox-footer .fox-footer-logo img { width: 52px; max-height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
    .fox-footer .fox-social,
    .fox-footer .fox-footer-logo,
    .fox-youtube-modal.fade,
    .fox-youtube-modal.fade .modal-dialog { transition: none; }
    .fox-footer .fox-social:hover,
    .fox-footer .fox-social:focus-visible { transform: none; }
}
