/* Компоненты Pinterest AI Studio */
/* Версия: 2.0 */

/* Карточки */
.feature-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
    border-color: var(--pinterest-red);
}

.feature-card .card-body {
    padding: 1.5rem;
}

/* Чипсы тем */
.topic-chip {
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.9rem;
}

.topic-chip:hover {
    background-color: var(--pinterest-red) !important;
    color: white !important;
    transform: translateY(-2px);
}

/* Навигация */
.navbar-brand {
    font-weight: 700;
    color: var(--pinterest-red) !important;
}

.navbar-brand:hover {
    opacity: 0.9;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Кнопки авторизации */
.auth-buttons .btn {
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-login {
    border: 1.5px solid var(--pinterest-red);
    color: var(--pinterest-red);
    background: transparent;
    padding: 6px 18px;
}

.btn-login:hover {
    background-color: var(--pinterest-red);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 0, 35, 0.2);
}

.btn-register {
    background: linear-gradient(135deg, var(--pinterest-red) 0%, var(--pinterest-red-light) 100%);
    border: none;
    color: white;
    padding: 7px 20px;
    position: relative;
    overflow: hidden;
}

.btn-register:hover {
    background: linear-gradient(135deg, var(--pinterest-red-light) 0%, var(--pinterest-red) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(230, 0, 35, 0.3);
}

/* Эффект блеска для кнопки регистрации */
.btn-register::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(30deg);
    transition: all 0.8s ease;
}

.btn-register:hover::after {
    left: 140%;
}

/* Технологические бейджи */
.tech-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin: 0 3px;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
    border: none;
}

.tech-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Градиенты для технологий */
.bg-gradient-python {
    background: linear-gradient(135deg, #306998 0%, #FFD43B 100%);
    color: white;
}

.bg-gradient-django {
    background: linear-gradient(135deg, #092E20 0%, #0C4B33 100%);
    color: white;
}

.bg-gradient-celery {
    background: linear-gradient(135deg, #378D3B 0%, #4CAF50 100%);
    color: white;
}

.bg-gradient-redis {
    background: linear-gradient(135deg, #A41E11 0%, #D63027 100%);
    color: white;
}

/* Подсказка для длины запроса - ОБНОВЛЕННЫЕ СТИЛИ */
.word-length-hint {
    position: relative;
    display: inline-block;
    cursor: help;
}

.word-length-hint .hint-content {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 15px;
    width: 320px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 1000;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.word-length-hint:hover .hint-content {
    display: block;
    opacity: 1;
}

.hint-example {
    padding: 8px 10px;
    margin: 5px 0;
    border-radius: 6px;
    font-size: 0.85rem;
}

.hint-example.bad {
    background-color: #ffe6e6;
    border-left: 4px solid #dc3545;
}

.hint-example.good {
    background-color: #e6ffe6;
    border-left: 4px solid #28a745;
}

.hint-example small {
    font-size: 0.8rem;
}

.hint-example .fw-bold {
    color: #333;
    font-size: 0.9rem;
}

.hint-example .text-muted {
    color: #666;
    font-size: 0.75rem;
}

/* Анимации */
.sparkle-icon {
    animation: sparkle 2s infinite;
}

@keyframes sparkle {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1; 
    }
    50% { 
        transform: scale(1.1); 
        opacity: 0.8; 
    }
}

@keyframes gentle-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.live-pulse {
    animation: gentle-pulse 2s infinite;
}

/* Формы */
.form-control-lg {
    border-radius: 12px;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}

.form-control-lg:focus {
    border-color: var(--pinterest-red);
    box-shadow: 0 0 0 0.25rem rgba(230, 0, 35, 0.25);
}

/* Футер */
footer {
    border-top: 1px solid #e9ecef;
}

footer .tech-badge {
    font-size: 0.75rem;
    padding: 3px 8px;
}
