/* PATH: css/welcome-screen.css */

.welcome-screen {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px 32px !important;
    gap: 24px;
    overflow: hidden;
}

.welcome-screen__header {
    flex-shrink: 0;
}

.welcome-screen__title {
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.welcome-screen__main {
    display: flex;
    gap: 32px;
    flex-grow: 1;
    min-height: 0;
}

.welcome-screen__text {
    width: 320px;
    flex-shrink: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.welcome-screen__text p {
    margin: 0;
}

.welcome-screen__visual {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.color-circles-placeholder {
    width: 100%;
    height: 100%;
	position: relative;
}

.welcome-screen__actions {
    flex-shrink: 0;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
}

.action-button {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 110px;
    color: var(--text-primary);
}

.action-button:hover {
    background: var(--border-color);
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.action-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    background: var(--secondary-bg);
}

.action-button__icon {
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.action-button__preview {
    width: 100%;
    height: 60px;
    margin-bottom: 8px;
    border-radius: 3px;
    object-fit: cover;
    background-color: var(--primary-bg);
}

.action-button__preview.placeholder {
     border: 1px solid var(--border-color);
}

.action-button__label {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
}

.action-button__feedback {
    position: absolute;
    bottom: -20px;
    font-size: 10px;
    color: var(--warning);
    transition: opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.action-button--fail {
    background-color: rgba(220, 53, 69, 0.2);
    border-color: var(--danger);
}

.svg-container {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.svgcp-picker {
    position: absolute;
    opacity: 0;
    border: none;
    padding: 0;
    min-width: 10px;
    min-height: 10px;
}

/* --- INICIO: ESTILOS DE ESTADO PARA LA CARA POSTERIOR --- */

/* Estilo para la alerta de Tricontrast (oculta por defecto) */
.tricontrast-alert {
	display: none;
	align-items: center;
	padding: 0 8px;
	color: var(--danger);
	font-size: 14px;
}

/* Botón de reseteo */
.tricontrast-reset-button {
	position: absolute;
	bottom: 12px;
	right: 12px;
	z-index: 10;
}

/* Ocultar el botón por defecto con alta especificidad */
.welcome-screen__visual > button.tricontrast-reset-button {
	display: none; 
}

/* Estado de bloqueo cuando los colores no tienen contraste válido */
.window-face--back.is-out-of-range .welcome-screen__actions {
	opacity: 0.4;
	pointer-events: none;
	filter: grayscale(80%);
}

/* .window-face--back.is-out-of-range .window__actions [data-action="toggleFlip"] {
	display: none;
} */

.window-face--back.is-out-of-range .window__actions .tricontrast-alert {
	display: flex;
}

.window-face--back.is-out-of-range .tricontrast-reset-button {
	display: flex;
}

/* --- FIN: ESTILOS DE ESTADO --- */