/* Hollowcore Hub V2 - Compact Redesign Additions */
/* This file contains the NEW compact styles for the redesigned hub */

/* ===== COMPACT HEADER ===== */

.header-companion-select {
    flex: 1;
    max-width: 200px;
}

.companion-dropdown-btn {
    background: linear-gradient(135deg, rgba(147, 197, 253, 0.1), rgba(147, 197, 253, 0.05));
    border: 1px solid rgba(147, 197, 253, 0.3);
    border-radius: 4px;
    padding: 4px 8px;
    color: var(--hc-blue-glow);
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.companion-dropdown-btn:hover {
    background: linear-gradient(135deg, rgba(147, 197, 253, 0.2), rgba(147, 197, 253, 0.1));
    border-color: var(--hc-blue-glow);
}

.companion-icon {
    font-size: 12px;
}

.companion-icon-img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(147, 197, 253, 0.4);
    box-shadow: 0 0 6px rgba(147, 197, 253, 0.3);
    flex-shrink: 0;
}

.companion-name-compact {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.dropdown-arrow {
    font-size: 8px;
    opacity: 0.7;
}

.header-resources {
    display: flex;
    gap: 8px;
    align-items: center;
}

.resource-compact {
    font-size: 10px;
    color: var(--hc-gold-accent);
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px 6px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    white-space: nowrap;
}

.resource-compact.battery {
    border-color: rgba(59, 130, 246, 0.3);
    color: #93C5FD;
}

.resource-compact.shard {
    border-color: rgba(212, 175, 55, 0.3);
}

.header-no-companion {
    flex: 1;
    font-size: 10px;
    color: rgba(186, 166, 116, 0.6);
    text-align: center;
}

.header-actions {
    display: flex;
    gap: 4px;
}

.icon-btn {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(147, 197, 253, 0.2);
    border-radius: 3px;
    padding: 4px 8px;
    color: var(--hc-blue-glow);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: rgba(147, 197, 253, 0.1);
    border-color: var(--hc-blue-glow);
}

/* ===== FULLWIDTH CHAT VIEW ===== */

.chat-view-v2.chat-fullwidth {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: var(--hc-pad-sm);
    overflow: hidden;
}

.chat-view-v2.chat-fullwidth .chat-main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.chat-header-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    background: linear-gradient(135deg, rgba(147, 197, 253, 0.05), rgba(147, 197, 253, 0.02));
    border: 1px solid rgba(147, 197, 253, 0.2);
    border-radius: 4px;
    margin-bottom: 6px;
}

.chat-avatar-mini {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid var(--hc-blue-glow);
    object-fit: cover;
}

.chat-header-info {
    flex: 1;
    min-width: 0;
}

.chat-companion-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--hc-gold-accent);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-status-mini {
    font-size: 9px;
    color: rgba(186, 166, 116, 0.6);
}

/* ===== COMPACT CARE VIEW ===== */

.care-view-v2.care-compact {
    display: flex;
    flex-direction: column;
    gap: var(--hc-gap-md);
    padding: var(--hc-pad-sm);
    overflow-y: auto;
    height: 100%;
}

.care-actions-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--hc-gap-sm);
}

.care-card-compact {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.4), rgba(51, 65, 85, 0.3));
    border: 1px solid rgba(147, 197, 253, 0.2);
    border-radius: 4px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.2s;
}

.care-card-compact:not(.insufficient):hover {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.6), rgba(51, 65, 85, 0.5));
    border-color: var(--hc-blue-glow);
    box-shadow: 0 0 10px rgba(147, 197, 253, 0.2);
}

.care-card-compact.insufficient {
    opacity: 0.5;
    border-color: rgba(239, 68, 68, 0.3);
}

.care-header-compact {
    display: flex;
    align-items: center;
    gap: 6px;
}

.care-icon {
    font-size: 16px;
}

.care-name {
    font-size: 10px;
    font-weight: 600;
    color: var(--hc-gold-accent);
    flex: 1;
}

.care-effect {
    font-size: 9px;
    color: rgba(147, 197, 253, 0.8);
    margin: 2px 0;
}

.care-cost-compact {
    font-size: 8px;
    color: rgba(186, 166, 116, 0.7);
    margin: 2px 0;
}

