/* ============ 驼峰下划线互转 - 工具特有样式 ============ */
/* 通用样式（卡片、按钮、分隔线、info-box、form-textarea等）已由 common.css 统一提供 */

/* ---- 容器 ---- */
#tf-container {
    margin-bottom: 15px;
}

/* ---- 左右两栏 flex 布局 ---- */
#tf-container > .section-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

#tf-container > .section-row > .settings-card,
#tf-container > .section-row > .preview-card {
    flex: 1;
    margin-top: 0;
    margin-bottom: 0;
}

/* ---- 转换统计 ---- */
.convert-stats {
    display: flex;
    gap: 24px;
    margin-top: 12px;
    padding: 8px 12px;
    background: #f9fafb;
    border-radius: 6px;
    font-size: 13px;
    color: #6b7280;
}

.convert-stats strong {
    color: #374151;
    font-weight: 600;
}

/* ---- 转换选项标题 ---- */
.convert-options-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

/* ---- 选项网格 ---- */
.option-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 6px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.option-btn:hover {
    border-color: #a78bfa;
    background: #f5f3ff;
}

.option-btn.active {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.option-icon {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.option-name {
    font-size: 11px;
    font-weight: 500;
    color: #374151;
    text-align: center;
    line-height: 1.2;
}

.current-mode {
    margin-top: 10px;
    font-size: 13px;
    color: #6b7280;
    text-align: center;
}

.current-mode strong {
    color: #8b5cf6;
}

/* ---- 代码输出区 ---- */
.code-output {
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 400px;
}

.code-output-text {
    padding: 14px 16px;
    margin: 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    color: #d4d4d4;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-all;
    overflow: auto;
    flex: 1;
}

.code-output-text code {
    color: inherit;
    font-family: inherit;
}

/* ---- 空状态 ---- */
#tf-container .empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #9ca3af;
}

#tf-container .empty-state-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

#tf-container .empty-state-desc {
    font-size: 14px;
    color: #888;
}

/* ---- 功能说明信息区 ---- */
#app > .info-section {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ---- 响应式 ---- */
@media (max-width: 768px) {
    #tf-container > .section-row {
        flex-direction: column;
        gap: 12px;
    }

    .option-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .convert-stats {
        flex-wrap: wrap;
        gap: 12px;
    }

    .code-output-text {
        font-size: 13px;
        padding: 12px;
    }

    #app > .info-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .option-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .option-btn {
        padding: 10px 4px;
    }

    .option-name {
        font-size: 10px;
    }
}
