/* ===== TEXT TO ASCII PAGE STYLES ===== */

.text-to-ascii-container {
    min-height: calc(100vh - 60px);
    padding: 80px 5% 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ===== PAGE LOGO ===== */
.page-logo-section {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.text-to-ascii-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    line-height: 1.2;
    color: #FFFFFF;
    margin: 0;
    padding: 0;
    white-space: pre;
    user-select: none;
    text-align: center;
}

/* ===== INPUT SECTION ===== */
.input-section {
    background: rgba(20, 20, 20, 0.95);
    border: 2px solid #333;
    border-radius: 4px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    color: #00ff00;
    font-size: 0.9rem;
    font-family: 'Silkscreen', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#input-text {
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #444;
    border-radius: 4px;
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    padding: 0.7rem;
    resize: vertical;
    min-height: 70px;
    transition: border-color 0.2s ease;
}

#input-text:focus {
    outline: none;
    border-color: #00ff00;
}

#input-text::placeholder {
    color: #666;
}

#ascii-font {
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #444;
    border-radius: 4px;
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    padding: 0.6rem;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

#ascii-font:focus {
    outline: none;
    border-color: #00ff00;
}

#ascii-font option {
    background: #000000;
    color: #ffffff;
}

#generate-btn {
    align-self: flex-start;
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
}

/* ===== OUTPUT SECTION ===== */
.output-section {
    background: rgba(20, 20, 20, 0.95);
    border: 2px solid #333;
    border-radius: 4px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.output-header label {
    color: #00ff00;
    font-size: 0.9rem;
    font-family: 'Silkscreen', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.output-controls {
    display: flex;
    gap: 0.8rem;
}

.output-frame {
    background: #000000;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 1.5rem;
    min-height: 300px;
    max-height: 600px;
    overflow: auto;
}

.ascii-output {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    line-height: 1.2;
    color: #ffffff;
    margin: 0;
    white-space: pre;
    user-select: all;
}

.ascii-output.placeholder {
    color: #666;
    font-style: italic;
}

/* ===== BUTTONS ===== */
.control-btn {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid #444;
    background: rgba(40, 40, 40, 0.95);
    color: #ccc;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    font-family: 'Silkscreen', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.control-btn:hover {
    border-color: #666;
    background: rgba(60, 60, 60, 0.95);
}

.control-btn.green {
    background: #006400;
    color: white;
    border-color: #006400;
}

.control-btn.green:hover {
    background: #008000;
    border-color: #008000;
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== FOOTER ===== */
.studio-footer {
    margin-top: 2rem;
    padding: 1.5rem 0 2rem;
    position: relative;
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
    box-sizing: border-box;
}

.studio-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #333;
}

.footer-container {
    max-width: 1200px; /* Ограничиваем контейнер как основной контент */
    margin: 0 auto; /* Центрируем */
    padding: 0 5%; /* Добавляем отступы как у основного контейнера */
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .text-to-ascii-container {
        padding: 70px 1rem 1rem;
        gap: 1.5rem;
    }

    .footer-container {
        padding: 0 1rem; /* Адаптивные отступы */
    }

    .text-to-ascii-logo {
        font-size: 7px;
    }

    .input-section,
    .output-section {
        padding: 1.5rem;
    }

    .output-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .output-controls {
        width: 100%;
        justify-content: flex-start;
    }

    .control-btn {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }

    .ascii-output {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .text-to-ascii-container {
        padding: 60px 0.5rem 0.5rem;
    }

    .footer-container {
        padding: 0 0.5rem; /* Адаптивные отступы */
    }

    .text-to-ascii-logo {
        font-size: 6px;
    }

    .input-section,
    .output-section {
        padding: 1rem;
    }

    .output-frame {
        padding: 1rem;
        min-height: 200px;
    }

    .ascii-output {
        font-size: 9px;
    }

    .output-controls {
        flex-direction: column;
        gap: 0.5rem;
    }

    .control-btn {
        width: 100%;
    }
}