/*
Theme Name: Kadence Child TheDP Game
Template: kadence
Description: Tema hijo de Kadence para TheDP Company Game (incluye el juego TheDP Sniper: Sombra).
Author: TheDP Company
Version: 1.1.0
Text Domain: kadence-child-thedp
*/

/* ---------- Inicio: logo centrado ---------- */
.tdg-logo{display:block!important;margin:0 auto!important}
.tdg-in{display:flex;flex-direction:column;align-items:center}

/* ---------- Páginas de juego y comunidad en modo oscuro ---------- */
body.page-id-32,body.buddypress,body.bp-nouveau{background:#07070a!important}
body.page-id-32 .content-bg,body.buddypress .content-bg,body.buddypress .entry.content-bg{background:transparent!important;box-shadow:none!important}
body.page-id-32 .site-main,body.buddypress .site-main{padding-top:14px}
body.buddypress .entry-content,body.buddypress .content-area{color:#ddd}

/* ---------- BuddyPress: Jugadores / Grupos estilo gamer ---------- */
.buddypress-wrap{color:#ddd}
.buddypress-wrap .main-nav,.buddypress-wrap .bp-navs{background:transparent!important;border:0!important}
.buddypress-wrap .bp-navs li a{color:#fff!important;font-weight:800;text-transform:uppercase;letter-spacing:1px;border-radius:12px!important}
.buddypress-wrap .bp-navs li.selected a,.buddypress-wrap .bp-navs li.current a{background:linear-gradient(#ff4a3a,#c40000)!important;box-shadow:0 4px 0 #6a0000;color:#fff!important}
.buddypress-wrap .bp-navs li .count{background:#ffd23f!important;color:#000!important;border:0!important}
.buddypress-wrap .dir-search input[type=search],.buddypress-wrap .select-wrap,.buddypress-wrap .select-wrap select{background:#140709!important;border:2px solid #4a0a0a!important;color:#fff!important;border-radius:12px!important}
.buddypress-wrap .bp-list{border:0!important;display:grid!important;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:18px;padding:0!important}
.buddypress-wrap .bp-list>li{background:linear-gradient(#22090c,#0d0507)!important;border:2px solid #4a0a0a!important;border-radius:18px!important;padding:20px 14px!important;text-align:center;box-shadow:0 6px 0 #2a0000;transition:.25s;float:none!important;width:auto!important;margin:0!important}
.buddypress-wrap .bp-list>li:hover{transform:translateY(-6px);border-color:#e20303!important;box-shadow:0 6px 0 #6a0000,0 0 24px rgba(226,3,3,.45)}
.buddypress-wrap .bp-list li .item-avatar{float:none!important;width:auto!important;margin:0 auto 10px!important;text-align:center}
.buddypress-wrap .bp-list li .item-avatar img{width:96px!important;height:96px!important;border-radius:50%!important;border:3px solid #e20303;box-shadow:0 0 16px rgba(226,3,3,.6)}
.buddypress-wrap .bp-list li .item{float:none!important;width:auto!important;margin:0!important;padding:0!important}
.buddypress-wrap .bp-list li .list-title,.buddypress-wrap .bp-list li .list-title a{color:#fff!important;font-size:18px!important;font-weight:900;text-align:center!important}
.buddypress-wrap .bp-list li .item-meta,.buddypress-wrap .bp-list li .last-activity{color:#3ddc84!important;text-align:center!important;font-size:12px}
.buddypress-wrap .bp-list li .action,.buddypress-wrap .bp-list li .members-action-buttons{float:none!important;position:static!important;width:auto!important;margin-top:10px!important;text-align:center}
.buddypress-wrap .button,.buddypress-wrap button,.buddypress-wrap input[type=submit],.buddypress-wrap a.button,.buddypress-wrap .generic-button a{background:linear-gradient(#ff4a3a,#c40000)!important;color:#fff!important;border:0!important;border-radius:12px!important;box-shadow:0 4px 0 #6a0000;font-weight:800!important;text-transform:uppercase}
.buddypress-wrap .bp-feedback{background:#140709!important;color:#ddd!important;border-radius:12px}
#buddypress h1,#buddypress h2,.buddypress .entry-title{color:#fff!important}

/* ---------- Registro estilo gamer ---------- */
#buddypress #signup-form,.buddypress-wrap #signup-form{max-width:560px;margin:20px auto;background:linear-gradient(#22090c,#0d0507);border:3px solid #e20303;border-radius:22px;padding:26px 22px;box-shadow:0 8px 0 #5a0000,0 0 40px rgba(226,3,3,.4)}
#signup-form h2,#signup-form legend{color:#ffd23f!important;text-transform:uppercase;font-weight:900;text-align:center}
#signup-form label,#signup-form .description,#signup-form p{color:#ddd!important}
#signup-form input[type=text],#signup-form input[type=email],#signup-form input[type=password],#signup-form textarea,#signup-form select{width:100%!important;background:#140709!important;border:2px solid #4a0a0a!important;color:#fff!important;border-radius:12px!important;padding:12px!important}
#signup-form input:focus{border-color:#e20303!important;outline:0}
#signup-form .submit input,#signup-form #signup_submit{width:100%;font-size:18px!important;padding:16px!important;background:linear-gradient(#7dff5a,#1fae00)!important;box-shadow:0 6px 0 #0d5a00!important;color:#fff!important;border:0!important;border-radius:14px!important;font-weight:900!important}
.buddypress-wrap .register-section,.buddypress-wrap #basic-details-section,.buddypress-wrap #profile-details-section{float:none!important;width:100%!important}

/* ---------- Registro v2 (selectores amplios) ---------- */
body.registration,body.register,body.activation,body.bp-user,body.directory{background:#07070a!important}
body.registration .content-bg,body.register .content-bg,body.activation .content-bg,body.directory .content-bg,body.bp-user .content-bg{background:transparent!important;box-shadow:none!important}
form#signup-form,form#signup_form,form.signup-form{max-width:520px!important;margin:24px auto!important;background:linear-gradient(#22090c,#0d0507)!important;border:3px solid #e20303!important;border-radius:22px!important;padding:28px 22px!important;box-shadow:0 8px 0 #5a0000,0 0 40px rgba(226,3,3,.4)!important;color:#ddd}
form#signup-form:before,form#signup_form:before{content:"🎮 CREA TU CUENTA";display:block;text-align:center;font-size:26px;font-weight:900;color:#ffd23f;text-shadow:0 3px 0 #000;margin-bottom:16px;letter-spacing:1px}
form#signup-form .layout-wrap,form#signup_form .layout-wrap,.register-section,#basic-details-section,#profile-details-section,.editfield{float:none!important;width:100%!important;display:block!important;margin:0!important;padding:0!important}
form#signup-form label,form#signup_form label,form#signup-form legend,form#signup_form legend{color:#fff!important;font-weight:700!important;font-size:14px!important;opacity:1!important;display:block;margin:12px 0 6px!important}
form#signup-form input[type=text],form#signup-form input[type=email],form#signup-form input[type=password],form#signup_form input[type=text],form#signup_form input[type=email],form#signup_form input[type=password]{width:100%!important;max-width:none!important;background:#140709!important;border:2px solid #4a0a0a!important;color:#fff!important;border-radius:12px!important;padding:13px!important;font-size:16px!important}
form#signup-form input:focus,form#signup_form input:focus{border-color:#e20303!important;box-shadow:0 0 12px rgba(226,3,3,.5)!important}
form#signup-form svg,form#signup_form svg,.bp-capslock svg,[class*=caps-lock] svg{width:18px!important;height:18px!important;display:inline-block!important;vertical-align:middle}
.user-pass1-wrap .wp-pwd,.user-pass1-wrap .password-input-wrapper{display:flex!important;gap:8px;align-items:center}
.user-pass1-wrap button.wp-hide-pw{flex:0 0 auto;width:46px;height:46px;border-radius:12px!important}
#pass-strength-result{border-radius:10px!important;margin-top:8px!important;width:100%!important}
.description,.indicator-hint,p.field-visibility-settings-notoggle,.field-visibility-settings-toggle{color:#aaa!important;font-size:12px!important;background:transparent!important}
form#signup-form .submit,form#signup_form .submit{margin-top:18px!important;text-align:center}
form#signup-form .submit input,form#signup_form .submit input,#signup_submit{width:100%!important;font-size:19px!important;padding:16px!important;background:linear-gradient(#7dff5a,#1fae00)!important;box-shadow:0 6px 0 #0d5a00!important;color:#fff!important;border:0!important;border-radius:14px!important;font-weight:900!important;text-shadow:0 2px 0 #0d5a00}
.buddypress-wrap .bp-feedback.info,.bp-feedback.info{max-width:520px;margin:20px auto 0!important;border-radius:14px!important;background:#140709!important;color:#ddd!important;border:1px solid #4a0a0a}

/* ---------- Perfil: pestañas y sub-menús ---------- */
body.buddypress,body.bp-user,body.bp-nouveau{background:#07070a!important}
.buddypress-wrap .bp-navs,.buddypress-wrap .bp-subnavs,.buddypress-wrap .main-navs,.buddypress-wrap .user-subnav,.buddypress-wrap #object-nav,.buddypress-wrap #subnav{background:transparent!important;border:0!important;box-shadow:none!important}
.buddypress-wrap .bp-navs ul{display:flex!important;flex-wrap:wrap;gap:8px;padding:6px 0!important}
.buddypress-wrap .bp-navs li{background:transparent!important;border:0!important;margin:0!important}
.buddypress-wrap .bp-navs li a{display:block;padding:10px 16px!important;background:linear-gradient(#2a0b0e,#14060a)!important;border:2px solid #4a0a0a!important;border-radius:12px!important;color:#fff!important;font-size:13px!important;box-shadow:0 4px 0 #2a0000}
.buddypress-wrap .bp-navs li a:hover{border-color:#e20303!important;color:#ffd23f!important}
.buddypress-wrap .bp-navs li.selected a,.buddypress-wrap .bp-navs li.current a{background:linear-gradient(#ff4a3a,#c40000)!important;border-color:#ff4a3a!important;box-shadow:0 4px 0 #6a0000!important}
#item-header,.buddypress-wrap #item-header,#item-header-content{background:linear-gradient(120deg,#2a0000,#07070a)!important;border:2px solid #4a0a0a;border-radius:18px;padding:18px!important;color:#fff!important}
#item-header h2,#item-header .user-nicename,#item-header .activity{color:#fff!important}
#item-header-avatar img{border-radius:50%!important;border:3px solid #e20303;box-shadow:0 0 18px rgba(226,3,3,.6)}
.buddypress-wrap #item-body,.buddypress-wrap .item-body{color:#ddd}
.buddypress-wrap .profile table,.buddypress-wrap table.profile-fields{background:#140709!important;border-radius:12px;color:#ddd}
.buddypress-wrap table.profile-fields tr td{border-color:#2a0a0a!important;background:transparent!important;color:#ddd!important}

/* ---------- v3: fondo oscuro completo en comunidad y registro ---------- */
body.buddypress #wrapper,body.buddypress .site,body.buddypress #inner-wrap,body.buddypress .content-container,body.buddypress .site-container,body.buddypress #primary,body.buddypress .entry,body.buddypress .site-footer,body.buddypress .site-footer-wrap,body.buddypress .site-middle-footer-wrap,body.buddypress .site-bottom-footer-wrap{background:#07070a!important}
body.buddypress .site-footer,body.buddypress .site-footer *{color:#aaa}
body.buddypress .content-container{padding:20px 16px 40px!important}
body.buddypress .entry-content{max-width:1150px;margin:0 auto}
body.directory.members .entry-content:before{content:"👥 JUGADORES";display:block;text-align:center;font-size:clamp(26px,5vw,40px);font-weight:900;color:#fff;text-shadow:0 0 14px #e20303;margin:10px 0 18px;letter-spacing:2px}
body.directory.groups .entry-content:before{content:"🛡️ GRUPOS / CLANES";display:block;text-align:center;font-size:clamp(26px,5vw,40px);font-weight:900;color:#fff;text-shadow:0 0 14px #e20303;margin:10px 0 18px;letter-spacing:2px}
.buddypress-wrap .bp-list:before,.buddypress-wrap .bp-list:after{display:none!important;content:none!important}
.buddypress-wrap .bp-list li .list-wrap{display:block!important;width:100%!important}
.buddypress-wrap .bp-list li .item-block,.buddypress-wrap .bp-list li .item{width:100%!important;max-width:none!important;float:none!important;text-align:center!important}
.buddypress-wrap .bp-list li .list-title{word-break:normal!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.buddypress-wrap .subnav-filters{display:flex!important;flex-wrap:wrap;gap:10px;justify-content:space-between;align-items:center;margin:10px 0 18px!important}
.buddypress-wrap .subnav-filters>*{float:none!important;margin:0!important}
.buddypress-wrap .dir-search form{display:flex;gap:6px}
.buddypress-wrap .dir-search button{background:linear-gradient(#ff4a3a,#c40000)!important;border:0!important;border-radius:12px!important;color:#fff!important}
.buddypress-wrap .pag-count,.buddypress-wrap .bp-pagination{color:#888!important}
.user-pass1-wrap .wp-pwd{display:block!important}
.user-pass1-wrap .password-input-wrapper{display:flex!important;gap:8px;align-items:center;width:100%}
.user-pass1-wrap .password-input-wrapper input{flex:1 1 auto;min-width:0}
#pass-strength-result{display:block!important;text-align:center;font-weight:800}
.bp-capslock,[class*=caps-lock]{display:block!important;font-size:12px!important;color:#ffd23f!important;margin:6px 0!important}
.pw-weak label{color:#ddd!important;font-size:13px}
body.buddypress .bp-feedback .bp-icon{background:#e20303!important}
/* Cabecera siempre blanca como thedpcompany.com */
#masthead,#masthead .site-container,#masthead .site-header-row-container-inner,#masthead .site-main-header-wrap,#masthead .site-header-inner-wrap{background:#fff!important}
#masthead .site-container{max-width:none}
html{margin-top:0!important}
/* Página de chat */
.thedp-chat-note{max-width:900px;margin:0 auto 14px;background:#140709;border:2px solid #4a0a0a;border-left:6px solid #ffd23f;border-radius:12px;padding:12px 16px;color:#ddd;font-size:14px}

/* ---------- Chat (Better Messages) colores TheDP ---------- */
.bp-messages-wrap{--main-bm-color:226,3,3!important}
