/* =========================================
   shared.css — Estilos comunes de todas las tools
   Importar junto a ../../assets/index.css
   ========================================= */

/* Botón volver */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--card-bg);
    border: 2px solid var(--rosa-claro);
    color: var(--texto);
    text-decoration: none;
    padding: 0.45rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-top: 0.6rem;
    font-family: inherit;
}
.back-btn:hover {
    background: var(--azul-hover);
    transform: translateX(-4px);
}

/* Contenedor card genérico */
.tool-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    padding: 2.5rem;
    border-radius: 24px;
    border: 2px solid var(--rosa-claro);
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    max-width: 700px;
    margin: 0 auto;
    transition: background 0.3s, border-color 0.3s;
}

/* Input estándar */
.tool-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--rosa);
    border-radius: 12px;
    background: transparent;
    color: var(--texto);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.3s;
}
.tool-input:focus { border-color: var(--azul-pastel); }

/* Botón primario */
.btn-primary {
    background: var(--rosa);
    color: var(--texto);
    border: none;
    padding: 0.8rem 1.6rem;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background: var(--azul-hover);
    transform: scale(1.04);
}

/* Botón outline */
.btn-outline {
    background: transparent;
    border: 2px solid var(--rosa-claro);
    color: var(--texto);
    padding: 0.8rem 1.6rem;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-outline:hover {
    background: rgba(0,0,0,0.05);
    transform: scale(1.04);
}
[data-theme="dark"] .btn-outline:hover { background: rgba(255,255,255,0.07); }

/* Fila de acciones */
.action-row {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.4rem;
}

/* Etiqueta de sección */
.section-label {
    font-weight: bold;
    color: var(--rosa);
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.95rem;
}

/* Resultado de texto copiable */
.result-box {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.2rem;
    background: rgba(0,0,0,0.04);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    border: 2px solid var(--rosa-claro);
}
[data-theme="dark"] .result-box { background: rgba(255,255,255,0.05); }

.result-box input[type="text"] {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--texto);
    font-family: monospace;
    font-size: 1rem;
    outline: none;
}
.copy-icon-btn {
    background: transparent;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.copy-icon-btn:hover { transform: scale(1.2); }

/* Chip / tag */
.chip {
    display: inline-block;
    background: var(--rosa-claro);
    color: var(--texto);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    margin: 0.2rem;
}
[data-theme="dark"] .chip { background: var(--azul-pastel); color: #fff; }
