/* ========================================================
   MAHIKARI · LEFT COLUMN: CREATOR IDENTITY & PERSONAS
   Editorial Portraiture · Social Destinations · Theme Suite
======================================================== */

.col-left {
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.45rem;
    border-right: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.006);
}

/* ========================================================
   AVATAR ZONE & CELESTIAL ROTATING HALOS (UNCLIPPED ARTWORK)
======================================================== */
.avatar-zone,
.avatar-presentation-stage {
    position: relative;
    width: 136px;
    height: 136px;
    margin: 0.25rem auto 0.65rem auto;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

/* Pulsing Ethereal Ripple Waves */
.ripple-ground {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    pointer-events: none;
    z-index: 1;
}

.ripple-ground span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1.5px solid var(--color-accent);
    opacity: 0;
    animation: rippleGlow 3s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

.ripple-ground span:nth-child(2) { 
    animation-delay: 1s; 
    border-color: var(--color-accent-secondary, rgba(56, 189, 248, 0.5)); 
}

.ripple-ground span:nth-child(3) { 
    animation-delay: 2s; 
    border-color: #818cf8; 
}

@keyframes rippleGlow {
    0% { transform: scale(0.92); opacity: 0.75; box-shadow: 0 0 12px var(--color-accent); }
    100% { transform: scale(1.38); opacity: 0; }
}

/* Obsidian Glass Pedestal Disc */
.avatar-backdrop-disc {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(
        circle at 50% 28%,
        rgba(255, 255, 255, 0.09) 0%,
        rgba(18, 22, 38, 0.94) 65%,
        rgba(8, 10, 18, 0.98) 100%
    );
    border: 1.5px solid var(--color-border);
    box-shadow: 
        0 12px 28px -4px rgba(0, 0, 0, 0.7),
        inset 0 1px 2px rgba(255, 255, 255, 0.2),
        0 0 24px var(--color-accent-glow);
    z-index: 2;
    pointer-events: none;
    transition: box-shadow var(--transition-normal), border-color var(--transition-normal);
}

body.light-mode .avatar-backdrop-disc {
    background: radial-gradient(
        circle at 50% 25%,
        #ffffff 0%,
        #edf2f7 65%,
        #e2e8f0 100%
    );
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 
        0 10px 24px -4px rgba(15, 23, 42, 0.1),
        inset 0 1px 2px #ffffff,
        0 0 20px var(--color-accent-glow);
}

body.light-mode .avatar-status-badge {
    border-color: #ffffff;
}

/* Rotating Celestial Halos */
.halo-rotate {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 126px;
    height: 126px;
    border-radius: 50%;
    border: 1.5px dashed var(--color-accent);
    animation: rotateHalo 20s linear infinite;
    pointer-events: none;
    z-index: 3;
    transition: border-color var(--transition-normal);
}

.halo-rotate.outer {
    width: 138px;
    height: 138px;
    border: 1px solid var(--color-accent-secondary, rgba(56, 189, 248, 0.4));
    animation: rotateHaloRev 26s linear infinite;
    z-index: 3;
}

@keyframes rotateHalo {
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes rotateHaloRev {
    100% { transform: translate(-50%, -50%) rotate(-360deg); }
}

/* Unclipped Character Artwork Pop-Out */
.avatar-img,
.avatar-portrait {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    max-height: 124%;
    width: auto;
    max-width: 116%;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 16px var(--color-accent-glow));
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.35s ease, opacity 0.25s ease;
    z-index: 5;
    user-select: none;
    pointer-events: none;
}

.avatar-zone:hover .avatar-img,
.avatar-zone:hover .avatar-portrait,
.avatar-presentation-stage:hover .avatar-img,
.avatar-presentation-stage:hover .avatar-portrait {
    transform: translateX(-50%) scale(1.08) translateY(-4px);
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 24px var(--color-accent));
}

.avatar-zone:hover .avatar-backdrop-disc,
.avatar-presentation-stage:hover .avatar-backdrop-disc {
    border-color: var(--color-border-active);
    box-shadow: 
        0 16px 32px -4px rgba(0, 0, 0, 0.8),
        0 0 32px var(--color-accent-glow);
}

/* Status Indicator Dot */
.avatar-status-badge {
    position: absolute;
    bottom: 5px;
    right: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #10b981;
    border: 2.5px solid var(--surface-1);
    box-shadow: 0 0 10px #10b981;
    z-index: 10;
    transition: all var(--transition-fast);
}

