/*
 Theme Name: Aetherion-Pro
 Theme URI: https://anton-grachev.ru
 Author: Антон Грачёв
 Author URI: https://anton-grachev.ru
 Description: Современная SEO-оптимизированная тема для портфолио и блога цифрового дизайнера. Поддерживает Elementor, Telegram Login, Yoast SEO и шорткоды для хедера/футера.
 Version: 2.0.0
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: aetherion-pro
 Tags: portfolio, blog, elementor, responsive, seo, telegram
*/

/* Telegram Login Button */
.aetherion-pro .tgme_widget_login.large button.tgme_widget_login_button {
    font-size: 16px;
    line-height: 20px;
    padding: 9px 21px 11px;
    border-radius: 12px;
    background-color: #D1FE6A; /* Неоновый лаймовый */
    color: #0A0A0F; /* Тёмный для контраста */
    font-family: 'Roboto Flex', sans-serif;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.aetherion-pro .tgme_widget_login.large button.tgme_widget_login_button:hover {
    background-color: #F6EB61; /* Мягкий желтый */
    transform: translateY(-2px);
}

.aetherion-pro button.tgme_widget_login_button {
    display: inline-block;
    vertical-align: top;
    font-size: 13px;
    font-weight: 500;
    line-height: 20px;
    border-radius: 12px;
    background-color: #D1FE6A;
    text-overflow: ellipsis;
    overflow: hidden;
    padding: 7px 16px 6px;
    margin: 0;
    border: none;
    color: #0A0A0F;
    cursor: pointer;
    font-family: 'Roboto Flex', sans-serif;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.aetherion-pro button.tgme_widget_login_button:hover {
    background-color: #F6EB61;
    transform: translateY(-2px);
}

.telegram-login-button {
    background-color: #D1FE6A;
    border-radius: 12px;
    padding: 10px 20px;
    font-family: 'Roboto Flex', sans-serif;
    color: #0A0A0F;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.telegram-login-button:hover {
    background-color: #F6EB61;
    transform: translateY(-2px);
}

/* Глобальные стили */
body {
    background: #0A0A0F; /* Основной фон */
    color: #E6E6E6; /* Светлый текст */
    font-family: 'Roboto Flex', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overscroll-behavior: none;
	font-display: swap;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    color: #D1FE6A; /* Неоновый лаймовый для заголовков */
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 24px; }

a {
    color: #F6EB61; /* Мягкий желтый для ссылок */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #D1FE6A; /* Неоновый лаймовый при наведении */
}

.xai-custom-container,
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Адаптивные стили для глобальных элементов */
@media (max-width: 768px) {
    body {
        font-size: 16px;
        line-height: 1.5;
    }
    h1 { font-size: 32px; }
    h2 { font-size: 28px; }
    h3 { font-size: 20px; }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
        line-height: 1.5;
    }
    h1 { font-size: 28px; }
    h2 { font-size: 24px; }
    h3 { font-size: 18px; }
}

/* Стили секции заголовков */
.section-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 42px;
    color: #D1FE6A;
    text-align: center;
    margin: 0 auto 30px;
    width: fit-content;
    line-height: 1.2;
}

/* Адаптивные стили для заголовков секций */
@media (max-width: 768px) {
    .section-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 24px;
        margin-bottom: 15px;
    }
}


/* Хедер */
/* Хедер */
header.xai-custom-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(5px);
    z-index: 100000;
    padding: 10px 0;
    transition: transform 0.4s ease-in-out;
}

header.xai-custom-header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header.xai-custom-header.hidden {
    transform: translateY(-100%);
}

header.xai-custom-header .xai-custom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

header.xai-custom-header .xai-custom-logo {
    flex-shrink: 0;
    margin-left: 10px;
    width: 30px;
    height: 30px;
}

header.xai-custom-header .xai-custom-logo svg {
    transition: transform 0.5s ease;
}

header.xai-custom-header .xai-custom-logo:hover svg {
    transform: rotate(360deg) scale(1.2);
}

header.xai-custom-header .xai-custom-logo .cls-1 {
    fill: #D1FE6A;
    stroke-width: 0px;
    transition: fill 0.3s ease;
}

header.xai-custom-header .xai-custom-logo:hover .cls-1 {
    fill: #F7F263;
}

header.xai-custom-header .xai-custom-button {
    font-family: 'Unbounded', sans-serif !important;
    font-size: 12px;
	font-weight: 500;
	color: black;
    background: #D1FE6A;
    padding: 6px 12px;
    border-radius: 12px;
    flex-shrink: 0;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.3s ease, background 0.3s ease;
}

