/**
 * Welcome panel styles.
 * Shown when chat is empty, provides connection info for sharing.
 */

.welcome-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    text-align: center;
    flex: 1;
    min-height: 60vh;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.welcome-icon {
    font-size: 64px;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.3));
}

.welcome-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.welcome-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.connection-info {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 12px);
    padding: 16px 24px;
    margin-bottom: 32px;
    max-width: 400px;
    width: 100%;
}

.conn-info-title {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.conn-address {
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
    font-size: 20px;
    font-weight: 600;
    color: var(--accent, #3b82f6);
    padding: 8px 0;
    word-break: break-all;
    cursor: pointer;
    transition: opacity 0.15s;
}

.conn-address:hover {
    opacity: 0.8;
}

.conn-address:active {
    opacity: 0.6;
}

.conn-address.copied::after {
    content: ' ✓ 已复制';
    font-size: 13px;
    color: var(--success, #22c55e);
    font-weight: 400;
}

.conn-hint {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 8px;
    line-height: 1.5;
}

.welcome-tips {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
}

.tip-item {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 8px 16px;
    background: var(--bg-tertiary, var(--bg-secondary));
    border-radius: var(--radius-sm, 6px);
    text-align: left;
}

/* Hide welcome panel when messages are present */
.chat-view.has-messages .welcome-panel {
    display: none;
}

@media (max-width: 768px) {
    .welcome-icon { font-size: 48px; }
    .welcome-title { font-size: 22px; }
    .conn-address { font-size: 16px; }
    .connection-info { padding: 12px 16px; }
}
