/* Дополнительные улучшения поверх основного CSS */
.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.text-section {
    background: var(--bg-card);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px var(--shadow);
    line-height: 1.8;
    position: relative; /* Needed for button positioning */
}

.translate-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.translate-btn:hover {
    background: var(--bg-chat-avatar);
    color: var(--text-primary);
    transform: scale(1.02);
}

.exercise-section {
    background: var(--bg-chat-dark);
    padding: 35px;
    margin: 40px 0;
    border-radius: 20px;
    border-left: 5px solid var(--accent-green);
}

h1 {
    color: var(--text-primary);
    text-align: center;
    font-size: 2.8em;
    margin-bottom: 40px;
    text-shadow: 0 4px 10px var(--shadow);
    background: linear-gradient(to right, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    padding-left: 30px;
}
h2::before {
    content: '⛏️';
    font-size: 1.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(119, 74, 255, 0.15);
    border-radius: 8px;
    padding: 4px;
    transition: transform 0.2s ease, background 0.2s ease;
}
h2:nth-of-type(2)::before { content: '🌍'; }
h2:nth-of-type(3)::before { content: '🎮'; }
h2:nth-of-type(4)::before { content: '🎓'; }
h2:nth-of-type(5)::before { content: '🆕'; }
h2:hover::before {
    transform: scale(1.1) rotate(5deg); /* Reduced transformation */
    background: rgba(74, 158, 255, 0.2); /* Reduced intensity */
}

.enhanced-text {
    color: #d0d7e3; /* Slightly whiter text */
    line-height: 1.9;
    font-size: 1.05rem;
    position: relative;
    padding: 10px 0;
    font-weight: 500; /* Slightly bolder */
    transition: color 0.2s ease;
}

p {
    color: var(--text-secondary);
    line-height: 1.9;
    font-size: 1.05rem;
    position: relative;
}

.question {
    margin-bottom: 25px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, background 0.2s ease;
}

.question:hover {
    transform: scale(1.01);
    background: var(--bg-card-hover);
}

input[type="text"], textarea {
    width: 100%;
    padding: 14px;
    margin: 10px 0;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.2s ease;
}

input[type="text"]:focus, textarea:focus {
    border-color: var(--accent-blue);
    outline: none;
    box-shadow: 0 0 0 4px rgba(74, 158, 255, 0.1);
}

.vocabulary {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.word-card {
    background: var(--bg-chat-sidebar);
    padding: 20px;
    border-radius: 12px;
    border-bottom: 3px solid var(--accent-purple);
    transition: all 0.3s;
}
.word-card:hover {
    background: var(--bg-chat-content);
    transform: scale(1.03);
}

.word {
    font-weight: 800;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.check-btn {
    background: var(--accent-green);
    color: #000;
    font-weight: bold;
    border: none;
    padding: 15px 40px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    width: 100%;
    transition: all 0.2s ease;
    margin-top: 20px;
}

.check-btn:hover {
    background: #27ae60;
    filter: brightness(1.1);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.answer-section {
    display: none;
    margin-top: 30px;
    padding: 25px;
    background: #1e2a1e; /* Темно-зеленый оттенок для ответов */
    border-radius: 12px;
    border: 1px dashed var(--accent-green);
    animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.highlight {
    background: rgba(74, 158, 255, 0.2);
    border-radius: 4px;
    padding: 2px 4px;
    border-bottom: 2px solid var(--accent-blue);
}