/* Footer Styles */
.footer {
    position: relative;
    overflow: hidden;
    margin-top: auto;
    width: 100%;
}

.footer .container-footer.page_component {
    margin: 16px 16px 8px 16px;
    padding: 32px;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
}

@media(max-width: 1500px) {
    .footer .container-footer.page_component {
        margin: 16px 16px 8px 16px;
        padding: 32px;
        padding-bottom: 40px;
    }
}

@media(max-width: 900px) {
    .footer {
        margin-top: 24px;
    }
    
    .footer .container-footer.page_component {
        margin: 16px 16px 8px 16px;
        padding: 24px 16px 40px;
    }
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    /* background: linear-gradient(90deg, transparent 0%, #ff0054 50%, transparent 100%); */
}

@media (max-width: 768px) {
    .footer {
        margin-top: 6rem;
        padding: 3rem 0 2rem;
    }
}

/* Statistics Section */
.footer__statistics {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    /* margin-bottom: 4rem; */
    width: 100%;
    flex-wrap: nowrap;
}

.footer__statistics-item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    /* border: 1px solid rgba(255, 255, 255, 0.1); */
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

@media (max-width: 1024px) {
    .footer__statistics {
        flex-wrap: wrap;
    }
    
    .footer__statistics-item {
        flex: 1 1 calc(50% - 0.75rem);
        min-width: calc(50% - 0.75rem);
    }
}

@media (max-width: 768px) {
    .footer__statistics {
        flex-direction: column;
    }
    
    .footer__statistics-item {
        flex: 1 1 100%;
        width: 100%;
    }
}

.footer__statistics-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 0, 84, 0.3);
    transform: translateY(-2px);
}

.footer__statistics-icon {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    opacity: 0.8;
}

.footer__statistics-numb {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    margin-bottom: 0.25rem;
}

@media (max-width: 768px) {
    .footer__statistics-numb {
        font-size: 1.6rem;
    }
}

.footer__statistics-title {
    display: block;
    font-size: 1.2rem;
    color: #8B8BA7;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .footer__statistics-title {
        font-size: 1rem;
    }
}

/* Main Content */
.footer__main {
    position: relative;
}

/* Full Width Title Section */
.footer__title-section {
    margin-bottom: 3rem;
    text-align: left;
}

.footer__title-section .footer__seo-title {
    margin-bottom: 0;
}

/* Content with Image */
.footer__wrap {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    position: relative;
}

@media (max-width: 1024px) {
    .footer__wrap {
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start;
    }
}

.footer__img {
    flex: 0 0 auto;
    position: absolute;
    right: 0;
    bottom: -49px;
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    z-index: 2;
}

@media (max-width: 1024px) {
    .footer__img {
        display: none;
    }
}

.footer__img img {
    width: auto;
    height: auto;
    max-height: 650px;
    object-fit: contain;
    object-position: bottom;
    opacity: 0.8;
}

.footer__content {
    flex: 1;
    position: relative;
    /* padding-bottom: 2rem; */
    z-index: 1;
    margin-right: 2rem;
}

/* SEO Content */
.footer__seo {
    margin-bottom: 3rem;
}

.footer__seo-title {
    font-size: 2.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .footer__seo-title {
        font-size: 2rem;
    }
}

.footer__seo-text {
    font-size: 0.6875rem; /* 11px */
    line-height: 1.5;
    color: #B8B8C8;
    margin-bottom: 1.2rem;
    max-width: 60rem;
}

@media (max-width: 768px) {
    .footer__seo-text {
        font-size: 0.625rem; /* 10px */
    }
}

/* Twitch Link */
.footer__twitch-link {
    color: #ff0054;
    text-decoration: underline;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer__twitch-link:hover {
    color: #ff3366;
    text-decoration: none;
}

.footer__seo-features {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .footer__seo-features {
        gap: 1.5rem;
    }
}

.footer__seo-feature {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 0, 84, 0.1);
    border: 1px solid rgba(255, 0, 84, 0.2);
    border-radius: 0.6rem;
    color: #ff0054;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer__seo-feature:hover {
    background: rgba(255, 0, 84, 0.15);
    border-color: rgba(255, 0, 84, 0.3);
    transform: translateY(-2px);
}

.footer__seo-feature svg {
    flex-shrink: 0;
}

/* Highlight for +VIBEEE */
.footer__highlight {
    color: #ff0054;
    font-weight: 800;
    font-size: 1.1em;
}

/* SEO List */
.footer__seo-list {
    margin: 1rem 0 1.5rem 0;
    padding-left: 1.5rem;
    list-style: none;
}

.footer__seo-list li {
    position: relative;
    font-size: 0.6875rem; /* 11px */
    line-height: 1.5;
    color: #B8B8C8;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
}