.avatar-status-badge.online {
    animation: avatarStatusPulse 2.2s infinite ease-in-out;
}

@keyframes avatarStatusPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 8px #10b981; }
    50% { transform: scale(1.18); box-shadow: 0 0 14px #10b981; }
}

/* ========================================================
   IDENTITY HEADER & EDITORIAL TYPOGRAPHY
======================================================== */
.identity-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.name-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.creator-name {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.2vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--color-text);
    line-height: 1.15;
    background: linear-gradient(180deg, #ffffff 40%, rgba(240, 243, 255, 0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-mode .creator-name {
    background: none;
    -webkit-text-fill-color: var(--color-text);
}

.verified-badge {
    color: #38bdf8;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    filter: drop-shadow(0 2px 6px rgba(56, 189, 248, 0.4));
}

.creator-handle {
    font-family: var(--font-mono);
    font-size: 0.825rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.creator-tagline {
    font-family: var(--font-mono);
    font-size: 0.725rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    margin-top: 0.25rem;
    text-transform: uppercase;
}

.creator-bio {
    font-size: 0.825rem;
    line-height: 1.68;
    color: var(--color-text-secondary);
    text-align: center;
    padding: 0 0.5rem;
}

/* ========================================================
   SOCIAL DESTINATION PILLS
======================================================== */
.social-destination-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
    width: 100%;
}

.social-destination-grid > :last-child:nth-child(odd) {
    grid-column: span 2;
}

.social-link-pill {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.95rem;
    border-radius: var(--radius-md);
    background: var(--surface-2);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.pill-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.pill-brand i {
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
}

.pill-arrow {
    font-size: 0.65rem;
    opacity: 0.4;
    transition: all var(--transition-fast);
}

.social-link-pill:hover {
    color: var(--color-text);
    border-color: var(--color-border-active);
    background: var(--surface-hover);
    transform: translateY(-1.5px);
}

.social-link-pill:hover .pill-arrow {
    opacity: 0.9;
    color: var(--color-accent);
    transform: translate(1px, -1px);
}

.social-link-pill:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ========================================================
   VISUAL THEMES & PERSONA ROSTER
======================================================== */
.persona-section {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.35rem;
    border-top: 1px solid var(--color-border);
    padding-top: 1.15rem;
}

.section-micro-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.25rem;
}

.micro-title {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--color-accent);
}

.micro-meta {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--color-text-muted);
}

.persona-selector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
}

.persona-chip {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.65rem;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    border: 1px solid var(--color-border);
    cursor: pointer;
    text-align: left;
    transition: all var(--transition-fast);
}

.persona-chip:hover {
    background: var(--surface-hover);
    border-color: var(--color-border-active);
    transform: translateY(-1px);
}

.persona-chip.active {
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 14px var(--color-accent-glow);
}

.persona-avatar-preview {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--surface-0);
    border: 1px solid var(--color-border);
}

.persona-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.persona-meta {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.persona-name {
    font-family: var(--font-display);
    font-size: 0.775rem;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.persona-tag {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.persona-chip.active .persona-name {
    color: var(--color-accent);
}

/* ========================================================
   LIGHT MODE OVERRIDES FOR SOCIAL PILLS & PERSONA CHIPS
======================================================== */
body.light-mode .social-link-pill {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.11);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

body.light-mode .social-link-pill:hover {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.24);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

body.light-mode .persona-chip {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

body.light-mode .persona-chip:hover {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.22);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
}

body.light-mode .persona-chip.active {
    background: #ffffff;
    border-color: var(--color-accent);
    box-shadow: 0 0 14px var(--color-accent-glow), 0 2px 8px rgba(15, 23, 42, 0.08);
}

body.light-mode .persona-avatar-preview {
    background: #f1f5f9;
    border-color: rgba(15, 23, 42, 0.1);
}

/* ========================================================
   EMPTY PERSONA SLOT ("Coming Soon") & AVATAR FALLBACK
======================================================== */
.persona-chip.soon {
    opacity: 0.55;
    cursor: not-allowed;
    border-style: dashed;
    background: transparent;
}

.persona-chip.soon:hover {
    transform: none;
    border-color: var(--color-border);
    background: transparent;
}

.soon-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 0.7rem;
    border-style: dashed;
}

.persona-chip.soon .persona-name {
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Ảnh avatar lỗi -> hiện monogram MK thay vì alt text vỡ */
.avatar-zone.avatar-fallback::after {
    content: "MK";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    z-index: 5;
}

.avatar-zone.avatar-fallback .avatar-portrait {
    opacity: 0;
}