/* Translation page specific styles */

.translation-container {
    background: var(--primary-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    flex: 1;
}

.language-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.language-select {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    font-weight: 500;
    min-width: 140px;
    color: var(--white);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.language-select:hover {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
}

.language-select:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
}

.swap-button {
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-family: "AT Name Mono", "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Courier New", monospace;
    font-size: 1rem;
    font-weight: 400;
}

.swap-button:hover {
    background: #0052cc;
}

.swap-button:active {
    background: #0047b3;
}

.translation-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 400px;
}

.text-area {
    padding: 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all 0.2s ease;
}

.text-area:last-child {
    border-right: none;
}

.text-area:hover {
    background: rgba(255, 255, 255, 0.02);
}

.text-label {
    font-family: "AT Name Mono", "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Courier New", monospace;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--white);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.text-label::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.7;
}

.text-input {
    width: 100%;
    height: 320px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 1rem;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.6;
    resize: none;
    outline: none;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.text-input:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.text-input:focus {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
}

.text-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.text-output {
    background: rgba(255, 255, 255, 0.03);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.1);
}

.translate-button {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-family: "AT Name Mono", "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Courier New", monospace;
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.translate-button:hover {
    background: #0052cc;
}

.translate-button:active {
    background: #0047b3;
}

.translate-button:disabled {
    background: rgba(255, 255, 255, 0.2);
    cursor: not-allowed;
    opacity: 0.6;
}

.loading {
    display: none;
    text-align: center;
    padding: 1.5rem;
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.loading canvas {
    width: 50px !important;
    height: 50px !important;
}

.loading.visible {
    display: flex;
}

.error {
    background: rgba(220, 53, 69, 0.1);
    color: #ff6b6b;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    display: none;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.error.visible {
    display: block;
}

.api-section {
    margin-top: 2rem;
    background: var(--primary-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 2rem;
    position: relative;
}

.api-title {
    font-family: "AT Name Mono", "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Courier New", monospace;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.api-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.api-example {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 1.5rem;
    margin-top: 1rem;
    font-family: "AT Name Mono", "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Courier New", monospace;
    font-size: 0.8rem;
    line-height: 1.6;
    overflow-x: auto;
    color: var(--white);
}

@media (max-width: 768px) {
    .translation-area {
        grid-template-columns: 1fr;
    }

    .text-area {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .text-area:last-child {
        border-bottom: none;
    }
}