.footer__seo-list li::before {
    content: "•";
    color: #ff0054;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

@media (max-width: 768px) {
    .footer__seo-list li {
        font-size: 0.625rem; /* 10px */
    }
}

/* Legal Links */
.footer__legal {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer__legal-link {
    color: #8B8BA7;
    text-decoration: none;
    font-size: 0.875rem; /* 14px */
    transition: color 0.3s ease;
}

.footer__legal-link:hover {
    color: #ff0054;
}

@media (max-width: 768px) {
    .footer__legal {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Decorative Image */
.footer__content-img {
    position: absolute;
    bottom: 0;
    right: 659px;
    opacity: 0.8;
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 1024px) {
    .footer__content-img {
        display: none;
    }
}

.footer__content-img img {
    width: auto;
    height: auto;
    max-width: 414px;
    max-height: 230px;
    object-fit: contain;
    object-position: bottom right;
}

/* Floating Social Buttons */
.floating-social {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
    transition: bottom 0.3s ease;
}

/* При появлении кнопки наверх сдвигаем соцсети вверх на одну кнопку */
.footer__scroll-top.visible ~ .floating-social {
    bottom: 7rem; /* 2rem base + 4rem button + 1rem gap */
}

.floating-social__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem; /* Уменьшили на 20% (5rem * 0.8 = 4rem) */
    height: 4rem;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.floating-social__btn--twitch {
    background: linear-gradient(135deg, #9146ffcc 0%, #7c3aed00 100%);
    color: #fff;
}

.floating-social__btn--youtube {
    background: linear-gradient(135deg, #ff0000cc 0%, #cc000000 100%);
    color: #fff;
}

.floating-social__btn--telegram {
    background: linear-gradient(135deg, #0088cccc 0%, #00669900 100%);
    color: #fff;
}

.floating-social__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.floating-social__btn--twitch:hover {
    /* box-shadow: 0 8px 30px rgba(145, 70, 255, 0.4); */
}

.floating-social__btn--youtube:hover {
    /* box-shadow: 0 8px 30px rgba(255, 0, 0, 0.4); */
}

.floating-social__btn--telegram:hover {
   /* box-shadow: 0 8px 30px rgba(0, 136, 204, 0.4); */
}

/* Scroll to top button - теперь часть плавающих кнопок */
.footer__scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 4rem; /* Уменьшили на 20% (5rem * 0.8 = 4rem) */
    height: 4rem;
    background: linear-gradient(135deg, #ff0054 0%, #cc0042 100%);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.6rem; /* Уменьшили размер иконки пропорционально */
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000; /* Тот же z-index, что и у соцсетей */
    box-shadow: 0 4px 20px rgba(255, 0, 84, 0.3);
    transform: translateY(100%); /* Скрываем внизу */
}

/* Когда кнопка видна, показываем её как 4-ю кнопку */
.footer__scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* Показываем на месте */
}

.footer__scroll-top.visible:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 0, 84, 0.4);
}

@media (max-width: 768px) {
    .floating-social {
        bottom: 1.5rem;
        right: 1.5rem;
        gap: 0.75rem;
    }
    
    /* Мобильный сдвиг на высоту меньшей кнопки */
    .footer__scroll-top.visible ~ .floating-social {
        bottom: 5.5rem; /* 1.5rem base + 3.2rem button + 0.75rem gap */
    }
    
    .floating-social__btn {
        width: 3.2rem; /* Уменьшили на 20% (4rem * 0.8 = 3.2rem) */
        height: 3.2rem;
    }
    
    .floating-social__btn svg,
    .floating-social__btn img {
        width: 16px; /* Уменьшили пропорционально */
        height: 16px;
    }
    
    .footer__scroll-top {
        width: 3.2rem; /* Уменьшили на 20% (4rem * 0.8 = 3.2rem) */
        height: 3.2rem;
        font-size: 1.28rem; /* Уменьшили пропорционально (1.6rem * 0.8 = 1.28rem) */
        bottom: 1.5rem;
        right: 1.5rem; /* Та же позиция, что и у соцсетей */
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer__statistics-item {
    animation: fadeInUp 0.6s ease-out;
}

.footer__statistics-item:nth-child(1) { animation-delay: 0.1s; }
.footer__statistics-item:nth-child(2) { animation-delay: 0.2s; }
.footer__statistics-item:nth-child(3) { animation-delay: 0.3s; }
.footer__statistics-item:nth-child(4) { animation-delay: 0.4s; }

/* Update SVG colors to match theme */
.footer__statistics-item svg path,
.footer__statistics-item svg rect,
.footer__statistics-item svg circle {
    stroke: #ff0054;
    fill: none;
}

.footer__statistics-item svg path[fill] {
    fill: #ff0054;
}