.care-btn-compact {
    background: linear-gradient(135deg, rgba(147, 197, 253, 0.15), rgba(147, 197, 253, 0.1));
    border: 1px solid rgba(147, 197, 253, 0.3);
    border-radius: 3px;
    padding: 6px;
    color: var(--hc-blue-glow);
    font-size: 9px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 4px;
}

.care-btn-compact:not(:disabled):hover {
    background: linear-gradient(135deg, rgba(147, 197, 253, 0.25), rgba(147, 197, 253, 0.15));
    box-shadow: 0 0 10px rgba(147, 197, 253, 0.3);
}

.care-btn-compact:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.care-status-compact {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.2));
    border: 1px solid rgba(147, 197, 253, 0.2);
    border-radius: 4px;
    padding: 8px;
}

.status-header-compact {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.status-label {
    font-size: 9px;
    color: rgba(186, 166, 116, 0.6);
    text-transform: uppercase;
}

.status-value {
    font-size: 10px;
    font-weight: 600;
    color: var(--hc-blue-glow);
}

.status-value.optimal {
    color: #22c55e;
}

.status-value.anxious {
    color: #f59e0b;
}

.status-value.rusty {
    color: #ef4444;
}

.proto-badge {
    font-size: 8px;
    padding: 2px 6px;
    background: rgba(147, 197, 253, 0.1);
    border: 1px solid rgba(147, 197, 253, 0.3);
    border-radius: 3px;
    color: var(--hc-blue-glow);
}

.status-bars-compact {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.status-effects-compact {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(147, 197, 253, 0.1);
}

.status-effects-compact .effect {
    font-size: 8px;
    padding: 3px 6px;
    border-radius: 3px;
    margin-bottom: 3px;
}

.effect.positive {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.effect.negative {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ===== COMPACT PROFILE/STATS VIEW ===== */

.companion-portrait-profile {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid var(--hc-blue-glow);
    box-shadow: 0 0 15px rgba(147, 197, 253, 0.3);
}

.companion-portrait-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.companion-identity-profile {
    text-align: center;
    padding: 6px 0;
}

.companion-name-large {
    font-size: 14px;
    font-weight: 700;
    color: var(--hc-gold-accent);
    margin: 0 0 3px 0;
}

.companion-subtitle {
    font-size: 9px;
    color: rgba(186, 166, 116, 0.7);
}

.profile-vitals {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-card {
    display: flex;
    flex-direction: column;
    gap: var(--hc-gap-sm);
}

.stat-grid-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
}

.metadata-grid-compact,
.personality-grid-compact {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.meta-row,
.trait-row {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    padding: 3px 0;
    border-bottom: 1px solid rgba(147, 197, 253, 0.1);
}

.meta-row span:first-child,
.trait-row span:first-child {
    color: rgba(186, 166, 116, 0.6);
}

.meta-row span:last-child,
.trait-row span:last-child {
    color: var(--hc-gold-accent);
    font-weight: 600;
}

.evolution-progress-compact {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.evolution-current {
    display: flex;
    align-items: center;
    gap: 8px;
}

.evolution-stage-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(186, 166, 116, 0.1));
    border: 1px solid var(--hc-gold-border);
    border-radius: 4px;
    color: var(--hc-gold-accent);
}

.evolution-stage-name {
    font-size: 11px;
    color: var(--hc-blue-glow);
    font-weight: 600;
}

.quick-actions-grid-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.quick-stat-btn {
    background: linear-gradient(135deg, rgba(147, 197, 253, 0.1), rgba(147, 197, 253, 0.05));
    border: 1px solid rgba(147, 197, 253, 0.3);
    border-radius: 4px;
    padding: 6px 8px;
    color: var(--hc-blue-glow);
    font-size: 9px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.quick-stat-btn:hover {
    background: linear-gradient(135deg, rgba(147, 197, 253, 0.2), rgba(147, 197, 253, 0.1));
    box-shadow: 0 0 10px rgba(147, 197, 253, 0.2);
}

.companion-mini-grid-compact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.companion-mini {
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    border: 1px solid rgba(147, 197, 253, 0.2);
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.companion-mini:hover {
    border-color: var(--hc-blue-glow);
    background: rgba(147, 197, 253, 0.1);
}

.companion-mini.active {
    border-color: var(--hc-gold-accent);
    background: rgba(212, 175, 55, 0.1);
}

.mini-portrait-tiny {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(147, 197, 253, 0.3);
}

.mini-portrait-tiny img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-name-tiny {
    font-size: 8px;
    color: var(--hc-gold-accent);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}
