/* Lennox — Executive Personal Assistant
   ======================================= */

.lennox-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 40px;
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   HERO — ANIMATED ORB
   ============================================ */

.lennox-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 24px 24px;
}

.lennox-orb-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 28px;
}

.lennox-orb {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Orbiting Rings */
.orb-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.orb-ring-1 {
    width: 100%;
    height: 100%;
    animation: orb-spin 12s linear infinite;
    border-color: rgba(255, 255, 255, 0.08);
}

.orb-ring-2 {
    width: 140px;
    height: 140px;
    animation: orb-spin 8s linear infinite reverse;
    border-color: rgba(255, 255, 255, 0.05);
    border-style: dashed;
}

.orb-ring-3 {
    width: 108px;
    height: 108px;
    animation: orb-spin 16s linear infinite;
    border-color: rgba(255, 255, 255, 0.04);
}

/* Core Orb */
.orb-core {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03) 60%, transparent);
    box-shadow:
        0 0 40px rgba(255, 255, 255, 0.06),
        0 0 80px rgba(255, 255, 255, 0.03),
        inset 0 0 30px rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: orb-breathe 4s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.orb-core-inner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.08));
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
    animation: orb-pulse 3s ease-in-out infinite;
}

/* Particles */
.orb-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: particle-orbit 6s linear infinite;
    animation-delay: calc(var(--i) * -1s);
}

/* Thinking State */
.lennox-orb.thinking .orb-core {
    box-shadow:
        0 0 60px rgba(59, 130, 246, 0.2),
        0 0 120px rgba(59, 130, 246, 0.1),
        inset 0 0 30px rgba(59, 130, 246, 0.1);
    animation: orb-think 1.5s ease-in-out infinite;
}

.lennox-orb.thinking .orb-core-inner {
    background: radial-gradient(circle at 40% 40%, rgba(59, 130, 246, 0.5), rgba(59, 130, 246, 0.15));
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
    animation: orb-pulse 1s ease-in-out infinite;
}

.lennox-orb.thinking .orb-ring-1 {
    border-color: rgba(59, 130, 246, 0.15);
    animation-duration: 3s;
}

.lennox-orb.thinking .orb-ring-2 {
    border-color: rgba(59, 130, 246, 0.1);
    animation-duration: 2s;
}

.lennox-orb.thinking .orb-particle {
    background: rgba(59, 130, 246, 0.5);
    animation-duration: 2s;
}

/* Status */
.lennox-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.lennox-status-text {
    font-size: 12px;
    color: var(--fg-muted);
    letter-spacing: 0.03em;
}

/* Identity */
.lennox-identity {
    text-align: center;
}

.lennox-name {
    font-size: 32px;
    font-weight: 300;
    font-family: var(--font-heading);
    letter-spacing: -0.03em;
}

.lennox-role {
    font-size: 14px;
    color: var(--fg-muted);
    margin-top: 4px;
}

.lennox-subtitle {
    font-size: 12px;
    color: var(--fg-dim);
    margin-top: 4px;
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}

/* ============================================
   MODEL SELECTOR
   ============================================ */

.lennox-model-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.model-bar-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fg-dim);
    font-weight: 500;
}

.model-selector {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.model-selector::-webkit-scrollbar { display: none; }

.model-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-layer-1);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
    color: var(--fg-muted);
    transition: all 0.3s var(--ease-liquid);
    -webkit-tap-highlight-color: transparent;
}

.model-chip:hover {
    border-color: var(--border-hover);
    color: var(--fg);
}

.model-chip.active {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--model-color, var(--border-hover));
    color: var(--fg);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.03);
}

.model-chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.model-chip-name {
    font-weight: 500;
}

.model-chip-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--fg-dim);
}

.model-chip.active .model-chip-badge {
    background: rgba(255, 255, 255, 0.08);
    color: var(--fg-muted);
}

/* ============================================
   CAPABILITIES
   ============================================ */

.lennox-capabilities {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.capability-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 8px;
    background: var(--bg-layer-1);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--fg-muted);
    transition: all 0.3s var(--ease-liquid);
    -webkit-tap-highlight-color: transparent;
}

.capability-btn:hover {
    background: var(--bg-layer-2);
    border-color: var(--border-hover);
    color: var(--fg);
    transform: translateY(-2px);
}

.capability-btn svg {
    width: 18px;
    height: 18px;
}

.cap-label {
    font-size: 11px;
    font-weight: 500;
}

.cap-desc {
    font-size: 9px;
    color: var(--fg-dim);
    text-align: center;
    line-height: 1.3;
}

/* ============================================
   QUICK ACTIONS
   ============================================ */

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

.lennox-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px;
    background: var(--bg-layer-1);
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--fg-muted);
    transition: all var(--duration) var(--ease-liquid);
    font-size: 12px;
    -webkit-tap-highlight-color: transparent;
}

