/*
Theme Name: Amarant Theme
Theme URI: https://amarant-almaty.kz
Author: Amarant Team
Author URI: https://amarant-almaty.kz
Description: Кастомная тема для интернет-магазина Amarant Almaty
Version: 2.4.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: amarant-theme
Domain Path: /languages
Tags: e-commerce, woocommerce, custom-menu, featured-images, threaded-comments, translation-ready

NOTE: screenshot.png (1200×900px) рекомендуется для отображения
превью темы в админке WordPress (Внешний вид → Темы).
Создайте файл в корне темы при необходимости.
*/

/*
Theme Name: Amarant Theme
Theme URI: https://amarant-almaty.kz
Author: Amarant Team
Author URI: https://amarant-almaty.kz
Description: Кастомная тема для Amarant Almaty
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: amarant-theme
*/

/* ============================================
   LANGUAGE SWITCHER — TranslatePress
   ============================================ */

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 12px;
    padding: 4px 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
}

.lang-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    text-decoration: none;
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
}

.lang-link:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.lang-link.is-active {
    background: #0b4699;
    color: #fff;
    font-weight: 600;
}

.lang-flag {
    font-size: 14px;
    line-height: 1;
}

.lang-code {
    font-size: 11px;
    letter-spacing: 0.5px;
}

.lang-sep {
    color: rgba(255,255,255,0.3);
    font-size: 10px;
}

/* Mobile Language Switcher */
.mobile-lang-switcher {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.mobile-lang-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
    flex: 1;
    justify-content: center;
}

.mobile-lang-link:hover {
    border-color: #0b4699;
    color: #0b4699;
}

.mobile-lang-link.is-active {
    background: #0b4699;
    color: #fff;
    border-color: #0b4699;
    font-weight: 600;
}

/* Responsive: hide desktop lang switcher on mobile */
@media (max-width: 768px) {
    .lang-switcher {
        display: none;
    }
}

@media (min-width: 769px) {
    .mobile-lang-switcher {
        display: none;
    }
}


/* ============================================
   LANGUAGE SWITCHER — FLAGS ONLY v2
   ============================================ */

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 12px;
    padding: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
}

.lang-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    opacity: 0.6;
}

.lang-link:hover {
    opacity: 1;
    background: rgba(255,255,255,0.15);
    transform: scale(1.1);
}

.lang-link.is-active {
    opacity: 1;
    background: rgba(255,255,255,0.2);
    box-shadow: 0 0 0 2px rgba(255,255,255,0.3);
}

.lang-flag {
    font-size: 18px;
    line-height: 1;
}

/* Mobile Language Switcher */
.mobile-lang-switcher {
    display: flex;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    justify-content: center;
}

.mobile-lang-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
    opacity: 0.5;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.mobile-lang-link:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.mobile-lang-link.is-active {
    opacity: 1;
    background: #0b4699;
    border-color: #0b4699;
    box-shadow: 0 2px 8px rgba(11, 70, 153, 0.3);
}

.mobile-lang-link.is-active .lang-flag {
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

/* Responsive */
@media (max-width: 768px) {
    .lang-switcher { display: none; }
}
@media (min-width: 769px) {
    .mobile-lang-switcher { display: none; }
}

/* ============================================
   BURGER ICON — MODERN SVG
   ============================================ */

.burger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #fff;
    transition: all 0.2s;
    border-radius: 10px;
}

.burger-btn:hover {
    background: rgba(255,255,255,0.1);
}

.burger-btn.is-active {
    background: rgba(255,255,255,0.15);
}

.burger-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.burger-bar {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Animation: burger → X */
.burger-btn.is-active .burger-bar--top {
    transform: translateY(6px) rotate(45deg);
}

.burger-btn.is-active .burger-bar--mid {
    opacity: 0;
    transform: scaleX(0);
}

.burger-btn.is-active .burger-bar--bot {
    transform: translateY(-6px) rotate(-45deg);
}

.burger-btn.is-active .burger-icon {
    transform: rotate(180deg);
}
