/* Estilos específicos para la herramienta ASCII */

.ascii-tool-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
    justify-content: center;
}

.card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: 0 8px 25px var(--shadow-color);
    flex: 1;
    min-width: 300px;
    max-width: 580px;
    backdrop-filter: blur(10px); /* Efecto Glass */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px var(--shadow-color);
}

.card h2 {
    margin-top: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 25px;
    position: relative;
}
.card h2::after {
    content: '';
    position: absolute;
    bottom: -1px; /* Alinear con el borde */
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Input de Archivo */
.file-label {
    display: block;
    padding: 25px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-md);
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: var(--text-muted);
}
.file-label:hover {
    background-color: rgba(0, 0, 0, 0.3);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
}
#file-name {
    display: block;
    margin-top: 5px;
    font-weight: 500;
    color: var(--text-color);
}

.image-preview {
    width: 100%;
    max-height: 250px;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: var(--bg-color);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    padding: 10px;
}
.image-preview img {
    max-width: 100%;
    max-height: 230px;
    border-radius: 4px;
    object-fit: contain;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Botones */
.action-button {
    font-family: var(--font-family);
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--gradient-button);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.action-button:hover:not(:disabled) {
    background: var(--gradient-button-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.action-button:disabled {
    background: #555;
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Resultado ASCII */
.output-container {
    background-color: #0d0d0d;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 15px;
    min-height: 320px;
    max-height: 450px;
    overflow: auto;
    margin-bottom: 25px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

pre#asciiOutput {
    margin: 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    line-height: 1.2;
    color: #00ff00; /* Verde neon */
    white-space: pre;
    overflow-wrap: normal;
    word-break: normal;
    background-color: transparent;
}

.copy-btn {
    background: linear-gradient(45deg, #28a745, #218838);
}
.copy-btn:hover:not(:disabled) {
    background: linear-gradient(45deg, #218838, #1e7e34);
}

/* Responsividad Específica */
@media (max-width: 768px) {
    .ascii-tool-container {
        flex-direction: column;
        gap: 20px;
    }
    .card {
        padding: 20px;
        min-width: unset;
        max-width: 100%;
    }
    .card h2 {
        font-size: 1.5rem;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }
    .file-label {
        padding: 18px;
        font-size: 1rem;
    }
    .action-button {
        padding: 12px;
        font-size: 1rem;
    }
    pre#asciiOutput {
        font-size: 0.65rem;
    }
}