/* =============================================================================
   T-FIT — THAYS AI 3.0 DESIGN SYSTEM (CYAN & VIOLET GLASSMORPHISM)
   Fiel à imagem de referência oficial
   ============================================================================= */

:root {
    --thays-bg-dark: #03070B;
    --thays-card-bg: rgba(10, 18, 30, 0.85);
    --thays-card-border: rgba(0, 240, 255, 0.2);
    --thays-cyan: #00F0FF;
    --thays-cyan-glow: rgba(0, 240, 255, 0.4);
    --thays-violet: #7000FF;
    --thays-violet-glow: rgba(112, 0, 255, 0.4);
    --thays-text-white: #FFFFFF;
    --thays-text-muted: rgba(255, 255, 255, 0.65);
    --thays-user-bubble: rgba(0, 240, 255, 0.12);
    --thays-ai-bubble: rgba(20, 30, 50, 0.85);
}

.thays-page-wrapper {
    min-height: 100vh;
    min-height: 100dvh;
    background: radial-gradient(circle at 50% 0%, #0c182b 0%, #03070B 80%);
    color: var(--thays-text-white);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    padding-bottom: max(32px, env(safe-area-inset-bottom));
    box-sizing: border-box;
}

.thays-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 16px 16px 40px 16px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

/* Header da Thays AI */
.thays-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: max(8px, env(safe-area-inset-top));
    margin-bottom: 16px;
}

.thays-brand-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.thays-brand-logo {
    height: 22px;
    object-fit: contain;
}

.thays-title-box {
    display: flex;
    flex-direction: column;
}

.thays-main-title {
    font-size: 20px;
    font-weight: 900;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #FFFFFF 0%, #00F0FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.thays-subtitle {
    font-size: 11px;
    color: var(--thays-text-muted);
}

.thays-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.thays-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--thays-cyan);
    box-shadow: 0 0 10px var(--thays-cyan);
}

/* Banner Hero com Avatar Holográfico */
.thays-hero-banner {
    background: linear-gradient(160deg, rgba(30, 15, 60, 0.85) 0%, rgba(10, 18, 30, 0.85) 100%);
    border: 1px solid rgba(112, 0, 255, 0.35);
    border-radius: 24px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.thays-avatar-glow-box {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thays-avatar-glow-box .tfit-hub-btn {
    pointer-events: none;
    transform: scale(1.35);
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.5);
}

.thays-greeting-speech {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px;
}

.thays-greeting-title {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.thays-greeting-desc {
    font-size: 11px;
    color: var(--thays-text-muted);
    line-height: 1.45;
    margin: 0;
}

/* Chat Stream de Conversas */
.thays-chat-stream {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 4px;
}

.thays-chat-bubble {
    max-width: 85%;
    padding: 12px 14px;
    border-radius: 18px;
    font-size: 12px;
    line-height: 1.5;
    position: relative;
    word-break: break-word;
}

.thays-chat-bubble.ai {
    align-self: flex-start;
    background: var(--thays-ai-bubble);
    border: 1px solid rgba(112, 0, 255, 0.3);
    border-top-left-radius: 4px;
    color: #FFFFFF;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    gap: 10px;
}

.thays-chat-bubble.user {
    align-self: flex-end;
    background: var(--thays-user-bubble);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-top-right-radius: 4px;
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(0, 240, 255, 0.1);
}

.thays-bubble-time {
    font-size: 9px;
    color: var(--thays-text-muted);
    margin-top: 4px;
    text-align: right;
}

/* Chips de Ação Rápida (4 Colunas) */
.thays-chips-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.thays-chip-btn {
    background: rgba(10, 18, 30, 0.85);
    border: 1px solid rgba(0, 240, 255, 0.18);
    border-radius: 16px;
    padding: 10px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.thays-chip-btn:active {
    transform: scale(0.94);
    border-color: var(--thays-cyan);
}

.thays-chip-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.thays-chip-label {
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    color: var(--thays-text-muted);
    line-height: 1.2;
}

/* Central Voice Control Area (Botão de Voz Imersivo) */
.thays-voice-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.thays-voice-orb-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7000FF 0%, #00F0FF 100%);
    border: 3px solid #03070B;
    box-shadow: 0 0 30px var(--thays-cyan-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.thays-voice-orb-btn:active {
    transform: scale(0.92);
}

.thays-voice-orb-btn.listening {
    animation: thaysPulseRing 1.5s infinite;
}

@keyframes thaysPulseRing {
    0% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(0, 240, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}

.thays-voice-wave-canvas {
    width: 180px;
    height: 24px;
    margin-bottom: 8px;
}

.thays-voice-status-lbl {
    font-size: 11px;
    font-weight: 700;
    color: var(--thays-text-muted);
    text-align: center;
}

.thays-voice-sub-lbl {
    font-size: 9.5px;
    color: var(--thays-cyan);
    margin-top: 2px;
}

/* Bottom Composer Drawer */
.thays-composer-bar {
    width: 100%;
    background: rgba(10, 18, 30, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 24px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.thays-composer-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 13px;
    outline: none;
    padding: 8px;
}

.thays-composer-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.thays-composer-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00F0FF 0%, #7000FF 100%);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Rich Cards inside Chat */
.thays-rich-card {
    background: rgba(15, 25, 45, 0.9);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 16px;
    padding: 12px;
    margin-top: 8px;
    width: 100%;
}

.thays-rich-card-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--thays-cyan);
    margin-bottom: 6px;
}

.thays-rich-card-btn {
    width: 100%;
    padding: 8px;
    border-radius: 12px;
    background: rgba(0, 240, 255, 0.12);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    margin-top: 8px;
    cursor: pointer;
}