header.xai-custom-header .xai-custom-button:hover {
    transform: translateY(-2px);
    background: #F7F263;
}

header.xai-custom-header .xai-custom-button i {
    color: #0A0A0F;
}

header.xai-custom-header .xai-custom-menu {
    flex-grow: 1;
    display: flex;
    position: relative;
}

header.xai-custom-header .xai-custom-menu ul {
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
    justify-content: center;
}

header.xai-custom-header .xai-custom-menu a {
    font-family: 'Roboto Flex', sans-serif;
    font-size: 15px;
    color: #E6E6E6;
    padding: 10px 10px 0px 25px;
    text-decoration: none;
    transition: color 0.3s ease;
}

header.xai-custom-header .xai-custom-menu a:hover {
    color: #D1FE6A;
}

header.xai-custom-header .xai-custom-menu a i {
    margin-right: 6px;
    color: #E6E6E6;
    transition: color 0.3s ease;
}

header.xai-custom-header .xai-custom-menu a:hover i {
    color: #D1FE6A;
}

header.xai-custom-header .xai-custom-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

header.xai-custom-header .xai-custom-menu-toggle:hover {
    transform: scale(1.1);
}

header.xai-custom-header .xai-custom-menu-toggle .hamburger-line {
    display: block;
    width: 30px;
    height: 3px;
    background: #D1FE6A;
    margin: 6px auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
    border-radius: 2px;
}

header.xai-custom-header .xai-custom-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

header.xai-custom-header .xai-custom-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

header.xai-custom-header .xai-custom-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Профиль пользователя */
header.xai-custom-header .telegram-user-profile {
    display: flex;
    align-items: center;
    position: relative;
    flex-shrink: 0;
}

header.xai-custom-header .telegram-user-link {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #E6E6E6;
    font-family: 'Roboto Flex', sans-serif;
    font-size: 15px;
    text-decoration: none;
    transition: color 0.3s ease;
}

header.xai-custom-header .telegram-user-link:hover {
    color: #D1FE6A;
}

header.xai-custom-header .telegram-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
    border: 1px solid rgba(209, 254, 106, 0.15);
}

header.xai-custom-header .telegram-user-name {
    color: #E6E6E6;
    font-size: 15px;
}

header.xai-custom-header .profile-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #1A1A1A;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(209, 254, 106, 0.15);
    border-radius: 6px;
    padding: 10px;
    min-width: 200px;
    z-index: 100001;
    transform: translateY(10px);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

header.xai-custom-header .profile-dropdown.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

header.xai-custom-header .profile-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

header.xai-custom-header .profile-dropdown li {
    margin: 5px 0;
}

header.xai-custom-header .profile-dropdown a {
    font-family: 'Roboto Flex', sans-serif;
    font-size: 14px;
    color: #E6E6E6;
    padding: 8px 12px;
    display: block;
    text-decoration: none;
    transition: color 0.3s ease, background 0.3s ease;
}

header.xai-custom-header .profile-dropdown a:hover {
    color: #D1FE6A;
    background-color: rgba(209, 254, 106, 0.1);
}

/* Меню блога */
header.xai-custom-header .blog-menu-item {
    position: relative;
}

header.xai-custom-header .blog-menu-item > a {
    cursor: pointer;
}

header.xai-custom-header .blog-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1A1A1A;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(209, 254, 106, 0.15);
    border-radius: 6px;
    padding: 10px;
    min-width: 200px;
    z-index: 100;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

header.xai-custom-header .blog-menu-item.active .blog-submenu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Настройки отображения профилей */
header.xai-custom-header .mobile-profile {
    display: none;
}

header.xai-custom-header .desktop-profile {
    display: flex;
}

