/* CSS Логотип TRAFIMIX.RU - Стильный с красивыми эффектами */
.logo-css {
    display: inline-block;
    background: transparent;
    color: #1e293b;
    padding: 15px 20px;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    font-family: 'Arial Black', Arial, sans-serif;
    position: relative;
    overflow: visible;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[data-theme="dark"] .logo-css {
    color: #f9fafb;
}

.logo-css:hover {
    transform: translateY(-2px) scale(1.02);
}

/* Красивые декоративные элементы */
.logo-css::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 40px;
    background: linear-gradient(180deg, #3b82f6, #8b5cf6, #ec4899);
    border-radius: 2px;
    animation: colorShift 3s ease-in-out infinite;
    z-index: 10;
}

[data-theme="dark"] .logo-css::before {
    background: linear-gradient(180deg, #60a5fa, #a78bfa, #f472b6);
}

.logo-css::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 40px;
    background: linear-gradient(180deg, #10b981, #f59e0b, #ef4444);
    border-radius: 2px;
    animation: colorShift 3s ease-in-out infinite reverse;
    z-index: 10;
}

[data-theme="dark"] .logo-css::after {
    background: linear-gradient(180deg, #34d399, #fbbf24, #f87171);
}

.logo-main {
    display: block;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 1.5px;
    animation: textGlow 2s ease-in-out infinite alternate;
    background: linear-gradient(135deg, #1e293b 0%, #475569 50%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

[data-theme="dark"] .logo-main {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #60a5fa 100%);
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.3));
}

.logo-domain {
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.8px;
    animation: textGlow 2s ease-in-out infinite alternate 0.5s;
    background: linear-gradient(135deg, #475569 0%, #64748b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .logo-domain {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.3));
}

.logo-slogan {
    display: block;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    opacity: 0.95;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    animation: textGlow 2s ease-in-out infinite alternate 1s;
    background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .logo-slogan {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.3));
}

/* Анимации */
@keyframes textGlow {
    0% { 
        filter: brightness(1) contrast(1);
    }
    100% { 
        filter: brightness(1.1) contrast(1.1);
    }
}

@keyframes colorShift {
    0%, 100% { 
        opacity: 0.8;
        transform: translateY(-50%) scaleY(1);
        filter: hue-rotate(0deg);
    }
    50% { 
        opacity: 1;
        transform: translateY(-50%) scaleY(1.1);
        filter: hue-rotate(30deg);
    }
}

/* Дополнительные эффекты при наведении */
.logo-css:hover .logo-main {
    animation: textPulse 0.6s ease-in-out;
}

[data-theme="dark"] .logo-css:hover .logo-main {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #f472b6 100%);
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 3px rgba(96, 165, 250, 0.5));
}

.logo-css:hover .logo-domain {
    animation: textPulse 0.6s ease-in-out 0.1s;
}

[data-theme="dark"] .logo-css:hover .logo-domain {
    background: linear-gradient(135deg, #a78bfa 0%, #c4b5fd 100%);
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 2px rgba(167, 139, 250, 0.5));
}

.logo-css:hover .logo-slogan {
    animation: textPulse 0.6s ease-in-out 0.2s;
}

[data-theme="dark"] .logo-css:hover .logo-slogan {
    background: linear-gradient(135deg, #f472b6 0%, #fb7185 100%);
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 2px rgba(244, 114, 182, 0.5));
}

/* Красивые частицы вокруг логотипа */
.logo-css::before,
.logo-css::after {
    box-shadow: 
        0 0 10px rgba(59, 130, 246, 0.3),
        0 0 20px rgba(139, 92, 246, 0.2),
        0 0 30px rgba(236, 72, 153, 0.1);
}

[data-theme="dark"] .logo-css::before,
[data-theme="dark"] .logo-css::after {
    box-shadow: 
        0 0 10px rgba(96, 165, 250, 0.4),
        0 0 20px rgba(167, 139, 250, 0.3),
        0 0 30px rgba(244, 114, 182, 0.2);
}

.logo-css:hover::before,
.logo-css:hover::after {
    box-shadow: 
        0 0 15px rgba(59, 130, 246, 0.5),
        0 0 25px rgba(139, 92, 246, 0.4),
        0 0 35px rgba(236, 72, 153, 0.3);
}

[data-theme="dark"] .logo-css:hover::before,
[data-theme="dark"] .logo-css:hover::after {
    box-shadow: 
        0 0 15px rgba(96, 165, 250, 0.6),
        0 0 25px rgba(167, 139, 250, 0.5),
        0 0 35px rgba(244, 114, 182, 0.4);
}

@keyframes textPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Стили для элементов в правом углу */
.dropdown {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(30, 41, 59, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

[data-theme="dark"] .dropdown {
    background: rgba(31, 41, 55, 0.95);
    border-color: rgba(75, 85, 99, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.dropdown-top {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
}

[data-theme="dark"] .dropdown-top {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
}

.dropdown-top:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .dropdown-top:hover {
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.dropdown-inside {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(30, 41, 59, 0.1);
    transition: all 0.3s ease;
}

[data-theme="dark"] .dropdown-inside {
    background: rgba(31, 41, 55, 0.98);
    border-color: rgba(75, 85, 99, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.dropdown-inside li {
    transition: all 0.2s ease;
}

.dropdown-inside li:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    transform: translateX(3px);
}

[data-theme="dark"] .dropdown-inside li:hover {
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
}

.language__img_std,
.language__img {
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.language__img_std:hover,
.language__img:hover {
    border-color: #64748b;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.3);
}

.language__img_active {
    border-color: #475569;
    box-shadow: 0 2px 10px rgba(71, 85, 105, 0.3);
}

/* Кнопка входа - зеленый кубик с тремя тире вниз */
.btn-login {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] .btn-login {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 2px;
    background: white;
    box-shadow: 
        0 -12px 0 white,
        0 12px 0 white;
    border-radius: 1px;
}

.btn-login:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

[data-theme="dark"] .btn-login:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.5);
}

.btn-login.open-login {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3);
}

[data-theme="dark"] .btn-login.open-login {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.4);
}

.btn-login.open-login:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

[data-theme="dark"] .btn-login.open-login:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.5);
}

/* Меню входа */
#login-form {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(30, 41, 59, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

[data-theme="dark"] #login-form {
    background: rgba(31, 41, 55, 0.98);
    border-color: rgba(75, 85, 99, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.menu_j {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(30, 41, 59, 0.1);
}

[data-theme="dark"] .menu_j {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    border-color: rgba(75, 85, 99, 0.3);
}

.menu_j:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .menu_j:hover {
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Адаптивность */
@media (max-width: 768px) {
    .logo-css {
        padding: 16px 24px;
        border-radius: 16px;
    }
    
    .logo-main {
        font-size: 28px;
        letter-spacing: 1.5px;
    }
    
    .logo-domain {
        font-size: 16px;
        letter-spacing: 0.8px;
    }
    
    .logo-slogan {
        font-size: 10px;
        letter-spacing: 1.2px;
    }
    
    .dropdown {
        left: 200px !important;
    }
}

@media (max-width: 480px) {
    .logo-css {
        padding: 14px 20px;
        border-radius: 14px;
    }
    
    .logo-main {
        font-size: 24px;
        letter-spacing: 1px;
    }
    
    .logo-domain {
        font-size: 14px;
        letter-spacing: 0.6px;
    }
    
    .logo-slogan {
        font-size: 9px;
        letter-spacing: 1px;
    }
    
    .dropdown {
        left: 150px !important;
    }
}
