/* Estilos para el Generador de Nombres de Gatos */

/* Contenedor principal */
.gdn-container {
    background: var(--oe-primary-color, #13aff0);
    border-radius: 15px;
    padding: 30px;
    max-width: 600px;
    margin: 30px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    text-align: center;
    font-family: inherit;
}

/* Título */
.gdn-titulo {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 25px 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

/* Selector de sexo */
.gdn-sexo-selector {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 25px;
}

.gdn-sexo-option {
    flex: 1;
    max-width: 150px;
    cursor: pointer;
}

.gdn-sexo-option input[type="radio"] {
    display: none;
}

.gdn-sexo-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 15px 10px;
    transition: all 0.3s ease;
}

.gdn-sexo-option:hover .gdn-sexo-label {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.gdn-sexo-option input[type="radio"]:checked + .gdn-sexo-label {
    background: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gdn-sexo-icon {
    font-size: 32px;
    line-height: 1;
}

.gdn-sexo-texto {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    transition: color 0.3s ease;
}

.gdn-sexo-option input[type="radio"]:checked + .gdn-sexo-label .gdn-sexo-texto {
    color: var(--oe-primary-color, #13aff0);
}

/* Resultado del nombre */
.gdn-resultado {
    background: #ffffff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Display del nombre único */
.gdn-nombre-display {
    font-size: 32px;
    font-weight: 700;
    color: var(--oe-primary-color, #13aff0);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    animation: aparecer 0.5s ease-in-out;
}

/* Lista de nombres */
.gdn-lista-nombres {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.gdn-nombre-item {
    font-size: 20px;
    font-weight: 600;
    color: var(--oe-text-color, #333333);
    padding: 12px;
    margin: 8px 0;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--oe-primary-color, #13aff0);
    transition: all 0.3s ease;
    animation: deslizar 0.5s ease-in-out;
}

.gdn-nombre-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
    border-left-color: var(--oe-hover-color, var(--oe-primary-color, #13aff0));
}

/* Botón de generar */
.gdn-boton-generar {
    background: var(--oe-primary-color, #13aff0);
    color: #ffffff;
    border: none;
    padding: 15px 35px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(19, 175, 240, 0.3);
    outline: none;
    margin-right: 10px;
}

.gdn-boton-generar:hover {
    background: var(--oe-hover-color, var(--oe-primary-color, #0d8ec7));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(19, 175, 240, 0.4);
}

.gdn-boton-generar:active {
    transform: translateY(0);
}

.gdn-boton-generar:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Botón usar nombre */
.gdn-boton-usar {
    background: #00a32a;
    color: #ffffff;
    border: none;
    padding: 15px 35px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 163, 42, 0.3);
    outline: none;
}

.gdn-boton-usar:hover {
    background: #008a24;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 163, 42, 0.4);
}

.gdn-boton-usar:active {
    transform: translateY(0);
}

.gdn-boton-usar:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Contenedor de acciones */
.gdn-acciones {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Animaciones */
@keyframes aparecer {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes deslizar {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .gdn-container {
        padding: 20px;
        margin: 20px 15px;
    }
    
    .gdn-titulo {
        font-size: 24px;
    }
    
    .gdn-sexo-selector {
        flex-direction: column;
        gap: 10px;
    }
    
    .gdn-sexo-option {
        max-width: 100%;
    }
    
    .gdn-sexo-label {
        flex-direction: row;
        justify-content: center;
        padding: 12px;
    }
    
    .gdn-sexo-icon {
        font-size: 24px;
    }
    
    .gdn-nombre-display {
        font-size: 26px;
    }
    
    .gdn-nombre-item {
        font-size: 18px;
    }
    
    .gdn-boton-generar {
        padding: 12px 28px;
        font-size: 16px;
    }
}

/* Efecto de carga */
.gdn-cargando .gdn-nombre-display,
.gdn-cargando .gdn-lista-nombres {
    opacity: 0.5;
    animation: pulsar 1s infinite;
}

@keyframes pulsar {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

/* Estilos para el shortcode Top Nombres */
.gdn-top-container {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px;
    max-width: 600px;
    margin: 30px auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.gdn-top-titulo {
    color: var(--gdn-primary, var(--oe-primary-color, #13aff0));
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 25px 0;
    text-align: center;
    border-bottom: 3px solid var(--gdn-primary, var(--oe-primary-color, #13aff0));
    padding-bottom: 15px;
}

.gdn-top-lista {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: top-counter;
}

.gdn-top-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    margin: 10px 0;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 5px solid var(--gdn-primary, var(--oe-primary-color, #13aff0));
    transition: all 0.3s ease;
    counter-increment: top-counter;
}

.gdn-top-item:before {
    content: counter(top-counter);
    background: var(--gdn-primary, var(--oe-primary-color, #13aff0));
    color: #ffffff;
    font-weight: 700;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.gdn-top-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left-color: var(--gdn-hover, var(--oe-hover-color, #0d8ec7));
}

.gdn-top-item:hover:before {
    background: var(--gdn-hover, var(--oe-hover-color, #0d8ec7));
}

.gdn-top-nombre {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    color: var(--gdn-text, var(--oe-text-color, #333333));
}

.gdn-top-count {
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    background: #ffffff;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.gdn-top-vacio {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 10px;
}

/* Top responsive */
@media (max-width: 768px) {
    .gdn-top-container {
        padding: 20px;
        margin: 20px 15px;
    }
    
    .gdn-top-titulo {
        font-size: 22px;
    }
    
    .gdn-top-item {
        padding: 12px 15px;
    }
    
    .gdn-top-nombre {
        font-size: 16px;
    }
    
    .gdn-top-count {
        font-size: 12px;
    }
}