.lennox-action-btn:hover {
    background: var(--bg-layer-2);
    border-color: var(--border-hover);
    color: var(--fg);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.lennox-action-btn svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   CHAT INTERFACE
   ============================================ */

.lennox-chat {
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    min-height: 300px;
}

.lennox-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}

/* Messages */
.lennox-msg {
    display: flex;
    gap: 14px;
    animation: fade-in 0.4s ease-out;
}

.lennox-msg.user {
    justify-content: flex-end;
}

.lennox-msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--fg-muted);
    flex-shrink: 0;
}

.lennox-msg-avatar.user-avatar {
    background: var(--bg-elevated);
}

.lennox-msg-content {
    max-width: 80%;
}

.lennox-msg.user .lennox-msg-content {
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px 16px 4px 16px;
    padding: 14px 18px;
}

.lennox-msg.assistant .lennox-msg-content {
    background: transparent;
}

.lennox-msg-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.lennox-msg-name {
    font-size: 13px;
    font-weight: 600;
}

.lennox-msg-time {
    font-size: 11px;
    color: var(--fg-dim);
}

.lennox-msg-model {
    font-size: 10px;
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}

.lennox-msg-text {
    font-size: 14px;
    line-height: 1.65;
    color: var(--fg);
}

/* Briefing Card */
.lennox-briefing-card {
    margin-top: 12px;
    padding: 16px 18px;
    background: var(--bg-layer-1);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.briefing-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--fg);
}

.briefing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Input */
.lennox-input-area {
    padding: 16px 24px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.lennox-input-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-layer-1);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 6px 6px 6px 16px;
    transition: all 0.3s var(--ease-liquid);
}

.lennox-input-form:focus-within {
    background: var(--bg-layer-2);
    border-color: var(--border-hover);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.015);
}

.lennox-input-prefix {
    display: flex;
    color: var(--fg-dim);
    flex-shrink: 0;
}

.lennox-input-prefix svg {
    width: 16px;
    height: 16px;
}

.lennox-input {
    flex: 1;
    padding: 12px 0;
    background: transparent;
    font-size: 14px;
    color: var(--fg);
    min-width: 0;
}

.lennox-input::placeholder {
    color: var(--fg-dim);
}

.lennox-voice-btn,
.lennox-send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: var(--fg-muted);
    transition: all 0.3s var(--ease-liquid);
    flex-shrink: 0;
}

.lennox-voice-btn:hover {
    color: var(--fg);
    background: rgba(255, 255, 255, 0.04);
}

.lennox-send-btn {
    background: var(--primary-bg);
    color: var(--primary-fg);
}

.lennox-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.lennox-voice-btn svg,
.lennox-send-btn svg {
    width: 16px;
    height: 16px;
}

.lennox-input-hints {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-top: 10px;
    font-size: 11px;
    color: var(--fg-dim);
}

/* ============================================
   ORB ANIMATIONS
   ============================================ */

@keyframes orb-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes orb-breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@keyframes orb-pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.9;
    }
    50% { 
        transform: scale(1.1); 
        opacity: 1;
    }
}

@keyframes orb-think {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.12); }
    50% { transform: scale(0.96); }
    75% { transform: scale(1.08); }
}

@keyframes particle-orbit {
    0% {
        transform: rotate(calc(var(--i) * 60deg)) translateX(70px) rotate(calc(var(--i) * -60deg));
        opacity: 0;
    }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% {
        transform: rotate(calc(var(--i) * 60deg + 360deg)) translateX(70px) rotate(calc(var(--i) * -60deg - 360deg));
        opacity: 0;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .lennox-hero {
        padding: 32px 16px 16px;
    }
    .lennox-orb {
        width: 150px;
        height: 150px;
    }
    .orb-ring-2 { width: 115px; height: 115px; }
    .orb-ring-3 { width: 88px; height: 88px; }
    .orb-core { width: 64px; height: 64px; }
    .orb-core-inner { width: 28px; height: 28px; }
    .lennox-name { font-size: 26px; }
    .lennox-capabilities {
        grid-template-columns: repeat(3, 1fr);
    }
    .lennox-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    .lennox-msg-content {
        max-width: 90%;
    }
    .lennox-input-hints {
        display: none;
    }
}

@media (max-width: 480px) {
    .lennox-orb {
        width: 130px;
        height: 130px;
    }
    .orb-ring-2 { width: 100px; height: 100px; }
    .orb-ring-3 { width: 76px; height: 76px; }
    .orb-core { width: 56px; height: 56px; }
    .orb-core-inner { width: 24px; height: 24px; }
    .lennox-name { font-size: 22px; }
    .lennox-capabilities {
        grid-template-columns: repeat(3, 1fr);
    }
    .cap-desc {
        display: none;
    }
    .lennox-action-btn {
        padding: 16px 10px;
        font-size: 11px;
    }
    .lennox-chat-messages {
        padding: 16px;
    }
    .lennox-input-area {
        padding: 12px 16px 16px;
    }
    .lennox-voice-btn {
        display: none;
    }
}
