/* ============================================
   AiTerm — Mini Window Showcase Styles
   ============================================ */

.mini-mockup-scene {
    position: relative;
    width: 500px;
    height: 400px;
    transform: rotateY(-8deg) rotateX(4deg);
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.mini-mockup-scene:hover {
    transform: rotateY(0deg) rotateX(0deg) translateY(-5px);
}

/* Стили обычного текста на веб-странице (без карточки) */
.browser-text-container {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 460px;
    padding: 20px;
    border: 1px dashed rgba(0,0,0,0.15); /* Минимальная обводка для вида рабочей области */
    border-radius: 8px;
    transform: translateZ(0);
    background: transparent;
}

.browser-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
    font-family: 'Inter', sans-serif;
}

.browser-text {
    font-size: 18px;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 15px 0;
    font-family: 'Inter', sans-serif;
}

/* Дизайн реального системного выделения текста */
#mini-highlight {
    transition: background-color 0.15s ease, color 0.15s ease;
    cursor: text;
}

/* Увеличенное окно перевода */
.aiterm-floating-window {
    position: absolute;
    top: 150px;
    left: 30px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 20px;
    width: 440px;
    box-shadow: 0 20px 50px rgba(74, 144, 226, 0.25), 0 8px 20px rgba(0,0,0,0.08);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #2d3348;
    box-sizing: border-box;
    transform: translateZ(60px) translateY(10px) scale(0.95);
    opacity: 0;
    pointer-events: none;
}

.aiterm-header {
    text-align: center;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 18px;
    letter-spacing: 1.5px;
}

.aiterm-title-ai {
    background: linear-gradient(135deg, #4a90e2, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.aiterm-title-term {
    color: #8b90a0;
}

.aiterm-texts-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.aiterm-text-box {
    background: #f0f2f7;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    padding: 16px;
    flex: 1;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    box-sizing: border-box;
    width: 42%;
    color: #3d4260;
}

.aiterm-middle-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40px;
    flex-shrink: 0;
}

.aiterm-arrow {
    background: linear-gradient(135deg, #4a90e2, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.aiterm-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.aiterm-lang-tag {
    background: #f0f2f7;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 13px;
    color: #6b7189;
    text-align: center;
    flex: 1;
    font-weight: 700;
    text-transform: uppercase;
}

.aiterm-translate-btn {
    background: #f0f2f7;
    border: 1.5px solid transparent;
    border-radius: 24px;
    padding: 10px 24px;
    font-size: 14px;
    color: #3d4260;
    font-weight: 700;
    flex: 1.3;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Стили для подсказок внизу мини-окна */
.aiterm-save-hint,
.aiterm-disable-hint {
    font-size: 13px; /* Единый размер для обеих строк */
    color: #8b90a0;
    text-align: center;
    line-height: 1.4;
    font-style: normal;
}

.aiterm-save-hint {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
    margin-bottom: 6px;
}

.aiterm-disable-hint {
    margin-top: 0;
}

/* Cursor Animation Setup */
#mini-cursor {
    position: absolute;
    top: 0; left: 0;
    width: 32px; height: 32px;
    z-index: 1000;
    transform: translateZ(90px) translate(50px, 350px);
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
    pointer-events: none;
}

/* Тремор-анимация стрелки */
@keyframes aitermTremble {
    0% { transform: translate(0, 0); }
    20% { transform: translate(-1.5px, 0.5px); }
    40% { transform: translate(1.5px, -0.5px); }
    60% { transform: translate(-0.5px, -1px); }
    80% { transform: translate(1px, 0.5px); }
    100% { transform: translate(0, 0); }
}

.aiterm-tremble {
    animation: aitermTremble 0.3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    display: inline-block;
}