/* app/static/css/footer.css */

/* =========================================================
   SECTION 1. FOOTER BASE
   Общая база подвала
   ========================================================= */
footer {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        linear-gradient(180deg, rgba(6, 171, 212, 0.14), rgba(0, 0, 0, 0.10)),
        rgba(15, 18, 22, 0.98);
    color: #ffffff;
    padding: 34px 0 0;
    border-top: 1px solid rgba(6, 171, 212, 0.44);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    font-size: 18px;
    box-shadow:
        0 0 24px rgba(6, 171, 212, 0.22),
        0 -18px 50px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 16% 18%, rgba(6, 217, 255, 0.12), transparent 30%),
        radial-gradient(circle at 82% 72%, rgba(0, 255, 204, 0.08), transparent 34%);
    pointer-events: none;
}

/* =========================================================
   SECTION 2. FOOTER MAIN LAYOUT
   Общий контейнер трёх колонок
   ========================================================= */
.footer-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin: 0 20px;
    min-height: 300px;
    font-size: 20px;
}

/* =========================================================
   SECTION 3. COLUMN WRAPPERS
   Внешние рамки колонок
   ========================================================= */
.footer-section-wrapper {
    flex: 1;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
        rgba(8, 12, 16, 0.88);
    border: 1px solid rgba(6, 171, 212, 0.28);
    border-radius: 18px;
    padding: 16px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    min-width: 250px;
    box-shadow:
        0 0 18px rgba(6, 171, 212, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.footer-section-wrapper:hover {
    border-color: rgba(6, 217, 255, 0.56);
    box-shadow:
        0 0 22px rgba(6, 171, 212, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

/* =========================================================
   SECTION 4. INNER COLUMN BLOCK
   Внутренний блок секции
   ========================================================= */
.footer-section {
    margin-bottom: 0;
}

.footer-section h2 {
    font-size: 22px;
    margin-bottom: 15px;
    padding-left: 10px;
    color: #e8fbff;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* =========================================================
   SECTION 5. GENERIC FOOTER ITEM
   Универсальная планка для ссылок и полей
   ========================================================= */
.footer-item {
    background: rgba(15, 18, 22, 0.78);
    border: 1px solid rgba(6, 171, 212, 0.22);
    border-radius: 13px;
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.footer-item:hover {
    background:
        linear-gradient(90deg, rgba(6, 171, 212, 0.16), rgba(0, 255, 204, 0.05)),
        rgba(12, 16, 20, 0.96);
    border-color: rgba(6, 217, 255, 0.56);
    box-shadow:
        0 0 14px rgba(6, 171, 212, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* =========================================================
   SECTION 6. BRAND COLUMN
   Левая колонка: логотип + PAXOR
   ========================================================= */
.brand-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.footer-brand-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-left: 10px;
}

.footer-brand-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.footer-brand-title {
    font-size: 28px;
    font-weight: 200;
    letter-spacing: 1px;
    color: #ffffff;
    text-shadow: 0 0 14px rgba(6, 171, 212, 0.24);
    line-height: 1;
    margin: 0;
}

/* =========================================================
   SECTION 7. BRAND SUBTITLE
   Короткое описание под логотипом
   ========================================================= */
.footer-brand-subtitle {
    padding-left: 10px;
    margin-bottom: 18px;
    font-size: 16px;
    color: #cfefff;
    letter-spacing: 0.5px;
}

/* =========================================================
   SECTION 8. SOCIAL BOX
   Большая внутренняя рамка для соцсетей
   ========================================================= */
.footer-social-box {
    margin-top: 8px;
    margin-left: 10px;
    width: calc(100% - 10px);
    min-height: 86px;
    background: rgba(8, 12, 16, 0.86);
    border: 1px solid rgba(6, 171, 212, 0.28);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.footer-social-box:hover {
    background: rgba(6, 171, 212, 0.12);
    border-color: rgba(6, 217, 255, 0.55);
    box-shadow: 0 0 14px rgba(6, 171, 212, 0.16);
}

/* =========================================================
   SECTION 9. SOCIAL ICONS
   Круглые иконки соцсетей внутри рамки
   ========================================================= */
.footer-social-icons {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-left: 16px;
    padding-top: 8px; /* немного ниже */
}

.footer-social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(6, 171, 212, 0.15);
    border: 1px solid rgba(6, 171, 212, 0.50);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #00ccff;
    text-decoration: none;
    font-size: 20px;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.footer-social-icon:hover {
    background: rgba(6, 171, 212, 0.24);
    border-color: rgba(6, 217, 255, 0.72);
    color: #e8fbff;
    transform: scale(1.08);
}

/* =========================================================
   SECTION 10. LINKS COLUMN
   Центральная колонка со ссылками
   ========================================================= */
.footer-section.links ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.footer-section.links .footer-item {
    height: 40px;
    justify-content: center;
}

.footer-section.links .footer-item a {
    color: #e8fbff;
    text-decoration: none;
    font-size: 18px;
    width: 100%;
    display: block;
}

.footer-section.links .footer-item a:hover {
    color: #00ccff;
}

/* =========================================================
   SECTION 11. CONTACT BOX UNDER LINKS
   Одна общая рамка: Contact + 2 почты
   ========================================================= */
.footer-links-contact-box {
    margin-top: 18px;
    height: auto !important;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 8px;
}

.footer-links-contact-title {
    font-size: 18px;
    color: #e8fbff;
    margin-bottom: 6px;
    padding-bottom: 6px;
    width: 100%;
    border-bottom: 1px solid rgba(6, 217, 255, 0.22);
}

.footer-links-contact-box p {
    margin: 0;
    font-size: 18px;
    color: #cfefff;
    line-height: 1.4;
}

/* =========================================================
   SECTION 12. CONTACT FORM COLUMN
   Правая колонка с рабочей формой Contact
   ========================================================= */
.footer-section.contact-form .footer-item {
    height: auto;
}

.footer-section.contact-form .contact-input {
    width: 100%;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 18px;
    padding: 0;
    height: 30px;
    box-sizing: border-box;
}

.footer-section.contact-form textarea.contact-input {
    height: 80px;
    resize: none;
}

.footer-section.contact-form .contact-input:focus {
    outline: none;
    border: none;
}

.footer-section.contact-form .contact-input::placeholder {
    color: rgba(207, 239, 255, 0.58);
}

/* =========================================================
   SECTION 13. CONTACT FORM BUTTON
   Кнопка отправки сообщения
   ========================================================= */
.footer-section.contact-form .btn {
    background:
        linear-gradient(90deg, rgba(6, 171, 212, 0.26), rgba(0, 255, 204, 0.10)),
        rgba(6, 171, 212, 0.12);
    border: 1px solid rgba(6, 217, 255, 0.54);
    color: #ffffff;
    font-size: 18px;
    padding: 8px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 800;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    border-radius: 11px;
    height: 36px;
    margin-top: 10px;
    margin-left: 7px;
}

.footer-section.contact-form .btn:hover {
    background:
        linear-gradient(90deg, rgba(6, 171, 212, 0.34), rgba(0, 255, 204, 0.14)),
        rgba(6, 171, 212, 0.18);
    border-color: rgba(6, 217, 255, 0.78);
    box-shadow: 0 0 14px rgba(6, 171, 212, 0.20);
    transform: translateY(-1px);
}

.footer-section.contact-form .btn i {
    margin-right: 8px;
}

.footer-section.contact-form .btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* =========================================================
   SECTION 14. CONTACT FORM STATUS
   Статус отправки: success / error
   ========================================================= */
.footer-contact-status {
    margin-top: 12px;
    margin-left: 7px;
    font-size: 16px;
    min-height: 22px;
    color: #cfefff;
}

.footer-contact-status.success {
    color: #35d07f;
}

.footer-contact-status.error {
    color: #ff6b6b;
}

/* =========================================================
   SECTION 15. FOOTER BOTTOM
   Нижняя полоса copyright
   ========================================================= */
.footer-bottom {
    position: relative;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
        rgba(8, 12, 16, 0.90);
    border-top: 1px solid rgba(6, 171, 212, 0.22);
    padding: 20px 0;
    margin-top: 30px;
    text-align: center;
    font-size: 16px;
}

.footer-bottom p {
    margin: 0;
    color: #cfefff;
}

/* =========================================================
   SECTION 16. LIGHT THEME BASE
   Светлая тема: общий фон подвала
   ========================================================= */
body.light-theme footer {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        linear-gradient(180deg, rgba(6, 171, 212, 0.14), rgba(0, 0, 0, 0.10)),
        rgba(15, 18, 22, 0.98);
    color: #ffffff;
}

body.light-theme .footer-section-wrapper {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
        rgba(8, 12, 16, 0.88);
    border-color: rgba(6, 171, 212, 0.28);
}

body.light-theme .footer-section-wrapper:hover {
    border-color: rgba(6, 217, 255, 0.56);
}

body.light-theme .footer-section h2 {
    color: #e8fbff;
}

body.light-theme .footer-item {
    background: rgba(15, 18, 22, 0.78);
    border-color: rgba(6, 171, 212, 0.22);
}

body.light-theme .footer-item:hover {
    background:
        linear-gradient(90deg, rgba(6, 171, 212, 0.16), rgba(0, 255, 204, 0.05)),
        rgba(12, 16, 20, 0.96);
    border-color: rgba(6, 217, 255, 0.56);
}

/* =========================================================
   SECTION 17. LIGHT THEME BRAND COLUMN
   Светлая тема для логотипа, PAXOR и соцсетей
   ========================================================= */
body.light-theme .footer-brand-title {
    color: #ffffff;
}

body.light-theme .footer-brand-subtitle {
    color: #cfefff;
}

body.light-theme .footer-social-box {
    background: rgba(8, 12, 16, 0.86);
    border-color: rgba(6, 171, 212, 0.28);
}

body.light-theme .footer-social-box:hover {
    background: rgba(6, 171, 212, 0.12);
    border-color: rgba(6, 217, 255, 0.55);
}

body.light-theme .footer-social-icon {
    background: rgba(6, 171, 212, 0.15);
    border-color: rgba(6, 171, 212, 0.50);
    color: #00ccff;
}

body.light-theme .footer-social-icon:hover {
    background: rgba(6, 171, 212, 0.24);
    border-color: rgba(6, 217, 255, 0.72);
    color: #e8fbff;
}

/* =========================================================
   SECTION 18. LIGHT THEME LINKS + CONTACT BOX
   Светлая тема для средней колонки
   ========================================================= */
body.light-theme .footer-section.links .footer-item a {
    color: #e8fbff;
}

body.light-theme .footer-section.links .footer-item a:hover {
    color: #00ccff;
}

body.light-theme .footer-links-contact-title {
    color: #e8fbff;
    border-bottom-color: rgba(6, 217, 255, 0.22);
}

body.light-theme .footer-links-contact-box p {
    color: #cfefff;
}

/* =========================================================
   SECTION 19. LIGHT THEME CONTACT FORM
   Светлая тема для формы справа
   ========================================================= */
body.light-theme .footer-section.contact-form .contact-input {
    color: #ffffff;
}

body.light-theme .footer-bottom {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
        rgba(8, 12, 16, 0.90);
    color: #cfefff;
}

/* =========================================================
   SECTION 20. RESPONSIVE
   Адаптация под планшеты и телефоны
   ========================================================= */
@media (max-width: 900px) {
    .footer-content {
        flex-direction: column;
    }

    .footer-section-wrapper {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .footer-brand-header {
        gap: 10px;
    }

    .footer-brand-logo {
        width: 48px;
        height: 48px;
    }

    .footer-brand-title {
        font-size: 24px;
    }

    .footer-social-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .footer-brand-subtitle {
        font-size: 15px;
    }
}
