/* Profile page: Split-style hero + cards, using StrideCraft colors. */
#profile-header.stride-profile-hero{position:relative;overflow:hidden;margin:0 0 26px;padding:0;border:0;border-bottom:1px solid rgba(199,131,255,.17);border-radius:0;background:#0a090e;box-shadow:none;text-align:left}
.stride-profile-hero-bg{position:absolute;inset:0;background-size:cover;background-position:center;filter:saturate(1.05)}
.stride-profile-hero-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(9,8,13,.55),rgba(9,8,13,.78) 70%,#0a090e 100%),linear-gradient(90deg,rgba(9,8,13,.55),transparent 55%,rgba(9,8,13,.45))}
.stride-profile-hero-inner{position:relative;z-index:1;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"avatar identity" "stats stats";gap:18px 26px;align-items:center;max-width:1127px;margin:0 auto;padding:34px 20px 26px}
.stride-profile-avatar{grid-area:avatar;width:128px;height:128px;border-radius:12px;border:2px solid rgba(217,148,255,.45);background:#120e18;box-shadow:0 14px 36px rgba(0,0,0,.45);image-rendering:pixelated}
.stride-profile-identity{grid-area:identity;min-width:0}
.stride-profile-name{margin:0;color:#f4edf7;font-size:clamp(28px,4vw,42px);font-weight:900;line-height:1.1;overflow-wrap:anywhere}
.stride-profile-title{margin-top:4px;color:#cfc4d6;font-size:15px;font-weight:600}
.stride-profile-ranks{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.stride-profile-ranks .ui.label{margin:0}
.stride-profile-actions{position:absolute;top:18px;right:20px;display:flex;gap:8px}
.stride-profile-action{display:inline-grid;place-items:center;width:38px;height:38px;padding:0;border:1px solid rgba(205,145,239,.28);border-radius:8px;background:rgba(18,14,24,.78);color:#eadcf1;cursor:pointer;transition:background .18s,border-color .18s,transform .18s}
.stride-profile-action i{margin:0}
.stride-profile-action:hover{background:rgba(150,64,190,.35);border-color:rgba(220,128,235,.6);color:#fff;transform:translateY(-1px)}
.stride-profile-action.is-danger:hover{background:rgba(239,64,85,.35);border-color:rgba(239,64,85,.7)}
.stride-profile-stats{grid-area:stats;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.stride-profile-stat{display:grid;grid-template-columns:auto 1fr;grid-template-areas:"i label" "i value";column-gap:12px;align-items:center;padding:13px 16px;border:1px solid rgba(205,145,239,.2);border-radius:10px;background:linear-gradient(145deg,rgba(24,19,29,.9),rgba(14,11,17,.92))}
.stride-profile-stat i{grid-area:i;margin:0;color:#d994ff;font-size:18px}
.stride-profile-stat span{grid-area:label;color:#b9aec1;font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.stride-profile-stat strong{grid-area:value;color:#f4edf7;font-size:15px;font-weight:800;overflow-wrap:anywhere}

/* Tabs + panels */
.stride-profile-layout{max-width:1127px;margin:0 auto!important;padding:0 20px 40px}
#profile .ui.tabular.menu{border-bottom:1px solid rgba(205,145,239,.2);gap:4px}
#profile .ui.tabular.menu .item{padding:13px 20px;border:0;border-bottom:3px solid transparent;border-radius:8px 8px 0 0;background:transparent;color:#cfc4d6;font-weight:800;letter-spacing:.02em}
#profile .ui.tabular.menu .item:hover{background:rgba(178,90,221,.1);color:#fff}
#profile .ui.tabular.menu .active.item{border-bottom-color:#cf4fb6;background:linear-gradient(180deg,rgba(145,61,190,.2),rgba(218,53,100,.06));color:#e3adff}
#profile .ui.bottom.attached.segment,#profile .ui.segment{border:1px solid rgba(205,145,239,.2);border-radius:0 0 10px 10px;background:linear-gradient(145deg,rgba(24,19,29,.97),rgba(14,11,17,.98));box-shadow:0 14px 38px rgba(0,0,0,.2);color:#ddd5e2}
#profile .ui.header{color:#f4edf7;font-weight:900}
#profile .ui.comments .comment{padding:14px 0;border-bottom:1px solid rgba(255,255,255,.06)}
#profile .ui.comments .comment .author{color:#e3adff;font-weight:800}
#profile .ui.comments .comment .text{color:#ddd5e2}
#profile .ui.relaxed.list .item{padding:12px 4px;border-bottom:1px solid rgba(255,255,255,.06)}
#profile .ui.relaxed.list .item .header{color:#b9aec1;font-size:12px;letter-spacing:.1em;text-transform:uppercase}
#profile .ui.relaxed.list .item .description{color:#f4edf7;font-weight:700}
#profile .ui.relaxed.list .item>.icon{color:#d994ff}
#profile .ui.reply.form textarea{border-color:rgba(205,145,239,.25);background:rgba(10,8,14,.7);color:#f4edf7}

@media(max-width:767px){
 .stride-profile-hero-inner{grid-template-columns:1fr;grid-template-areas:"avatar" "identity" "stats";justify-items:center;text-align:center;padding:28px 16px 22px}
 .stride-profile-avatar{width:104px;height:104px}
 .stride-profile-ranks{justify-content:center}
 .stride-profile-stats{grid-template-columns:1fr;width:100%}
 .stride-profile-actions{top:14px;right:14px}
 .stride-profile-layout{padding:0 12px 30px}
}
@media(prefers-reduced-motion:reduce){.stride-profile-action{transition:none}}

/* Cambiar foto de perfil */
.stride-profile-avatar-wrap{grid-area:avatar;position:relative;width:128px;height:128px}
.stride-profile-avatar-wrap .stride-profile-avatar{display:block;width:100%;height:100%;object-fit:cover}
.stride-profile-avatar-edit{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:0;border-radius:12px;background:rgba(10,7,14,.68);color:#fff;font-size:12px;font-weight:700;cursor:pointer;opacity:0;transition:opacity .18s}
.stride-profile-avatar-edit i{margin:0;font-size:22px}
.stride-profile-avatar-wrap:hover .stride-profile-avatar-edit,.stride-profile-avatar-edit:focus-visible{opacity:1}
.stride-avatar-preview{display:flex;justify-content:center;margin-bottom:16px}
.stride-avatar-preview img{width:128px;height:128px;border-radius:12px;object-fit:cover;border:2px solid rgba(217,148,255,.45);image-rendering:pixelated}
.stride-avatar-filename{margin-left:10px;color:#cfc4d6;font-size:13px}
@media(max-width:767px){
 .stride-profile-avatar-wrap{width:104px;height:104px}
 .stride-profile-avatar-edit{opacity:1;inset:auto 0 0 0;height:30px;flex-direction:row;border-radius:0 0 12px 12px;font-size:11px}
 .stride-profile-avatar-edit i{font-size:14px}
}

/* Ventana de cambio de foto */
.ui.modal.stride-avatar-modal{max-width:440px;border:1px solid rgba(205,145,239,.35) !important;border-radius:16px !important;background:linear-gradient(160deg,rgba(32,22,42,.98),rgba(14,10,19,.98)) !important;box-shadow:0 24px 70px rgba(0,0,0,.6),0 0 0 1px rgba(150,64,190,.15) !important;overflow:hidden}
.stride-avatar-modal>.header.stride-avatar-modal-header{display:flex;align-items:center;gap:12px;padding:18px 22px !important;background:linear-gradient(90deg,rgba(150,64,190,.38),rgba(150,64,190,.04)) !important;border-bottom:1px solid rgba(205,145,239,.22) !important;color:#f4edf7 !important;font-size:18px;font-weight:800}
.stride-avatar-modal-badge{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:10px;background:linear-gradient(145deg,#b45be0,#7a2fa8);color:#fff;box-shadow:0 6px 16px rgba(150,64,190,.45)}
.stride-avatar-modal-badge i{margin:0;font-size:16px}
.stride-avatar-modal>.content{background:transparent !important;padding:26px 24px 8px !important}
.stride-avatar-notice{display:flex;flex-direction:column;align-items:center;text-align:center}
.stride-avatar-notice-ring{position:relative;width:112px;height:112px;margin-bottom:18px;padding:4px;border-radius:18px;background:linear-gradient(145deg,#d994ff,#7a2fa8);box-shadow:0 0 34px rgba(180,91,224,.45)}
.stride-avatar-notice-img{display:block;width:100%;height:100%;border-radius:14px;object-fit:cover;background:#120e18;image-rendering:pixelated}
.stride-avatar-notice-cam{position:absolute;right:-8px;bottom:-8px;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#7a2fa8;border:3px solid #17101f;color:#fff}
.stride-avatar-notice-cam i{margin:0;font-size:13px}
.stride-avatar-notice-title{margin:0 0 16px;color:#f4edf7;font-size:19px;font-weight:800}
.stride-avatar-steps{width:100%;margin:0;padding:0;list-style:none;display:grid;gap:8px;text-align:left}
.stride-avatar-steps li{display:flex;align-items:center;gap:12px;padding:10px 14px;border:1px solid rgba(205,145,239,.2);border-radius:10px;background:rgba(255,255,255,.035);color:#dcd2e4;font-size:14px}
.stride-avatar-steps li span{flex:none;display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:rgba(180,91,224,.28);color:#f0d6ff;font-size:12px;font-weight:800}
.stride-avatar-modal>.actions{display:flex;justify-content:flex-end;gap:10px;padding:18px 24px 22px !important;background:transparent !important;border:0 !important}
.stride-avatar-modal>.actions .ui.button{margin:0;border-radius:10px;font-weight:700}
.stride-avatar-modal>.actions .ui.negative.button{background:rgba(255,255,255,.07) !important;color:#dcd2e4 !important}
.stride-avatar-modal>.actions .ui.negative.button:hover{background:rgba(255,255,255,.14) !important}
.stride-avatar-modal>.actions .ui.positive.button{background:linear-gradient(145deg,#b45be0,#7a2fa8) !important;color:#fff !important;box-shadow:0 8px 20px rgba(150,64,190,.4)}
.stride-avatar-modal>.actions .ui.positive.button:hover{filter:brightness(1.12)}
.stride-avatar-modal .stride-avatar-preview img{border-color:rgba(217,148,255,.6)}
