/* --- ESTILOS ESPECÍFICOS: SETTINGS --- */

/* Nota: Los colores --text-dark y --gold-treasure deben estar definidos en common.css o en el head del documento. */

/* Estilo de la Carta de Ajustes */
.settings-card-wrap {
    position: relative;
    width: 100%;
    max-width: 450px; 
    margin: 40px auto 35px;
    
    /* Estilo de Carta (Hardcoded, replicando home.css) */
    background-image: url('../img/card.png');
    background-repeat: no-repeat;
    background-size: 100% 100%; 
    background-position: center;
    
    padding: 30px;
    min-height: 320px; 
    
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    
    filter: drop-shadow(5px 10px 10px rgba(0,0,0,0.6));
}

/* Título de la Carta (Replicado de home.css) */
.settings-card-wrap .card-title {
    font-family: 'Pirata One', cursive;
    font-size: 2rem; 
    color: var(--gold-treasure); /* Asumo que es #ffb300 */
    text-shadow: 
        2px 2px 0px var(--text-dark, #3e2723), 
        -1px -1px 0px var(--text-dark, #3e2723),
        1px -1px 0px var(--text-dark, #3e2723),
        -1px 1px 0px var(--text-dark, #3e2723),
        1px 1px 0px var(--text-dark, #3e2723);
    margin-bottom: 20px;
    line-height: 1;
    text-align: center;
}

/* Descripción de la Carta (Replicado de home.css) */
.settings-card-wrap .card-desc {
    font-size: 0.9rem; 
    color: #ffca28; /* Dorado/Amarillo para el texto descriptivo */
    font-weight: 900; 
    text-shadow: 1.5px 1.5px 0px #211512;
    line-height: 1.2;
    margin-bottom: 30px;
}

/* Contenedor del formulario */
.form-settings-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: auto; 
    padding-bottom: 10px; /* Espacio para el botón */
}

.form-settings-wrap.form-align-right {
    align-items: center; 
}

/* Etiqueta del selector */
.select-label {
    font-family: 'Pirata One', cursive;
    color: #ffca28;
    text-shadow: 1.5px 1.5px 0px #211512;    font-size: 1.4rem;
    margin-bottom: 10px;
}

/* ESTILOS REPLICADOS DE .pirate-select */
.pirate-select {
    background-color: #fff0d0; 
    background-image: radial-gradient(ellipse at center, #fffaf0 10%, #f2e2c2 100%);
    box-shadow: inset 0 0 6px rgba(93, 64, 55, 0.3);
    border: 3px ridge #8d6e63;
    border-radius: 20px;
    color: #3e2723;
    font-family: 'Pirata One', cursive;
    font-size: 1.2rem;
    font-weight: normal;
    padding: 8px 10px; /* Ajustado el padding para select */
    text-align: center;
    width: 90%;
    cursor: pointer;
    margin-bottom: 0; 
    outline: none;
    transition: all 0.3s ease;
    /* Estilos para customizar la apariencia del select */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: 
        radial-gradient(ellipse at center, #fffaf0 10%, #f2e2c2 100%),
        url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%233e2723%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat, no-repeat;
    background-position: center, right .7em top 50%;
    background-size: cover, .65em auto;
}

.pirate-select:hover {
    background-color: #fffaf0;
    border-color: #a1887f;
}

.pirate-select:focus, .pirate-select:focus-visible {
    outline: none !important;
    border-color: var(--gold-treasure) !important;
    box-shadow: 0 0 10px rgba(255, 179, 0, 0.6) !important;
}

/* NUEVO: Botón de texto papiro/guardar */
.btn-save-text {
    /* Deshacemos el posicionamiento absoluto del sello */
    position: static; 
    align-self: flex-end; /* Alinea el botón a la derecha dentro del contenedor flex */
    margin-top: 25px;
    margin-right: 5%; /* Margen para compensar el ancho del select (90%) */

    /* Estilo Papiro/Marrón */
    background: #fff8e1; /* Fondo PAPIRO */
    color: var(--text-dark, #3e2723); /* Texto Marrón Oscuro */
    border: 3px solid #8d6e63; /* Borde de madera/tierra */
    padding: 10px 25px;
    font-family: 'Pirata One', cursive;
    font-size: 1.4rem;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 0 #6d4c41;
    transition: all 0.2s ease;
}

.btn-save-text:hover {
    box-shadow: 0 6px 0 #6d4c41;
}

.btn-save-text:active {
    box-shadow: none;
}


/* --- Elementos de Sello Antiguos (Ocultados) --- */
.btn-seal-submit {
    display: none; /* Ocultamos el botón de imagen que se reemplazó */
}

.back-container{
    margin-bottom: 30px;
}

@media (max-width: 600px) {
    .settings-card-wrap {
        padding: 30px 20px 30px 20px;
        min-height: 300px;
    }
    .pirate-select {
        width: 100%;
        font-size: 1.1rem;
    }
    .form-settings-wrap.form-align-right {
        align-items: center; /* En móvil, volvemos a centrar los elementos */
    }
    .btn-save-text {
        align-self: self-end;
        margin-right: 0;
        font-size: 1.2rem;
    }
}