/*---------------------*/
/* DGX Twitch Widget CSS Optimizado para Elementor */
/*---------------------*/

/* --- CONTENEDOR PRINCIPAL --- */
.dgx-twitch-widget {
    background: linear-gradient(145deg, #0e0e10, #18181b);
    border: 1px solid #9146FF;
    border-radius: 10px;
    padding: 10px;
    color: #efeff1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
    max-width: 100%;
    margin-bottom: 0; /* separación entre bloques 0px */
    display: flex;
    flex-direction: column;
}

/* Estado online */
.dgx-twitch-widget.online {
    border-color: #0f7810;
    box-shadow: 0px 0px 10px rgba(15,118,17);
}

/* --- TARJETA HORIZONTAL --- */
.dgx-twitch-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0; /* separación entre bloques 0px */
}

/* --- AVATAR IZQUIERDA --- */
.dgx-twitch-left {
    flex: 0 0 80px; /* ancho fijo para avatar */
}
.dgx-twitch-avatar-bg {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    border: 3px solid #9146FF;
    box-shadow: 0 0 10px rgba(145,70,255,0.6);
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dgx-twitch-avatar-bg:hover {
    transform: scale(1.05);
    box-shadow: 0 0 18px rgba(145,70,255,0.9);
}

/* --- CENTRO: NOMBRE + VIEWERS --- */
.dgx-twitch-center {
    flex: 1;
    padding: 0 10px;
}
.dgx-twitch-center h3 {
    margin: 0;
    font-size: 1.2rem;
}
.dgx-twitch-center h3 a {
    color: #fff;
    text-decoration: none;
}
.dgx-twitch-center h3 a:hover {
    color: #9146FF;
}
.dgx-twitch-center p {
    margin: 4px 0 0;
    color: #ccc;
    font-size: 12px;
}

/* --- DERECHA: PORTADA JUEGO / OFFLINE --- */
.dgx-twitch-right {
    flex: 0 0 33%; /* ocupa un tercio de la tarjeta */
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
}
.dgx-twitch-offline-bg {
    width: 100px;
    height: 80px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.dgx-twitch-offline {
	font-family: 'Chakra Petch' !important;
    font-size: 40px;
    font-weight: bold;
    transform: translateY(35%);
    background: linear-gradient(to bottom, rgba(255,255,255,0.25) 20%, transparent 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    pointer-events: none;
	padding-right: 20px !important;
}
.dgx-twitch-game-cover-bg {
    width: 100px;
    height: 80px;
    border-radius: 10px;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    transition: transform 0.2s ease;
}
.dgx-twitch-right a:hover .dgx-twitch-game-cover-bg {
    transform: scale(1.03);
}

/* --- FILA INFERIOR: NOMBRE JUEGO --- */
.dgx-twitch-game-row {
    margin-top: 5px;
    text-align: right;
    width: 100%;
    height: 20px;
}
.dgx-twitch-game-name a {
    color: #9146FF;
    text-decoration: none;
    font-size: 14px;
}
.dgx-twitch-game-name a:hover {
    text-decoration: underline;
}

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
    .dgx-twitch-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .dgx-twitch-left, .dgx-twitch-right {
        flex: 0 0 auto;
    }
    .dgx-twitch-avatar-bg {
        width: 70px;
        height: 70px;
    }
    .dgx-twitch-center {
        padding: 10px 0;
    }
    .dgx-twitch-right {
        margin-top: 10px;
        justify-content: center;
    }
    .dgx-twitch-game-row {
        text-align: center;
    }
}




/* --- ADMIN PAGE --- */
#dgx-twitch-stream .wrap {
    background: #f4f4f4;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}
#dgx-twitch-stream .wrap h1 {
    color: #9146FF;
    font-size: 28px;
    margin-bottom: 25px;
    font-weight: 700;
}
#dgx-twitch-stream form {
    background: #fff;
    padding: 20px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    max-width: 600px;
}
#dgx-twitch-stream .form-table {
    width: 100%;
}
#dgx-twitch-stream .form-table th {
    font-weight: 600;
    color: #333;
    padding-bottom: 10px;
}
#dgx-twitch-stream .form-table td input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}
#dgx-twitch-stream .form-table td input[type="text"]:focus {
    border-color: #9146FF;
    box-shadow: 0 0 6px rgba(145,70,255,0.3);
    outline: none;
}
#dgx-twitch-stream .submit input {
    background: #9146FF;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
#dgx-twitch-stream .submit input:hover {
    background: #7a36d9;
    transform: translateY(-1px);
}
#dgx-twitch-stream .updated.notice {
    background-color: #e6f0ff;
    border-left: 4px solid #0073aa;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-weight: 600;
    color: #0073aa;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Responsive admin */
@media (max-width: 650px) {
    #dgx-twitch-stream .wrap {
        padding: 15px;
    }
    #dgx-twitch-stream form {
        padding: 15px;
    }
    #dgx-twitch-stream .form-table th,
    #dgx-twitch-stream .form-table td input[type="text"] {
        display: block;
        width: 100%;
    }
}

