/* public/css/custom.css - ИСПРАВЛЕННАЯ ВЕРСИЯ */

/* Плавный скролл */
html {
    scroll-behavior: smooth;
}

/* Кастомные анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Прогресс-круг */
.progress-circle .bg,
.floating-button .progress-circle .bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.4);
    stroke-width: 3;
}

.progress-circle .progress,
.floating-button .progress-circle .progress {
    fill: none;
    stroke: #2c5aa0;
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.1s ease;
}

/* Лого ховер эффект */
.logo a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #2c5aa0, #1e3a8a);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.logo a:hover::after {
    width: 100%;
}

/* Флоатинг кнопки */
.floating-button {
    position: fixed;
    bottom: 40px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: white;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.floating-button.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.floating-button:hover {
    transform: translateY(-2px) scale(1.05);
}

.floating-button .progress-circle {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 56px;
    height: 56px;
    transform: rotate(-90deg);
    pointer-events: none;
}

.floating-button .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 900;
    color: #2c5aa0;
    background: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
}

.floating-button .icon span {
    position: relative;
    top: -2px;
}

.floating-button:hover .icon {
    color: #1e3d72;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.scroll-to-top {
    right: 20px;
}

.back-button {
    left: 20px;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.language-switcher a {
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
    border-radius: 4px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.language-switcher a::after {
    display: none !important;
}

.language-switcher a.active {
    background: #2c5aa0;
    color: white;
    border-color: #2c5aa0;
}

.language-switcher a:hover:not(.active) {
    border-color: #2c5aa0;
    color: #2c5aa0;
}

/* Карточки товаров */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-description {
    flex-grow: 1;
    min-height: 4.2rem;
}

.product-actions {
    margin-top: auto;
    flex-shrink: 0;
    min-height: 2.2rem;
}

.btn-primary, .btn-telegram {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

/* Мобильное меню */
.mobile-nav a:hover {
    background: rgba(44, 90, 160, 0.1);
    color: #2c5aa0;
    transform: translateY(-2px);
}

.mobile-nav a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2c5aa0, #1e3a8a);
    border-radius: 1px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.mobile-nav a:hover::after,
.mobile-nav a.active::after {
    width: 60%;
}

.mobile-nav a.active {
    color: #2c5aa0;
    font-weight: 600;
    background: rgba(44, 90, 160, 0.08);
}

/* Mobile Language Switcher */
.mobile-language-switcher {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.mobile-language-switcher a {
    padding: 0.75rem 1.5rem;
    border: 2px solid #2c5aa0;
    border-radius: 6px;
    text-decoration: none;
    color: #2c5aa0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mobile-language-switcher a.active {
    background: #2c5aa0;
    color: white;
}

.mobile-language-switcher a:hover:not(.active) {
    background: rgba(44, 90, 160, 0.1);
}

/* НЕДОСТАЮЩИЕ СТИЛИ ДЛЯ MINIMAL TAILWIND */

/* Акцентные цвета */
.bg-accent-500 { background-color: #ff6b6b !important; }
.hover\:bg-accent-600:hover { background-color: #e53e3e !important; }

/* Primary цвета */
.bg-primary-500 { background-color: #2c5aa0 !important; }
.hover\:bg-primary-600:hover { background-color: #1e3a8a !important; }

/* Link underline - СИНИЙ (для темного фона) */
.link-underline {
    position: relative;
    background: linear-gradient(90deg, #2c5aa0, #1e3a8a) no-repeat;
    background-size: 0% 2px;
    background-position: 0 100%;
    transition: background-size 0.3s ease;
    padding-bottom: 2px; /* Отступ для подчёркивания */
}

.link-underline:hover {
    background-size: 100% 2px;
}

/* Link underline - БЕЛЫЙ (для hero section) */
.hero-stats .link-underline,
.footer-content .link-underline {
    background: linear-gradient(90deg, white, white) no-repeat;
    background-size: 0% 3px;
    background-position: 0 100%;
    padding-bottom: 3px;
}

.hero-stats .link-underline:hover,
.footer-content .link-underline:hover {
    background-size: 100% 3px;
}

/* CTA button */
.cta-button {
    background-color: #ff6b6b !important;
    color: white;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-size: 1.125rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background-color: #e53e3e !important;
    transform: translateY(-0.25rem);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .cta-button {
        font-size: 1.25rem;
    }
}

/* Transform utilities */
.transform { transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }
.hover\:-translate-y-1:hover { --tw-translate-y: -0.25rem; }

/* Shadow utilities */
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

/* Transition utilities */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 300ms; }
.duration-300 { transition-duration: 300ms; }

/* Line clamp utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 1100px) {
    .nav,
    .language-switcher {
        display: none;
    }

    .burger-menu {
        display: block;
        margin-left: auto;
        order: 999;
    }
}

@media (min-width: 1101px) {
    .burger-menu,
    .mobile-menu {
        display: none !important;
    }
}
/* ДОБАВИМ В КОНЕЦ custom.css */

/* ИСПРАВЛЕНИЕ КОНТРАСТНОСТИ АКЦЕНТНЫХ ЦВЕТОВ */
.bg-accent-500 {
    background-color: #dc2626 !important; /* Более темный красный */
}

.hover\:bg-accent-600:hover {
    background-color: #b91c1c !important; /* Еще темнее при hover */
}

.bg-accent-600 {
    background-color: #b91c1c !important;
}

/* CTA button с улучшенной контрастностью */
.cta-button {
    background-color: #dc2626 !important; /* Темный красный */
    color: white !important;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-size: 1.125rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent; /* Добавляем границу для лучшего контраста */
}

.cta-button:hover {
    background-color: #b91c1c !important; /* Темнее при hover */
    transform: translateY(-0.25rem);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #991b1b; /* Темная граница при hover */
}

/* Primary colors тоже можно улучшить */
.bg-primary-500 {
    background-color: #1e40af !important; /* Более насыщенный синий */
}

.hover\:bg-primary-600:hover {
    background-color: #1e3a8a !important;
}

/* Убедимся что текст белый на акцентных кнопках */
.bg-accent-500,
.bg-accent-600,
.cta-button {
    color: white !important;
}

/* Для кнопок в карточках товаров */
.btn-primary {
    background-color: #1e40af !important;
    color: white !important;
}

.btn-primary:hover {
    background-color: #1e3a8a !important;
}

.btn-telegram {
    background-color: #0088cc !important;
    color: white !important;
}

.btn-telegram:hover {
    background-color: #0077b5 !important;
}

/* Дополнительно: улучшаем видимость тени */
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.1) !important;
}

.hover\:shadow-xl:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1) !important;
}
/* ТОЛЬКО для конкретных "View All" ссылок */
.all-products-link,
.all-categories-link {
    border: 2px solid #1e40af !important;
    color: #1e40af !important;
    background: transparent !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.5rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.all-products-link:hover,
.all-categories-link:hover {
    background-color: #1e40af !important;
    color: white !important;
    transform: translateY(-0.125rem);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Убедимся что другие ссылки не получают рамок */
a:not(.all-products-link):not(.all-categories-link) {
    border: none !important;
}
/* В custom.css добавьте */
.bg-green-500 { background-color: #15803d !important; } /* Темнее зеленый */
.bg-red-500 { background-color: #dc2626 !important; } /* Темнее красный */