/* Адаптивные стили */
@media (max-width: 768px) {
    header.xai-custom-header {
        padding: 8px 0;
    }
    
    header.xai-custom-header .xai-custom-container {
        flex-wrap: nowrap;
    }
    
    header.xai-custom-header .xai-custom-button {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    header.xai-custom-header .xai-custom-menu-toggle {
        display: flex;
        margin-right: 10px;
    }
    
    header.xai-custom-header .xai-custom-menu {
        display: none;
        position: fixed;
        top: 55px;
        left: 0;
        width: 100%;
        max-height: 80vh;
        background: #1A1A1A;
        backdrop-filter: blur(8px);
        flex-direction: column;
        padding: 10px 0 25px;
        z-index: 99999;
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.7s ease-in-out, opacity 0.7s ease-in-out;
        overflow-y: auto;
    }
    
    header.xai-custom-header .xai-custom-menu.active {
        display: block;
        transform: translateY(0);
        opacity: 1;
    }
    
    header.xai-custom-header .xai-custom-menu ul {
        flex-direction: column;
        gap: 12px;
    }
    
    header.xai-custom-header .xai-custom-menu a {
        font-size: 18px;
        padding: 12px 20px;
        opacity: 0;
        transform: translateY(-15px);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }
    
    header.xai-custom-header .xai-custom-menu.active a {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Переключаем профили для мобильной версии */
    header.xai-custom-header .mobile-profile {
        display: flex;
        margin-left: 10px;
    }
    
    header.xai-custom-header .desktop-profile {
        display: none;
    }
    
    /* Мобильное меню блога */
    header.xai-custom-header .blog-submenu {
        position: static;
        background: transparent;
        border: none;
        padding: 0 0 0 20px;
        display: none;
    }
    
    header.xai-custom-header .blog-menu-item > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    header.xai-custom-header .blog-menu-item > a::after {
        content: "+";
        font-size: 18px;
        transition: transform 0.3s ease;
    }
    
    header.xai-custom-header .blog-menu-item.active > a::after {
        transform: rotate(45deg);
    }
    
    header.xai-custom-header .blog-menu-item.active .blog-submenu {
        display: block;
    }
}

@media (max-width: 480px) {
    header.xai-custom-header .xai-custom-logo {
        width: 25px;
        height: 25px;
    }
    
    header.xai-custom-header .xai-custom-button {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    header.xai-custom-header .xai-custom-menu a {
        font-size: 16px;
        padding: 10px 25px;
    }
    
    header.xai-custom-header .telegram-user-avatar {
        width: 28px;
        height: 28px;
    }
}













/* Футер */
footer.footer {
    padding: 40px 0;
    background: #0A0A0F; /* Тёмный фон, как у основного фона */
    backdrop-filter: blur(5px);
}

footer.footer .container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

footer.footer .footer-logo-link {
    display: inline-block;
    width: 100px;
    height: 100px;
    transition: transform 0.5s ease;
}

footer.footer .footer-logo-link .cls-1 {
    fill: #D1FE6A;
    stroke-width: 0px;
    transition: fill 0.3s ease;
}

footer.footer .footer-logo-link:hover .cls-1 {
    fill: #F6EB61;
}

footer.footer .footer-nav ul {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

footer.footer .footer-nav a {
    font-family: 'Roboto Flex', sans-serif;
    font-size: 14px;
    color: #E6E6E6;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

footer.footer .footer-nav a:hover {
    color: #F6EB61;
    transform: translateY(-2px);
}

footer.footer .footer-nav a i {
    margin-right: 8px;
    color: #E6E6E6;
    transition: color 0.3s ease;
}

footer.footer .footer-nav a:hover i {
    color: #F6EB61;
}

footer.footer .social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

footer.footer .social-icons a {
    display: inline-block;
    line-height: 0;
    transition: transform 0.3s ease; /* Плавный переход для масштабирования */
}

footer.footer .social-icons a img.social-icon {
    width: 30px; /* Обновлено с 40px на 30px, как в вашем коде */
    height: 30px;
    object-fit: contain;
    vertical-align: middle;
    transition: filter 0.5s ease; /* Плавный переход для цвета */
}

footer.footer .social-icons a:hover {
    transform: scale(1.2);
}

footer.footer .social-icons a:hover img.social-icon {
    filter: brightness(120%) ;
}
footer.footer .copyright {
    font-family: 'Roboto Flex', sans-serif;
    font-size: 14px;
    color: #E6E6E6;
    text-align: center;
}

/* Адаптивные стили для футера */
@media (max-width: 768px) {
    footer.footer {
        padding: 30px 0;
    }
    footer.footer .footer-logo-link {
        width: 100px;
        height: 100px;
    }
    footer.footer .footer-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    footer.footer .footer-nav a {
        font-size: 14px;
    }
    footer.footer .social-icons a img.social-icon {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    footer.footer {
        padding: 20px 0;
    }
    footer.footer .footer-logo-link {
        width: 100px;
        height: 100px;
    }
    footer.footer .footer-nav a {
        font-size: 14px;
    }
    footer.footer .social-icons a img.social-icon {
        width: 30px;
        height: 30px;
    }
    footer.footer .copyright {
        font-size: 12px;
    }
}